Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

cluster_engine_impl Class Reference

Inheritance diagram for cluster_engine_impl:

cluster_engine

List of all members.

Public Member Functions

 cluster_engine_impl ()
 constructor
virtual void do_clustering (const cluster_client *client, double max_vertex_distance, double max_cluster_distance, double avg_cluster_distance)
 does the real clustering process
virtual size_t get_clusters_count () const
 returns the count of clusters
virtual size_t get_cluster_size (size_t cluster_index) const
 gets the cluster size
virtual size_t get_cluster_object (size_t cluster_index, size_t object_index) const
 gets the item by cluster index and object index
size_t size () const
 number of items
double distance (size_t from, size_t to) const
 gets the distance
void notify (const char *msg) const
 notify message

Private Attributes

const cluster_client_client
 client interface
cluster_map_t _clusters
 clusters
byte_allocator _all
 external allocator


Detailed Description

Definition at line 42 of file mstaccess.cpp.


Constructor & Destructor Documentation

cluster_engine_impl::cluster_engine_impl (  )  [inline]

constructor

Definition at line 46 of file mstaccess.cpp.


Member Function Documentation

virtual void cluster_engine_impl::do_clustering ( const cluster_client client,
double  max_vertex_distance,
double  max_cluster_distance,
double  avg_cluster_distance 
) [inline, virtual]

does the real clustering process

Parameters:
client  client interface
max_vertex_distance  max vertex distance
max_cluster_distance  max cluster distance
avg_cluster_distance  average cluster distance

Implements cluster_engine.

Definition at line 54 of file mstaccess.cpp.

References _all, _client, _clusters, base_map< K, T, Pr, M >::begin(), base_map< K, T, Pr, M >::clear(), byte_allocator::clear_all(), base_map< K, T, Pr, M >::end(), cluster_processor< T, N >::get_clusters(), and _map< K, T, A, Pr, M >::insert().

virtual size_t cluster_engine_impl::get_clusters_count (  )  const [inline, virtual]

returns the count of clusters

Implements cluster_engine.

Definition at line 87 of file mstaccess.cpp.

References _clusters, and base_map< K, T, Pr, M >::size().

virtual size_t cluster_engine_impl::get_cluster_size ( size_t  cluster_index  )  const [inline, virtual]

gets the cluster size

Parameters:
cluster_index  cluster index

Implements cluster_engine.

Definition at line 95 of file mstaccess.cpp.

References _clusters, base_map< K, T, Pr, M >::find(), os_minus_one, and base_map< K, T, Pr, M >::size().

virtual size_t cluster_engine_impl::get_cluster_object ( size_t  cluster_index,
size_t  object_index 
) const [inline, virtual]

gets the item by cluster index and object index

Parameters:
cluster_index  cluster index
object_index  object index

Implements cluster_engine.

Definition at line 111 of file mstaccess.cpp.

References _clusters, base_map< K, T, Pr, M >::find(), os_minus_one, and base_map< K, T, Pr, M >::size().

size_t cluster_engine_impl::size (  )  const [inline]

number of items

Definition at line 137 of file mstaccess.cpp.

References _client, and cluster_client::size().

double cluster_engine_impl::distance ( size_t  from,
size_t  to 
) const [inline]

gets the distance

Definition at line 145 of file mstaccess.cpp.

References _client, and cluster_client::distance().

void cluster_engine_impl::notify ( const char *  msg  )  const [inline]

notify message

Definition at line 155 of file mstaccess.cpp.

References _client, and cluster_client::notify().


Member Data Documentation

client interface

Definition at line 161 of file mstaccess.cpp.

Referenced by distance(), do_clustering(), notify(), and size().

external allocator

Definition at line 163 of file mstaccess.cpp.

Referenced by do_clustering().


The documentation for this class was generated from the following file:


© Copyright Terimber 2003-.