#include <ListParser.h>
Inheritance diagram for Parse::NaturalVectorParser:


Public Methods | |
| NaturalVectorParser (vector< Base *> &vectorToAddTo) | |
| virtual void | getValue (istream &input) |
Definition at line 181 of file ListParser.h.
|
||||||||||
|
NaturalVectorParser constructor
Definition at line 187 of file ListParser.h. |
|
||||||||||
|
Allocates a new Derived, parses istream input for values, and then places the newly allocated in the vector passed to the constructor. The Derived will be at the back of the vector, unless the identifier "index" was read, in which case it will be placed at index. It will NOT delete the pointer at the old index, causing it to overwrite and could lead to memory leaks. If an index was read that is >= the previous vector size, it will be resized so the index can fit into the vector. New added elements will be NULL. Reimplemented from Parse::ParseAction. Definition at line 197 of file ListParser.h. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001