DataNode Class Reference

#include <DataTree.h>

Collaboration diagram for DataNode:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DataNode ()
 DataNode (const char *name_in)
 ~DataNode ()
void setName (const char *name_in)
string & getName ()
int numChildren ()
int numChildren (const char *name_in)
DataElementelement ()
DataNodenewChild (const char *name_in)
DataNodechild (const char *name_in, int index=0) throw (DataInvalidChildException)
DataNodechild (int index) throw (DataInvalidChildException)
bool hasAnother (const char *name_in)
bool hasAnother ()
DataNodegetNext (const char *name_in) throw (DataInvalidChildException)
DataNodegetNext () throw (DataInvalidChildException)
void rewind (const char *name_in)
void rewind ()

Private Attributes

vector< DataNode * > children
map< string, vector< DataNode * >
, string_less
childmap
map< string, int, string_lesschildmap_ptr
string node_name
DataElement data_elem
int ptr


Constructor & Destructor Documentation

DataNode::DataNode (  ) 

DataNode::DataNode ( const char *  name_in  ) 

DataNode::~DataNode (  ) 


Member Function Documentation

void DataNode::setName ( const char *  name_in  ) 

string& DataNode::getName (  )  [inline]

int DataNode::numChildren (  ) 

int DataNode::numChildren ( const char *  name_in  ) 

DataElement & DataNode::element (  ) 

DataNode & DataNode::newChild ( const char *  name_in  ) 

Here is the call graph for this function:

DataNode & DataNode::child ( const char *  name_in,
int  index = 0 
) throw (DataInvalidChildException)

DataNode & DataNode::child ( int  index  )  throw (DataInvalidChildException)

bool DataNode::hasAnother ( const char *  name_in  ) 

bool DataNode::hasAnother (  ) 

DataNode & DataNode::getNext ( const char *  name_in  )  throw (DataInvalidChildException)

Here is the call graph for this function:

DataNode & DataNode::getNext (  )  throw (DataInvalidChildException)

Here is the call graph for this function:

void DataNode::rewind ( const char *  name_in  ) 

void DataNode::rewind (  ) 


Member Data Documentation

vector<DataNode *> DataNode::children [private]

map<string, vector<DataNode *>, string_less> DataNode::childmap [private]

map<string, int, string_less> DataNode::childmap_ptr [private]

string DataNode::node_name [private]

int DataNode::ptr [private]


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

Generated on Thu Mar 19 19:35:16 2009 for CubicVR by  doxygen 1.5.6