<< Operation
 Top   Types   Functions   Classes   Index 
Bytes >>

struct CrlData / crl_data_t

Concrete Class


Description

A block/section of data.

Additional to accessing the slot directly, this class emulates a map structure with the following special attributes:

These wrappers are especially implemented for environments where only the CrlStructure interface is available, but not the interface for this special class, particularly in OptLa. If you use the native C/C++ library interface, better use the slot access directly.

Kinship

Immediate super class: Item

Slots

ListBytes bytes
Graph * graph
bool is_external
bool is_public
list_key_t key_graph

Inherited Slots

MapSymbolValue Item::attrs
int Object::class_id
int Object::heap_sig
int WithID::id
int Object::ref_count
UserData Object::user_data

Members

CrlData()
CrlData(Graph *)
voidappend(Bytes *)
ListBytes const *bytes() const
voidclear_bytes()
ItemDeclaration *declaration() const
voiderase(Bytes *)
voiderase(list_key_t &, Bytes * = NULL)
Value *find(char const * key) const
boolfind(float_t & result, char const * key) const
boolfind(float_t & result, Value const * key) const
boolfind(signed_t & result, char const * key) const
boolfind(signed_t & result, Value const * key) const
boolfind(unsigned_t & result, char const * key) const
boolfind(unsigned_t & result, Value const * key) const
Value *find(Value const * key) const
boolfind_bool(char const * key) const
boolfind_bool(Value const * key) const
boolfind_bool_sym(symbol_t key) const
byte_tfind_byte(char const * key) const
byte_tfind_byte(Value const * key) const
byte_tfind_byte_sym(symbol_t key) const
intfind_int(char const * key) const
intfind_int(Value const * key) const
intfind_int_sym(symbol_t key) const
Item *find_item(char const * key) const
Item *find_item(Value const * key) const
Item *find_item_sym(symbol_t key) const
char const *find_string(char const * key) const
char const *find_string(Value const * key) const
char const *find_string_sym(symbol_t key) const
Value *find_sym(symbol_t key) const
boolfind_sym(float_t & result, symbol_t key) const
boolfind_sym(signed_t & result, symbol_t key) const
boolfind_sym(unsigned_t & result, symbol_t key) const
symbol_tfind_symbol(char const * key) const
symbol_tfind_symbol(Value const * key) const
symbol_tfind_symbol_sym(symbol_t key) const
word32_tfind_word32(char const * key) const
word32_tfind_word32(Value const * key) const
word32_tfind_word32_sym(symbol_t key) const
Value *get()
Value const *get() const
Graph *graph() const
boolhas(char const * key) const
boolhas(Value const * key) const
boolhas_sym(symbol_t key) const
voidinsert(Bytes const * relative, Bytes * new, bool back)
voidinsert_after(Bytes const *, Bytes *)
voidinsert_before(Bytes const *, Bytes *)
boolinvalidate()
boolis_external() const
boolis_public() const
boolis_special(char const * key) const
boolis_special(Value const * key) const
boolis_special_sym(symbol_t key) const
boolis_valid() const
boolis_valid_special() const
list_key_tkey_graph() const
boolpoke(Value * value)
boolpoke_once(Value * value)
voidprepend(Bytes *)
boolreset(char const * key)
boolreset(Value const * key)
voidreset_external()
voidreset_graph()
boolreset_public()
boolreset_sym(symbol_t key)
boolset(char const * key, Value * value)
boolset(char const * key, Item * value)
boolset(char const * key, char const * value)
boolset(char const * key, unsigned_t value)
boolset(Value const * key, Value * value)
boolset(Value const * key, Item * value)
boolset(Value const * key, char const * value)
boolset(Value const * key, unsigned_t value)
boolset_external(bool = 1)
boolset_float(char const * key, float_t value)
boolset_float(Value const * key, float_t value)
voidset_graph(Graph *)
boolset_once(char const * key, Value * value)
boolset_once(char const * key, Item * value)
boolset_once(char const * key, char const * value)
boolset_once(char const * key, unsigned_t value)
boolset_once(Value const * key, Value * value)
boolset_once(Value const * key, Item * value)
boolset_once(Value const * key, char const * value)
boolset_once(Value const * key, unsigned_t value)
boolset_once_float(char const * key, float_t value)
boolset_once_float(Value const * key, float_t value)
boolset_once_signed(char const * key, signed_t value)
boolset_once_signed(Value const * key, signed_t value)
boolset_once_sym(symbol_t key, Value * value)
boolset_once_sym(symbol_t key, Item * value)
boolset_once_sym(symbol_t key, char const * value)
boolset_once_sym(symbol_t key, unsigned_t value)
boolset_once_sym_float(symbol_t key, float_t value)
boolset_once_sym_signed(symbol_t key, signed_t value)
boolset_once_sym_symbol(symbol_t key, symbol_t value)
boolset_once_symbol(char const * key, symbol_t value)
boolset_once_symbol(Value const * key, symbol_t value)
boolset_public(bool = 1)
boolset_signed(char const * key, signed_t value)
boolset_signed(Value const * key, signed_t value)
boolset_sym(symbol_t key, Value * value)
boolset_sym(symbol_t key, Item * value)
boolset_sym(symbol_t key, char const * value)
boolset_sym(symbol_t key, unsigned_t value)
boolset_sym_float(symbol_t key, float_t value)
boolset_sym_signed(symbol_t key, signed_t value)
boolset_sym_symbol(symbol_t key, symbol_t value)
boolset_symbol(char const * key, symbol_t value)
boolset_symbol(Value const * key, symbol_t value)

