ot_list Class Reference

OT_LIB Vector class. More...

#include <ot_list.h>

Inheritance diagram for ot_list:

ot_obj list

List of all members.

Public Member Functions

 ot_list (void)
 ot_list (const ot_list &c)
virtual ~ot_list ()
 Destructor.
ot_objdup (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_listoperator= (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.


Detailed Description

OT_LIB Vector class.

This class implement a list of OT objects.


Constructor & Destructor Documentation

ot_list::ot_list ( void   ) 

Parameters:
size size of the array

ot_list::ot_list ( const ot_list c  ) 

Copy constructor

Parameters:
c Object to copy

virtual ot_list::~ot_list (  )  [virtual]

Destructor.


Member Function Documentation

ot_obj* ot_list::dup ( void   )  const [virtual]

Duplicate the object Clone the array and all the objects contained.

Returns:
The new object

Implements ot_obj.

void ot_list::asXml ( ostream &  s = cout,
int  i = 0 
) const [virtual]

Print the XML rappresentation of object into string

Parameters:
s the output string
i The indent spaces

Implements ot_obj.

bool ot_list::asData ( ostream &  s  )  const [virtual]

Build a binary image of object

Parameters:
s The output stream

Implements ot_obj.

bool ot_list::erase ( const ot_obj o  ) 

Erase an object from the array.

Erase an obect from the array

Parameters:
o The object to erase
Returns:
False if the function fail else the object pointer

ot_list& ot_list::operator= ( const ot_list c  ) 

Assign op.

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]

Eq op.

Implements ot_obj.

References ot_obj::getType().


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

Generated on Sun May 4 12:42:44 2008 for OT_LIB 4.1 by  doxygen 1.5.5