UNIVERS
15.3
UNIVERS base processing software API
|
Public Member Functions | |
RecList (const RecDef &rdef, unsigned quant=DEFAULT_QUANT, unsigned volume=START_VOLUME) | |
RecList (const RecList &r) | |
RecList (InputStream &ist) | |
virtual | ~RecList () |
RecList & | operator= (const RecList &r) |
virtual int | count () const |
virtual AnyValue & | value (int dmn_i, int row_i) |
AnyValue & | value (const char *dname, int row_i) |
virtual const AnyValue & | get_value (int dmn_i, int row_i) const |
const AnyValue & | get_value (const char *dname, int row_i) const |
virtual void | get_value (int dmn_i, int row_i, AnyValue &av) const |
void | get_value (const char *dname, int row_i, AnyValue &av) const |
virtual void | set_value (int dmn_i, int row_i, const AnyValue &av) |
void | set_value (const char *dname, int row_i, const AnyValue &av) |
virtual RecItem & | item (int row_i) |
virtual void | get_item (int row_i, RecItem &rec) const |
virtual void | attach_item (int row_i, RecItem &rec) const |
virtual void | add_record (int rows=1) |
virtual void | add_item (const RecItem &recit) |
virtual void | add_list (const RecList &reclist) |
virtual void | insert_record (int at_row_i, int rows=1) |
virtual void | insert_item (int at_row_i, const RecItem &recit) |
virtual void | insert_list (int at_row_i, const RecList &reclist) |
virtual void | remove_record (int at_row_i, int rows=1) |
virtual void | clean () |
virtual void | add_domain (const DomainDef &dmn) |
Serialization facilities | |
Serialization/deserialization is performed with record definition in case of own memory buffer is used or without it in case of link to alien memory buffer location. Serial format:
| |
virtual void | serialize (OutputStream &ost) const |
virtual void | deserialize (InputStream &ist) |
Public Member Functions inherited from RecDef | |
RecDef (const char *rtname, const DomainAr &dmns) | |
RecDef (const char *rtname, int dmns_n, const DomainDef *dmns) | |
RecDef (const RecDef &rdef) | |
RecDef (const char *rtname, const RecDef &rdef1, const RecDef &rdef2) | |
RecDef (InputStream &ist) | |
virtual | ~RecDef () |
const char * | record_name () const |
size_t | record_size () const |
unsigned | domain_count () const |
int | n2i (const char *dname) const |
void * | offset (int dmn_i, const void *base) const |
const DomainDef & | domain_def (int dmn_i) const |
DomainDef * | domain_defs () const |
void | set_options (int dmn_i, void *options) |
bool | operator== (const RecDef &rdef) const |
bool | operator!= (const RecDef &rdef) const |
bool | check_domain (const char *dname) const |
bool | check_domain (const char *dname, AtomType atype, unsigned dim=1) const |
Public Member Functions inherited from SerialThis | |
SerialThis () | |
SerialThis (InputStream &ist) | |
Protected Attributes | |
DynAr * | datar |
RecItem * | cur_item |
AnyValue ** | av |
Additional Inherited Members | |
Protected Member Functions inherited from RecDef | |
RecDef (RecDef *rdef) | |
RecDef () | |
void | constructor (const char *rtname, const DomainAr &dmns) |
RecList::RecList | ( | const RecDef & | rdef, |
unsigned | quant = DEFAULT_QUANT , |
||
unsigned | volume = START_VOLUME |
||
) |
Create new record list with zero number of items.
RecList::RecList | ( | const RecList & | r | ) |
Create the copy of some record list
RecList::RecList | ( | InputStream & | ist | ) |
Create list of records from the input stream
|
virtual |
Destroy the object
|
virtual |
Add one more domain to the record list. New column is not initialized at all (garbage bits).
Reimplemented from RecDef.
|
virtual |
Append the list with new record.
|
virtual |
Append the list with new records.
|
virtual |
Append the list with new empty (zero bytes) record(s).
|
virtual |
Attach item object to given record addressed by row_i
. Very dangerous due to possible illegal use later, when list of records is changed (MT_Safe).
|
virtual |
Remove all records
|
virtual |
Return number of records in the list
|
virtual |
Deserialize (internalize) the record data from given input stream with record definition.
Reimplemented from RecDef.
|
virtual |
Get value of given cell in multithread safe manner (MT_Safe).
|
virtual |
Get value quickly but in multithread unsafe manner (MT_Unsafe). Don't use twice in the same expression or argument list (for the same object) due to side effects!
|
inline |
Call the get_value(n2i(dname), row_i)
|
virtual |
Get value of given cell in multithread safe manner (MT_Safe).
|
inline |
Call the get_value(n2i(dname), row_i, av)
|
virtual |
Insert new record to the list at given position.
|
virtual |
Insert new records to the list at given position.
|
virtual |
Insert new empty record(s) to the list at given position.
|
virtual |
Get access to the whole record item in multithread unsafe manner (MT_Unsafe). Don't use twice in the same expression or argument list (for the same object) due to side effects!
Assign new record list contents to this record list.
|
virtual |
Remove record(s) of the list at given position.
|
virtual |
Serialize (externalize) the record data to given output stream with record definition.
Reimplemented from RecDef.
|
virtual |
Set value of given cell in multithread safe manner (MT_Safe).
|
inline |
Call the set_value(n2i(dname), row_i, av)
|
virtual |
Get access to given cell value quickly but in multithread unsafe manner (MT_Unsafe). Don't use twice in the same expression or argument list (for the same object) due to side effects!
|
protected |
Vector of values for each domain of record
|
protected |
Pointer to currently attached record item or NULL in case of empty list or no item() calls.
|
protected |
Data container for record list