Inherited Members

From ClassC++C
Crl::address_default_user_print_file
Crl::address_default_user_print_vchar
Crl::bool_default_user_print_file
Crl::bool_default_user_print_vchar
Crl::context_default
Crl::enum_default_user_print_file
Crl::enum_default_user_print_vchar
Crl::float_default_user_print_file
Crl::float_default_user_print_vchar
Crl::get_string2symbol
Crl::get_string2symbol_default
Crl::get_user_data_delete_hook
Crl::gmt_default_user_print_file
Crl::gmt_default_user_print_vchar
Crl::identifier_default_user_print_file
Crl::identifier_default_user_print_vchar
Crl::is_c_identifier
Crl::is_initialised
Crl::is_lowcase_identifier
Crl::is_normalised_decimal
Crl::klass_id_to_crl_name
Crl::klass_id_to_name
Crl::set_handle_foreign_item
Crl::set_string2symbol
Crl::set_user_data_delete_hook
Crl::signed_default_user_print_file
Crl::signed_default_user_print_vchar
Crl::string2symbol
Crl::string_default_user_print_file
Crl::string_default_user_print_vchar
Crl::symbol_default_user_print_file
Crl::symbol_default_user_print_vchar
Crl::type_any
WithID::unique_id
Crl::unsigned_default_user_print_file
Crl::unsigned_default_user_print_vchar
Object::operator delete
Object::operator new
Object::operator!=crl_data_is_not_equal
Object::operator<crl_data_is_less_than
Object::operator<=crl_data_is_less_equal
Object::operator==crl_data_is_equal
Object::operator>crl_data_is_greater_than
Object::operator>=crl_data_is_greater_equal
Object::_ref
Object::_ref_unref
Object::_unref
Object::_unref_no_delete
Item::attrscrl_data_get_attrs
Item::attrs_to_vcharcrl_data_attrs_to_vchar
Object::check_sigcrl_data_check_sig
Object::class_idcrl_data_get_class_id
Item::clear_attrscrl_data_clear_attrs
Object::cmpcrl_data_cmp
Object::cmp_shallowcrl_data_cmp_shallow
WithID::crl_abbrevcrl_data_get_crl_abbrev
WithID::crl_namecrl_data_get_crl_name
Item::has_attrscrl_data_has_attrs
Object::hashcrl_data_hash
Object::hash_shallowcrl_data_hash_shallow
Object::heap_sigcrl_data_get_heap_sig
WithID::idcrl_data_get_id
WithID::id_to_vcharcrl_data_id_to_string
Object::klass_idcrl_data_get_klass_id
Object::klass_namecrl_data_get_klass_name
Object::mapcrl_data_map
Object::map_subcrl_data_map_sub_with_data
Item::namecrl_data_get_name
Object::printcrl_data_print_vchar
Item::print_attrscrl_data_print_attrs_vchar
WithID::print_idcrl_data_print_id_vchar
Object::ref_count
Item::reset_attribute_symcrl_data_reset_attribute_sym
Item::reset_ctxt_attribute_symcrl_data_reset_ctxt_attribute_sym
Item::reset_ctxt_recursivelycrl_data_reset_ctxt_recursively
Item::reset_ctxt_recursively_symcrl_data_reset_ctxt_recursively_sym
Item::reset_recursivelycrl_data_reset_recursively
Item::reset_recursively_symcrl_data_reset_recursively_sym
Object::routinecrl_data_get_routine_const
Object::set_user_datacrl_data_set_user_data
Structure::skipcrl_data_skip
Object::to_vcharcrl_data_to_vchar
Object::user_datacrl_data_get_user_data_const


