1 #ifndef CU_ROW_SOURCE_TABLE_HPP
2 #define CU_ROW_SOURCE_TABLE_HPP
14 {master = (
row==0) && normal;}
15 RowSource(
const RowSource& rhs):cd(rhs.cd), normal(rhs.normal), rowInSrc(rhs.rowInSrc), master(rhs.master){}
31 void addEntry(
int row,
CCdCore* cd,
int rowInCD,
bool normal=
true,
bool scoped =
true);
32 void addEntry(
int row,
RowSource rs,
bool scoped =
true);
33 int findEntries(
int row, vector<RowSource>& src,
bool scopedOnly=
false)
const;
34 void removeEntriesForCD(vector<int>& colRows,
CCdCore* cd);
39 bool isPending(
int row)
const;
40 void getMasterRows(vector<int>& masters);
42 int getCDs(vector<CCdCore*>& cds);
44 int getCDsInScope(vector<CCdCore*>& cds);
46 int getCDsOutofScope(vector<CCdCore*>& cds);
47 bool isCDInScope(
CCdCore* cd)
const;
48 bool isEntryInScope(
const RowSource& rs)
const;
50 void convertFromCDRows(
CCdCore* cd,
const vector<int>& cdRows,
set<int>& colRows)
const;
51 int convertFromCDRow(
CCdCore* cd,
int cdRows)
const;
52 void convertToCDRows(
const vector<int>& colRows,
CDRowsMap& cdRows)
const;
63 string makeCDRowKey(
CCdCore* cd,
int row)
const ;
68 void transferCDs(
const set<CCdCore*>& cdSet, vector<CCdCore*>& cdVec);
multimap< int, RowSource > RowSourceMap
CDRowIndexMap m_cdRowIndexMap
set< CCdCore * > m_cdsInScope
map< string, int > CDRowIndexMap
set< CCdCore * > m_cdsOutofScope
map< CCdCore *, vector< int > > CDRowsMap
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_CDUTILS_EXPORT
#define row(bind, expected)
RowSource(CCdCore *cd, int row, bool norm)
RowSource(const RowSource &rhs)