clusmethod Class Reference

#include <clusmethod.h>

List of all members.

Public Member Functions

 clusmethod ()
 clusmethod (result &orthodb)
void dbinput (result &qres)
 clusmethod (char file[])
void fileinput (const char file[])
vector< cluster > & findCluster ()
void printMap ()
void displayClusters (ostream &os=cout)
void clearMap ()
bool loadTable (connection &orthodb, string update_tab, string update_col, string clutab, string clus_col, int &cluster_id)
void dumpTable (const char ins[], const char upd[], int &cluster_id)
int getClusterCount ()

Private Member Functions

set< int > processTargets (const set< int > &tset)

Private Attributes

multimap< int, int > rel
multimap< int, int > revrel
vector< cluster > allcl


Constructor & Destructor Documentation

clusmethod::clusmethod (  )  [inline]

default constructor to make an empty object

clusmethod::clusmethod ( result &  orthodb  )  [inline]

Version that does not depends on PgDatabase as a member, better Should be exactly like before. The connection and query setting is done outside this class. orthodb should contain the result of SQL with (query, target) as the tuple columns.

not I have converted to the pqxx result type

References dbinput().

clusmethod::clusmethod ( char  file[]  )  [inline]

References fileinput().


Member Function Documentation

void clusmethod::dbinput ( result &  qres  ) 

Parameters:
qres a query result query result contain two columns (obj1 ==> obj2)

Referenced by clusmethod().

void clusmethod::fileinput ( const char  file[]  ) 

Referenced by clusmethod().

vector<cluster>& clusmethod::findCluster (  ) 

void clusmethod::printMap (  ) 

void clusmethod::displayClusters ( ostream &  os = cout  ) 

void clusmethod::clearMap (  )  [inline]

References rel, and revrel.

bool clusmethod::loadTable ( connection &  orthodb,
string  update_tab,
string  update_col,
string  clutab,
string  clus_col,
int &  cluster_id 
)

void clusmethod::dumpTable ( const char  ins[],
const char  upd[],
int &  cluster_id 
)

int clusmethod::getClusterCount (  )  [inline]

References allcl.

set<int> clusmethod::processTargets ( const set< int > &  tset  )  [private]

remove all values with key k from mm and return the set


Member Data Documentation

multimap<int, int> clusmethod::rel [private]

Referenced by clearMap().

multimap<int, int> clusmethod::revrel [private]

Referenced by clearMap().

vector<cluster> clusmethod::allcl [private]

Referenced by getClusterCount().


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

Generated on Wed Aug 10 11:57:08 2011 for Softwares from Orpara by  doxygen 1.5.6