class DataNameNode : public ASTnode

Holds a name of either a tag/value pair or a loop tag name

Inheritance:


Public Methods

DataNameNode (const string &str)
DataNameNode (bool link, DataNameNode &fromThis )
Parallel copy constructor:
virtual bool isOfType ( ASTtype T )
virtual int myLongestStr ( void ) const
Returns the length of the longest string in this object
string myName () const
Returns the name of this tag (includes the leading underscore).
virtual ASTnode::ASTtype myType (void)
void setName ( const string &newName )
Sets the name of this tag (caller must provide the leading underscore).
void Unparse (int indent)
void Unparse (int indent, int padsize)

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 )

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

Holds a name of either a tag/value pair or a loop tag name
virtual ASTnode::ASTtype myType(void)

virtual bool isOfType( ASTtype T )

DataNameNode(const string &str)

DataNameNode(bool link, DataNameNode &fromThis )
Parallel copy constructor:

string myName() const
Returns the name of this tag (includes the leading underscore).

void setName( const string &newName )
Sets the name of this tag (caller must provide the leading underscore).

void Unparse(int indent)

void Unparse(int indent, int padsize)

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 name itself:)


This class has no child classes.

alphabetic index hierarchy of classes


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

generated by doc++