Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Parse::NaturalParser Class Template Reference

#include <ListParser.h>

Inheritance diagram for Parse::NaturalParser:

Inheritance graph
[legend]
Collaboration diagram for Parse::NaturalParser:

Collaboration graph
[legend]
List of all members.

Public Methods

 NaturalParser (Base *&pointerRef)
void getValue (std::istream &in)

Detailed Description

template<class Base, class Derived>
class Parse::NaturalParser< Base, Derived >

ParseAction that dynamically allocates a templated class to fill pointer, used like NaturalListParser and NaturalVectorParser, except that instead of putting the dynamically allocated Parseable into a vector or list, it makes a pointer point to it.

Note that Base should be a type of Parseable

Definition at line 69 of file ListParser.h.


Constructor & Destructor Documentation

template<class Base, class Derived>
Parse::NaturalParser< Base, Derived >::NaturalParser Base *&    pointerRef
 

Parameters:
pointerRef  reference to pointer to Base get overwritten with dynmically allocated Derived if getValue() is called

Definition at line 74 of file ListParser.h.


Member Function Documentation

template<class Base, class Derived>
void Parse::NaturalParser< Base, Derived >::getValue std::istream &    in [virtual]
 

Allocates a new Derived, puts it into the pointer passed to the constructor, creates a parser for that object, and calls the freshly allocated parser

Reimplemented from Parse::ParseAction.

Definition at line 81 of file ListParser.h.


The documentation for this class was generated from the following file:
Generated on Tue May 21 07:26:57 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001