#include <ot_list.h>
Public Member Functions | |
ot_list (void) | |
ot_list (const ot_list &c) | |
virtual | ~ot_list () |
Destructor. | |
ot_obj * | dup (void) const |
void | asXml (ostream &s=cout, int i=0) const |
bool | asData (ostream &s) const |
bool | erase (const ot_obj *o) |
Erase an object from the array. | |
ot_list & | operator= (const ot_list &c) |
Assign op. | |
bool | operator== (const ot_list &c) |
Eq op. | |
bool | operator!= (const ot_list &v) |
Operator !=. | |
bool | operator== (const ot_obj *o) const |
Eq op. |
This class implement a list of OT objects.
ot_list::ot_list | ( | void | ) |
size | size of the array |
ot_list::ot_list | ( | const ot_list & | c | ) |
Copy constructor
c | Object to copy |
virtual ot_list::~ot_list | ( | ) | [virtual] |
Destructor.
ot_obj* ot_list::dup | ( | void | ) | const [virtual] |
Duplicate the object Clone the array and all the objects contained.
Implements ot_obj.
void ot_list::asXml | ( | ostream & | s = cout , |
|
int | i = 0 | |||
) | const [virtual] |
Print the XML rappresentation of object into string
s | the output string | |
i | The indent spaces |
Implements ot_obj.
bool ot_list::asData | ( | ostream & | s | ) | const [virtual] |
bool ot_list::erase | ( | const ot_obj * | o | ) |
Erase an object from the array.
Erase an obect from the array
o | The object to erase |
bool ot_list::operator== | ( | const ot_list & | c | ) |
Eq op.
bool ot_list::operator!= | ( | const ot_list & | v | ) |
Operator !=.
bool ot_list::operator== | ( | const ot_obj * | o | ) | const [inline, virtual] |