class HeadingNode

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

Inheritance:


Public Methods

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

Public Members

[more] Copy constructor - recurses down

Protected Fields

[more]string myHeading


Inherited from ASTnode:

Public Methods

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

Public Members

o
oenum ASTtype

Protected Methods

ovoid printIndent(int indent)


Inherited from ASTnodeWithPosBits:


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.
o HeadingNode(HeadingNode & h)

o Copy constructor - recurses down
Copy constructor - recurses down

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

oinline string myName() const
Returns the name

ovoid changeName(string &name)
Sets the name

ovirtual ASTnode::ASTtype myType(void)

ovirtual bool isOfType( ASTtype T )

ostring myHeading

ovirtual 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 HTML hierarchy of classes or Java


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