Interface for associative array, or hash table, data access
![]() | ~AbstractTable () destructor |
![]() | Replicate () const Replication: creates and returns pointer to independent copy |
![]() | Size () const Return the size of the table = number of keys |
![]() | Key ( int & i) Return the ith key |
![]() | Write (ostream&s) const Print contents of tableto output stream |
Interface for associative array, or hash table, data access. Access to data is through Get and Put methods. These methods take two arguments: the first is a character string specifying the key, to which the table associates the value returned in the second table. The value may be any primitive numerical type, or a string. Get methods, which are const, extract the value, implicitly type-converting it if necessary. The Put methods replace the values.
virtual AbstractTable* Replicate() const
virtual int Size() const
virtual char* Key( int & i)
Read access by key.
virtual int GetValue(const char *key, int &value) const
virtual int GetValue(const char *key, float &value) const
virtual int GetValue(const char *key, double &value) const
virtual int GetValue(const char *key, char *value, int length = 0) const
Write access by key.
virtual int PutValue(const char *key, int value)
virtual int PutValue(const char *key, float value)
virtual int PutValue(const char *key, double value)
virtual int PutValue(const char *key, const char *value)
Read access by indexed key.
virtual int GetArrayValue(const char *key, int ind, int &value) const
virtual int GetArrayValue(const char *key, int ind, float &value) const
virtual int GetArrayValue(const char *key, int ind, double &value) const
virtual int GetArrayValue(const char *key, int ind, char *value, int length = 0) const
Read access by indexed key.
virtual int PutArrayValue(const char *key, int ind, int value)
virtual int PutArrayValue(const char *key, int ind, float value)
virtual int PutArrayValue(const char *key, int ind, double value)
virtual int PutArrayValue(const char *key, int ind, const char *value)
virtual ostream& Write(ostream&s) const
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de