38 :
public ncbi::CObject,
public std::vector<T>
71 if( m_ValuesRef.IsNull() ){
96 if( m_ValuesRef.IsNull() ){
121 if( m_ValuesRef.IsNull() ){
185 : m_Objects( ob_list.m_Objects )
186 , m_Scopes( ob_list.m_Scopes )
187 , m_ExtraColName( ob_list.m_ExtraColName )
188 , m_ExtraColType( ob_list.m_ExtraColType )
189 , m_StartIx( ob_list.m_StartIx )
194 _CColumn new_col(it->m_Type, it->m_Name);
195 switch (it->m_Type) {
202 new_col.
IntVector((
int)it->IntVector().size());
250 size_t num_objects =
objects.size();
254 for(
size_t i = 0;
i < num_objects;
i++ ) {
276 column.StringVector().clear();
280 column.IntVector().clear();
284 column.DoubleVector().clear();
297 c1.insert( c1.end(), c2.begin(), c2.end() );
388 column.StringVector( num_rows );
392 column.IntVector( num_rows );
396 column.DoubleVector( num_rows );
CObjectList Data structure representing a list of CObjects with associated Scopes and other optional ...
void RemoveObjectLabel(int col)
void x_AssertValidLabel(int col) const
CObjectList.
void SetScope(int row, objects::CScope &sc)
double GetDouble(int col, int row) const
void SetDouble(int col, int row, double val)
const string & GetColumnName(int col) const
int AddRow(CObject *obj, objects::CScope *scope)
EColumnType GetColumnType(int col) const
void AddObjectLabel(const string &name, CLabel::ELabelType type)
void x_AssertValidRow(int row) const
vector< CRef< objects::CScope > > m_Scopes
Objects column.
void Init(TConstScopedObjects &objects)
initializers
void x_AssertValidColumn(int col) const
CLabel::ELabelType GetObjectLabelType(int col) const
void SetString(int col, int row, const string &val)
void x_Init()
removes all rows and non-standard columns
const string & GetString(int col, int row) const
void ClearColumns()
removes all data rows (i.e. objects)
objects::CScope * GetScope(int row)
vector< CRef< CObject > > m_Objects
all columns must be of the same size
string GetObjectLabelName(int col) const
void x_AssertValid(int col, int row) const
void SetInteger(int col, int row, int val)
void Append(const CObjectList &list)
adds rows from the given list, the lists must have identical sets of columns
vector< string > m_ExtraColName
all columns
int GetNumObjectLabels() const
access to a set of extra columns
int AddColumn(EColumnType type, const string &name, int col=-1)
vector< _CColumn > TColumns
Scopes column, may contain NULLs.
vector< CLabel::ELabelType > m_ExtraColType
int GetInteger(int col, int row) const
void DeleteColumn(int col)
void SetObjectLabel(int col, const string &name, CLabel::ELabelType type)
int GetNumColumns() const
access to columns (attribute, indexes)
CObjectVector(int _Count)
CObjectVector(int _Count, const T &_Val)
std::vector< T > TVectorBase
static const char * column
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
CRef< objects::CScope > scope
CConstRef< CObject > object
vector< SConstScopedObject > TConstScopedObjects
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TObject & SetObject(void)
Assign a value to Object data member.
const TObject & GetObject(void) const
Get the Object member data.
unsigned int
A callback function used to compare two keys in a database.
const struct ncbi::grid::netcache::search::fields::SIZE size
void resize(vector< SMethodDef > &container)
void AppendContainer(C &c1, const C &c2)
#define row(bind, expected)
const vector< int > & IntVector() const
const vector< string > & StringVector() const
const vector< double > & DoubleVector() const
CRef< CObject > m_ValuesRef
actually it is a reference to wxArrayString, wxArrayInt, or wxArrayDouble
EColumnType m_Type
actually column can be of types eString, eInteger, eDouble