class HeadingNode : public ASTnode

HeadingNode is a type that holds a simple header for one of the other types of nodes

Inheritance:


Public Methods

void changeName (string &name)
Sets the name.
HeadingNode (HeadingNode & h)
HeadingNode (bool link, HeadingNode & h)
Copy with parallel link
HeadingNode (const string & h)
Constructor - give it a string to copy into the name.
virtual bool isOfType ( ASTtype T )
virtual int myLongestStr ( void ) const
Returns the length of the longest string in this object
inline string myName () const
Returns the name.
virtual ASTnode::ASTtype myType (void)

Public


Copy constructor - recurses down

Protected Fields

string myHeading

Inherited from ASTnode:

Public Classes

enum ASTtype
ASTNODE
BLOCKNODE
DATABLOCKNODE
DATAFILENODE
DATAHEADINGNODE
DATAITEMNODE
DATALISTNODE
DATALOOPNAMELISTNODE
DATALOOPDEFLISTNODE
DEPRECIATED - Do not use:
DATALOOPNODE
DATALOOPVALLISTNODE
DATANAMENODE
DATANODE
DATAVALUENODE
GLOBALBLOCKNODE
GLOBALHEADINGNODE
HEADINGNODE
LOOPROWNODE
ITERNODE
DEPRECIATED - Do not use:
LOOPNAMELISTNODE
LOOPDEFLISTNODE
DEPRECIATED - Do not use:
LOOPTABLENODE
LOOPITER
DEPRECIATED - Do not use:
LOOPVALLISTNODE
DEPRECIATED - Do not use:
SAVEFRAMELISTNODE
SAVEFRAMENODE
SAVEHEADINGNODE
STARLISTNODE
STARFILENODE

Public Methods

virtual void copyFrom( const ASTnode ©FromMe )
virtual ASTnode* myParent(void)
bool NotVirtualIsOfType( ASTtype T )
virtual bool removeChild( ASTnode *child )
virtual bool removeMe( void )
virtual List <ASTnode*> * searchByTag( char *searchFor)
virtual List <ASTnode*> * searchByTag( string &searchFor)
virtual List <ASTnode*> * searchForType( ASTtype type, int delim = -1)
virtual void setParent( ASTnode *p )
virtual size_t sizeOfMe(void)
virtual bool unlinkChild( ASTnode *child )
virtual bool unlinkMe( void )
virtual void Unparse(int indent)

Documentation

HeadingNode is a type that holds a simple header for one of the other types of nodes. It has several subtypes depending on what kind of heading it is. Typically a heading is just a string.
HeadingNode(HeadingNode & h)

Copy constructor - recurses down

HeadingNode(bool link, HeadingNode & h)
Copy with parallel link. Set "link" to true to create a copy with a parallel link, or set it to false to create a copy without a parallel link. See the external documentation for more details on parallel copies.

HeadingNode(const string & h)
Constructor - give it a string to copy into the name.

inline string myName() const
Returns the name.

void changeName(string &name)
Sets the name.

virtual ASTnode::ASTtype myType(void)

virtual bool isOfType( ASTtype T )

string myHeading

virtual int myLongestStr( void ) const
Returns the length of the longest string in this object. Used by Unparse() at various levels of the AST tree. (In this case it is just the length of the heading.)


Direct child classes:
SaveHeadingNode
GlobalHeadingNode
DataHeadingNode

alphabetic index hierarchy of classes


Starlib is a creation of BioMagResBank: bmrb.wisc.edu starlib banner

generated by doc++