class DataNode : public ASTnode

classes: DataItemNode, DataLoopNode, or SaveFrameNode.

Inheritance:


Public Methods

virtual int myLongestStr ( void ) const
Returns the length of the longest string in this object
virtual string myName () const
return the name of this node (tagname or saveframe name or the name of the loop's first tag if this is a DataLoopNode)
virtual ASTlist <DataValueNode *> * returnLoopValues (const string & tagName)
DEPRECIATED: Return the values in the loop that go with the given tag name

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 bool isOfType( ASTtype T )
virtual ASTnode* myParent(void)
virtual ASTtype myType(void)
bool NotVirtualIsOfType( ASTtype T )
virtual bool removeChild( ASTnode *child )
virtual bool removeMe( void )
virtual List <ASTnode*> * searchByTag( string &searchFor)
virtual List <ASTnode*> * searchByTag( char *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)

Public

virtual ASTnode* myParallelCopy( void )
void setPeer( ASTnode *)
This method returns a pointer to an ASTnode
const string& getPreComment( void )
void setPreComment( const string &cmt )
These functions are used to give each node in the AST tree the ability to remember a comment to be pasted into the file in front of that node
virtual List <ASTnode*> * searchForTypeByTag( ASTtype type, string &tag)
Overloaded Version
virtual List <ASTnode*> * searchForTypeByTag( ASTtype type, char *tag)
Overloaded Version
This method is exactly the same as 'searchByTag()', except that it tries to return an object of the type given
virtual List <ASTnode*> * searchForTypeByTagValue( ASTtype type, string &tag, string &value)
Overloaded Version
virtual List <ASTnode*> * searchForTypeByTagValue( ASTtype type, string &tag, char *value )
Overloaded Version Just calls the above version of this function
virtual List <ASTnode*> * searchForTypeByTagValue( ASTtype type, char *tag, string &value)
Overloaded Version Just calls the above version of this function
virtual List <ASTnode*> * searchForTypeByTagValue( ASTtype type, char *tag, char *value )
Overloaded Version Just calls the above version of this function
This method is exactly like 'searchByTag()', except that it tries to return an object of the type given
virtual List <ASTnode*> * searchByTagValue( string &tag, string &value)
Given a tag name and a value, find the AST object that that particular tag and value pair resides in
virtual List <ASTnode*> * searchByTagValue( string &tag, char *value)
Overloaded Version Just calls the above version of this function
virtual List <ASTnode*> * searchByTagValue( char *tag, string &value)
Overloaded Version Just calls the above version of this function
virtual List <ASTnode*> * searchByTagValue( char *tag, char *value)
Overloaded Version Just calls the above version of this function
int getLineNum( void )
void setLineNum( int num )
These functions return the line number and set the line number on which this node was found in the STAR file
int getColNum( void )
void setColNum( int num )
These functions return the column number and set the column number on which this node was found in the STAR file

Documentation

classes: DataItemNode, DataLoopNode, or SaveFrameNode.
virtual string myName() const
return the name of this node (tagname or saveframe name or the name of the loop's first tag if this is a DataLoopNode)

virtual ASTlist <DataValueNode *> * returnLoopValues(const string & tagName)
DEPRECIATED: Return the values in the loop that go with the given tag name. Only works with the outermost loop level. Only makes sense if this DataNode is a DataLoopNode, else it returns an empty list.

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 does nothing - this is an incomplete virtual class.)


Direct child classes:
SaveFrameNode
DataLoopNode
DataItemNode

alphabetic index hierarchy of classes


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

generated by doc++