Detailed Descriptions


#if CRL_NEED_DATA

list_key_t key_graph () const

C++: crl_list_key_t CrlData::key_graph () const
C: crl_list_key_t crl_data_get_key_graph (crl_data_t const * self)

Reader of slot 'key_graph': Storage place in graph.

This reader must not be invoked with this == NULL.

#endif


#if CRL_NEED_DATA

ListBytes const * bytes () const

C++: CrlListBytes const * CrlData::bytes () const
C: CrlListBytes const * crl_data_get_bytes (crl_data_t const * self)

Reader of slot 'bytes': Bytes entries in this data block.

This reader is NULL safe; for this == NULL, it returns NULL.

#endif


#if CRL_NEED_DATA

bool is_external () const

C++: bool CrlData::is_external () const
C: crl_bool_t crl_data_is_external (crl_data_t const * self)

Reader of slot 'is_external': Whether the data is external.

This reader is NULL safe; for this == NULL, it returns false.

#endif


#if CRL_NEED_DATA

bool is_public () const

C++: bool CrlData::is_public () const
C: crl_bool_t crl_data_is_public (crl_data_t const * self)

Reader of slot 'is_public': Whether the data is public.

This reader is NULL safe; for this == NULL, it returns false.

#endif


#if CRL_NEED_DATA

[constructor] CrlData ()

C++: CrlData::CrlData ()
C: crl_data_t * crl_data_new (void)

Members:

#endif


#if CRL_NEED_DATA

[constructor] CrlData (Graph *)

C++: CrlData::CrlData (CrlGraph *)
C: crl_data_t * crl_data_new_and_insert (crl_graph_t *)

Additional attributes: external public

#endif


#if CRL_NEED_DATA

virtual ItemDeclaration * declaration () const

C++: CrlItemDeclaration * CrlData::declaration () const
C: crl_item_declaration_t * crl_data_get_declaration (crl_data_t const * self)
#endif


#if CRL_NEED_DATA

bool set_external (bool = 1)

C++: bool CrlData::set_external (bool = 1)
C: crl_bool_t crl_data_set_external (crl_data_t * self, crl_bool_t)

can only be set to one if the data contains no bytes. The functions returns its success.

#endif


#if CRL_NEED_DATA

void reset_external ()

C++: void CrlData::reset_external ()
C: void crl_data_reset_external (crl_data_t * self)

like set_external(false) (always succeeds)

#endif


#if CRL_NEED_DATA

bool set_public (bool = 1)

C++: bool CrlData::set_public (bool = 1)
C: crl_bool_t crl_data_set_public (crl_data_t * self, crl_bool_t)
#endif


#if CRL_NEED_DATA

bool reset_public ()

C++: bool CrlData::reset_public ()
C: crl_bool_t crl_data_reset_public (crl_data_t * self)

might might if public_labels attribute is non-empty and public is to be reset

#endif


#if CRL_NEED_DATA

void set_graph (Graph *)

C++: void CrlData::set_graph (CrlGraph *)
C: void crl_data_set_graph (crl_data_t * self, crl_graph_t *)
#endif


#if CRL_NEED_DATA

void reset_graph ()

C++: void CrlData::reset_graph ()
C: void crl_data_reset_graph (crl_data_t * self)

same as set_graph() with NULL

#endif


#if CRL_NEED_DATA

void insert (Bytes const * relative, Bytes * new, bool back)

C++: void CrlData::insert (CrlBytes const * relative, CrlBytes * new, bool back)
C: void crl_data_insert (crl_data_t * self, crl_bytes_t const * relative, crl_bytes_t * new, crl_bool_t back)
#endif


#if CRL_NEED_DATA

void append (Bytes *)

C++: void CrlData::append (CrlBytes *)
C: void crl_data_append (crl_data_t * self, crl_bytes_t *)
#endif


#if CRL_NEED_DATA

void prepend (Bytes *)

C++: void CrlData::prepend (CrlBytes *)
C: void crl_data_prepend (crl_data_t * self, crl_bytes_t *)
#endif


#if CRL_NEED_DATA

void insert_after (Bytes const *, Bytes *)

C++: void CrlData::insert_after (CrlBytes const *, CrlBytes *)
C: void crl_data_insert_after (crl_data_t * self, crl_bytes_t const *, crl_bytes_t *)
#endif


#if CRL_NEED_DATA

void insert_before (Bytes const *, Bytes *)

C++: void CrlData::insert_before (CrlBytes const *, CrlBytes *)
C: void crl_data_insert_before (crl_data_t * self, crl_bytes_t const *, crl_bytes_t *)
#endif


#if CRL_NEED_DATA

void erase (Bytes *)

C++: void CrlData::erase (CrlBytes *)
C: void crl_data_erase (crl_data_t * self, crl_bytes_t *)
#endif


#if CRL_NEED_DATA

void erase (list_key_t &, Bytes * = NULL)

C++: void CrlData::erase (crl_list_key_t &, CrlBytes * = NULL)
C: void crl_data_erase_in_loop (crl_data_t * self, crl_list_key_t *, crl_bytes_t *)
#endif


#if CRL_NEED_DATA

void clear_bytes ()

C++: void CrlData::clear_bytes ()
C: void crl_data_clear_bytes (crl_data_t * self)

Clears the list of bytes

#endif


#if CRL_NEED_DATA

Value * get ()

C++: CrlValue * CrlData::get ()
C: crl_value_t * crl_data_get (crl_data_t * self)

inherit

#endif


#if CRL_NEED_DATA

bool invalidate ()

C++: bool CrlData::invalidate ()
C: crl_bool_t crl_data_invalidate (crl_data_t * self)
#endif


#if CRL_NEED_DATA

bool is_valid () const

C++: bool CrlData::is_valid () const
C: crl_bool_t crl_data_is_valid (crl_data_t const * self)
#endif


#if CRL_NEED_DATA

bool is_valid_special () const

C++: bool CrlData::is_valid_special () const
C: crl_bool_t crl_data_is_valid_special (crl_data_t const * self)
#endif


#if CRL_NEED_DATA

bool poke (Value * value)

C++: bool CrlData::poke (CrlValue * value)
C: crl_bool_t crl_data_poke (crl_data_t * self, crl_value_t * value)
#endif


#if CRL_NEED_DATA

bool poke_once (Value * value)

C++: bool CrlData::poke_once (CrlValue * value)
C: crl_bool_t crl_data_poke_once (crl_data_t * self, crl_value_t * value)
#endif


#if CRL_NEED_DATA

Value * find_sym (symbol_t key) const

C++: