freesecs::secstwo::var_list_item_t Class Reference

Variable list implementation. This class is to cover the cases where an isomorphic list may have variable number of elements. This class will be deserialized from XML by adding variable="true" attribute to the XML definition of the list. More...

#include <secstwo_internal.hpp>

Inheritance diagram for freesecs::secstwo::var_list_item_t:

Inheritance graph
[legend]
Collaboration diagram for freesecs::secstwo::var_list_item_t:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 var_list_item_t (const char *name)
virtual bool variable () const
virtual pdata_item_t clone () const
 Creates a copy of the message. Calls data item copy constructor and puts newly returned data item into a shared ptr. Contrary to cloning shared ptrs with ref count on a message is incremented, cloned message is a separate one and it's data can be edited with no impact to the nacestor data item.
data_item_toperator+= (const pdata_item_t &pit)
virtual bool match (const data_item_t &other, match_t kind=ALL) const
 Function to match a given data item to another data item.
virtual void clear_data ()
 Clears all data in a data item.
virtual int copy_data (const data_item_t &o)
 Copies all data from the given item. Data copy is made if data items have same type. For list item copy data is made reqursively and does not stop upon unsuccesful data copy.
virtual data_item_toperator[] (uint32_t ix)
 Array access operator by index There are two main cases for this operator: 1. Access to the element of a list data item 2. Access to the elements in a numeric item body If the index goes beyond the item size, the ref to the item itself is returned. One is strongly encouraged to use.

Friends

class binary_deserializer_t
class xml_deserializer_t
class binary_serializer_t
class xml_serializer_t


Detailed Description

Variable list implementation. This class is to cover the cases where an isomorphic list may have variable number of elements. This class will be deserialized from XML by adding variable="true" attribute to the XML definition of the list.

Definition at line 738 of file secstwo_internal.hpp.


Member Function Documentation

virtual bool freesecs::secstwo::var_list_item_t::match ( const data_item_t it,
match_t  match = ALL 
) const [inline, virtual]

Function to match a given data item to another data item.

Parameters:
it Item to match.
match Token of kind of match.
See also:
match_t

Reimplemented from freesecs::secstwo::list_item_t.

Definition at line 771 of file secstwo_internal.hpp.

References _template, and freesecs::secstwo::list_item_t::match().

Here is the call graph for this function:

virtual int freesecs::secstwo::var_list_item_t::copy_data ( const data_item_t  )  [inline, virtual]

Copies all data from the given item. Data copy is made if data items have same type. For list item copy data is made reqursively and does not stop upon unsuccesful data copy.

Returns:
Data copy result.
Return values:
0 Data copy successful
< 0 Data copy performed with errors

Reimplemented from freesecs::secstwo::list_item_t.

Definition at line 793 of file secstwo_internal.hpp.

References freesecs::secstwo::list_item_t::_data, _template, freesecs::secstwo::data_item_t::type(), and freesecs::secstwo::list_item_t::variable().

Here is the call graph for this function:

virtual data_item_t& freesecs::secstwo::var_list_item_t::operator[] ( uint32_t  ix  )  [inline, virtual]

Array access operator by index There are two main cases for this operator: 1. Access to the element of a list data item 2. Access to the elements in a numeric item body If the index goes beyond the item size, the ref to the item itself is returned. One is strongly encouraged to use.

See also:
length method prior to calling this operator
Parameters:
ix access index
Returns:
Ref to the item found or ref to the item itself if failure.

Reimplemented from freesecs::secstwo::list_item_t.

Definition at line 816 of file secstwo_internal.hpp.

References freesecs::secstwo::list_item_t::operator[]().

Here is the call graph for this function:


The documentation for this class was generated from the following file:

Generated on Sun Jun 20 08:10:06 2010 for FREESECS secstwo by  doxygen 1.5.6