#include <clusmethod.h>
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 |
| 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().
| void clusmethod::dbinput | ( | result & | qres | ) |
| 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 |
) |
| 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
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().
1.5.6