#include <OpenMS/DATASTRUCTURES/Param.h>
Public Types | |
typedef std::vector< ParamNode > ::iterator | NodeIterator |
Iterator for child nodes. | |
typedef std::vector < ParamEntry >::iterator | EntryIterator |
Iterator for entries. | |
Public Member Functions | |
ParamNode () | |
Default constructor. | |
ParamNode (const String &n, const String &d) | |
Constructor with name and description. | |
bool | operator== (const ParamNode &rhs) const |
Equality operator (name, entries and subnodes are compared). | |
EntryIterator | findEntry (const String &name) |
Look up entry of this node (local search). | |
NodeIterator | findNode (const String &name) |
Look up subnode of this node (local search). | |
ParamNode * | findParentOf (const String &name) |
Look up the parent node of the entry or node corresponding to name (tree search). | |
ParamEntry * | findEntryRecursive (const String &name) |
Look up the entry corresponding to name (tree search). | |
void | insert (const ParamNode &node, const String &prefix="") |
Inserts a node with the given prefix . | |
void | insert (const ParamEntry &entry, const String &prefix="") |
Inserts an entry with the given prefix . | |
UInt | size () const |
Returns the number of entries in the whole subtree. | |
String | suffix (const String &key) const |
Returns the name suffix of a key (the part behind the last ':' character). | |
Public Attributes | |
String | name |
Name of the node. | |
String | description |
Description of the node. | |
std::vector< ParamEntry > | entries |
Entries (leafs) in the node. | |
std::vector< ParamNode > | nodes |
Subnodes. |
typedef std::vector<ParamNode>::iterator NodeIterator |
Iterator for child nodes.
typedef std::vector<ParamEntry>::iterator EntryIterator |
Iterator for entries.
ParamNode | ( | ) |
Default constructor.
bool operator== | ( | const ParamNode & | rhs | ) | const |
Equality operator (name, entries and subnodes are compared).
EntryIterator findEntry | ( | const String & | name | ) |
Look up entry of this node (local search).
Returns the end iterator if no entry is found
NodeIterator findNode | ( | const String & | name | ) |
Look up subnode of this node (local search).
Returns the end iterator if no entry is found
Look up the parent node of the entry or node corresponding to name
(tree search).
Returns 0 if no entry is found
ParamEntry* findEntryRecursive | ( | const String & | name | ) |
Look up the entry corresponding to name
(tree search).
Returns 0 if no entry is found
Inserts a node
with the given prefix
.
void insert | ( | const ParamEntry & | entry, | |
const String & | prefix = "" | |||
) |
Inserts an entry
with the given prefix
.
UInt size | ( | ) | const |
Returns the number of entries in the whole subtree.
Returns the name suffix of a key
(the part behind the last ':' character).
Description of the node.
std::vector<ParamEntry> entries |
Entries (leafs) in the node.
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |