UNIVERS
15.3
UNIVERS base processing software API
|
Public Member Functions | |
RecItem (const RecDef &rdef) | |
RecItem (const RecItem &r) | |
RecItem (InputStream &ist) | |
RecItem (RecDef *prdef, void *recdata) | |
void | attach (void *recdata) |
virtual | ~RecItem () |
RecItem & | operator= (const RecItem &r) |
virtual AnyValue & | value (int dmn_i) |
AnyValue & | value (const char *dname) |
virtual const AnyValue & | get_value (int dmn_i) const |
const AnyValue & | get_value (const char *dname) const |
virtual void | get_value (int dmn_i, AnyValue &av) const |
void | get_value (const char *dname, AnyValue &av) const |
virtual void | set_value (int dmn_i, const AnyValue &av) |
void | set_value (const char *dname, const AnyValue &av) |
virtual void | set_row_data (const void *row_data) |
virtual void * | get_row_data () const |
virtual void | copy_row_data (const RecDef &rdef, void *row_data) const |
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 (included record definition):
Serial format (without record definition):
| |
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 | |
bool | own_memory |
void * | ptr_rec |
AnyValue ** | av |
Friends | |
class | RecList |
Additional Inherited Members | |
Protected Member Functions inherited from RecDef | |
RecDef (RecDef *rdef) | |
RecDef () | |
void | constructor (const char *rtname, const DomainAr &dmns) |
RecItem::RecItem | ( | const RecDef & | rdef | ) |
Create new record with empty contents (see AnyValue::empty_value() for each cell initialization)
RecItem::RecItem | ( | const RecItem & | r | ) |
Create the copy of some record item
RecItem::RecItem | ( | InputStream & | ist | ) |
Create record item from the input stream
RecItem::RecItem | ( | RecDef * | prdef, |
void * | recdata | ||
) |
Create record object which is attached to some record definition and some data location. BE CAREFUL!!!
|
virtual |
Destroy the object
|
virtual |
Add one more domain to record item. New cell became empty (initialized by default).
Reimplemented from RecDef.
|
virtual |
Copy to given record set structure (MT_Safe). Type cast is not supported! Only exactly matched domains will be copied.
|
virtual |
Deserialize (internalize) the record data from given input stream with (own_memory==TRUE) or without (own_memory==FALSE) record definition.
Reimplemented from RecDef.
|
virtual |
Get (dynamically allocated by malloc) the whole item contents for UdbData::row_data (MT_Safe).
|
virtual |
Get value quickly but in multithread unsafe manner (MT_Unsafe).
|
inline |
Call the get_value(n2i(dname))
|
virtual |
Get value of given domain cell in multithread safe manner (MT_Safe).
|
inline |
Call the get_value(n2i(dname), av)
Assign new record contents to this record. Assignment is available for the same structure records only.
|
virtual |
Serialize (externalize) the record data to given output stream with (own_memory==TRUE) or without (own_memory==FALSE) record definition.
Reimplemented from RecDef.
|
virtual |
Set the whole item contents from UdbData::row_data without test for record compatibility (MT_Safe).
|
virtual |
Set value of given domain cell in multithread safe manner (MT_Safe).
|
inline |
Call the set_value(n2i(dname), av)
|
virtual |
Get access to a domain value quickly but in multithread unsafe manner (MT_Unsafe).
|
protected |
Array of values, attached to record data.
|
protected |
TRUE to delete rec_name and domains in destructor
|
protected |
Pointer to record's data