VR-Forces 4.2 Class Documentation
List of all members | Public Types | Public Member Functions | Protected Attributes | Private Attributes
trpgPrintGraphParser::ReadHelper Class Reference
Inheritance diagram for trpgPrintGraphParser::ReadHelper:
Inheritance graph
[legend]

Public Types

typedef std::vector< trpgChildRefChildRefList
 typedef std::vector<const trpgChildRef> ChildRefList; The const in the template parameter was removed because it causes GCC to freak out.

Public Member Functions

 ReadHelper (trpgPrintGraphParser *inPG, trpgPrintBuffer *inBuf)
 ~ReadHelper ()
void * Parse (trpgToken, trpgReadBuffer &buf)
void Reset ()
unsigned int GetNbChildrenRef () const
 After parsing this will return the number of trpgChildRef node found.
const trpgChildRefGetChildRef (unsigned int idx) const
 This will return the trpgChildRef node associated with the index.
- Public Member Functions inherited from trpgr_Callback
virtual ~trpgr_Callback (void)

Protected Attributes

trpgPrintBufferpBuf
trpgPrintGraphParserparse

Private Attributes

ChildRefList childRefList

Member Typedef Documentation

typedef std::vector<const trpgChildRef> ChildRefList; The const in the template parameter was removed because it causes GCC to freak out.

I am of the opinion that const doesn't make sense in a template parameter for std::vector anyway... const prevents you from changing the value, so what exactly is the point? How does one add entries to the vector without giving them a value? -ADS

Constructor & Destructor Documentation

trpgPrintGraphParser::ReadHelper::ReadHelper ( trpgPrintGraphParser inPG,
trpgPrintBuffer inBuf 
)
inline
trpgPrintGraphParser::ReadHelper::~ReadHelper ( )
inline

Member Function Documentation

void* trpgPrintGraphParser::ReadHelper::Parse ( trpgToken  ,
trpgReadBuffer buf 
)
virtual

Reimplemented from trpgr_Callback.

void trpgPrintGraphParser::ReadHelper::Reset ( )
unsigned int trpgPrintGraphParser::ReadHelper::GetNbChildrenRef ( ) const

After parsing this will return the number of trpgChildRef node found.

const trpgChildRef* trpgPrintGraphParser::ReadHelper::GetChildRef ( unsigned int  idx) const

This will return the trpgChildRef node associated with the index.

this will retrun 0 if idx is out of bound

Member Data Documentation

trpgPrintBuffer* trpgPrintGraphParser::ReadHelper::pBuf
protected
trpgPrintGraphParser* trpgPrintGraphParser::ReadHelper::parse
protected
ChildRefList trpgPrintGraphParser::ReadHelper::childRefList
private

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)