|
|
The XrlAtomList class is used to pass lists of XrlAtoms of a given type in Xrl calls. The XrlAtom type that the list supports is determined by the first XrlAtom added to the list via the prepend() and append() methods.
BadAtomType (struct) | BadAtomType |
InvalidIndex (struct) | InvalidIndex |
XrlAtomList ()
| XrlAtomList |
void prepend (const XrlAtom& xa)
throw (BadAtomType) | prepend |
Insert an XrlAtom at the front of the list.
Parameters:
xa | the XrlAtom to be inserted. |
void append (const XrlAtom& xa)
throw (BadAtomType) | append |
Insert an XrlAtom at the tail of the list.
Parameters:
xa | the XrlAtom to be inserted. |
const XrlAtom& get (size_t itemno)
throw (InvalidIndex) | get |
[const]
Retrieve an XrlAtom from list.
Parameters:
itemno | the index of the atom in the list. |
Returns: the itemno - 1 XrlAtom in the list.
void remove (size_t itemno)
throw (InvalidIndex) | remove |
Removes an XrlAtom from list.
Parameters:
itemno | the index of the atom in the list to be removed. |
size_t size ()
| size |
[const]
Returns: number of XrlAtoms in the list.
bool operator== (const XrlAtomList& x)
| operator== |
[const]
Test equality of with another XrlAtomList.
Returns: true if XrlAtomList's are the same.
string str ()
| str |
[const]
Returns: a C++ string with the human-readable representation of the list.
XrlAtomList (const string& s)
| XrlAtomList |
Construct from human-readable representation.
size_t modify (size_t item, const uint8_t* buf, size_t len)
| modify |
void set_size (size_t size)
| set_size |