OperatorNode Class Reference
[Data classes]

#include <nedelements.h>

Inheritance diagram for OperatorNode:

NEDElement List of all members.

Detailed Description

GENERATED CLASS.

Represents the <operator&gt; XML element in memory. DTD declaration:

 <!ELEMENT operator ((operator|function|param-ref|ident|const)+)>
 <!ATTLIST operator
      name                CDATA     REQUIRED >
 


Public Member Functions

Constructors, destructor
 OperatorNode ()
 OperatorNode (NEDElement *parent)
virtual ~OperatorNode ()
Redefined NEDElement methods, incl. generic access to attributes
virtual const char * getTagName () const
virtual int getTagCode () const
virtual int getNumAttributes () const
virtual const char * getAttributeName (int k) const
virtual const char * getAttribute (int k) const
virtual void setAttribute (int k, const char *val)
virtual const char * getAttributeDefault (int k) const
Typed access to attributes, children and siblings
const char * getName () const
void setName (const char *val)
virtual OperatorNodegetNextOperatorNodeSibling () const
virtual OperatorNodegetFirstOperatorChild () const
virtual FunctionNodegetFirstFunctionChild () const
virtual ParamRefNodegetFirstParamRefChild () const
virtual IdentNodegetFirstIdentChild () const
virtual ConstNodegetFirstConstChild () const


Constructor & Destructor Documentation

OperatorNode::OperatorNode  )  [inline]
 

OperatorNode::OperatorNode NEDElement parent  )  [inline]
 

virtual OperatorNode::~OperatorNode  )  [inline, virtual]
 


Member Function Documentation

virtual const char* OperatorNode::getAttribute int  k  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the value of the kth attribute (i.e.

the attribute with the name getAttributeName(k)).

It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).

Implements NEDElement.

virtual const char* OperatorNode::getAttributeDefault int  k  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the default value of the kth attribute, as defined in the DTD.

It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).

Implements NEDElement.

virtual const char* OperatorNode::getAttributeName int  k  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the name of the kth attribute as defined in the DTD.

It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).

Implements NEDElement.

virtual ConstNode* OperatorNode::getFirstConstChild  )  const [virtual]
 

virtual FunctionNode* OperatorNode::getFirstFunctionChild  )  const [virtual]
 

virtual IdentNode* OperatorNode::getFirstIdentChild  )  const [virtual]
 

virtual OperatorNode* OperatorNode::getFirstOperatorChild  )  const [virtual]
 

virtual ParamRefNode* OperatorNode::getFirstParamRefChild  )  const [virtual]
 

const char* OperatorNode::getName  )  const [inline]
 

virtual OperatorNode* OperatorNode::getNextOperatorNodeSibling  )  const [virtual]
 

virtual int OperatorNode::getNumAttributes  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the number of attributes defined in the DTD.

Implements NEDElement.

virtual int OperatorNode::getTagCode  )  const [inline, virtual]
 

Overridden in subclasses to return the numeric code (NED_xxx) of the XML element the class represents.

Implements NEDElement.

virtual const char* OperatorNode::getTagName  )  const [inline, virtual]
 

Overridden in subclasses to return the name of the XML element the class represents.

Implements NEDElement.

virtual void OperatorNode::setAttribute int  k,
const char *  val
[virtual]
 

Pure virtual method, it should be redefined in subclasses to set the value of the kth attribute (i.e.

the attribute with the name getAttributeName(k)).

If k is out of range (i.e. negative or greater than getNumAttributes()), the call should be ignored.

Implements NEDElement.

void OperatorNode::setName const char *  val  )  [inline]
 


The documentation for this class was generated from the following file:
Generated on Sat Oct 21 17:48:00 2006 for OMNeT++/OMNEST NEDXML by  doxygen 1.4.6