WARPXM v1.10.0
|
Provides hierarchical container for T values according to unique string keys. More...
#include <wmnametree.h>
Provides hierarchical container for T values according to unique string keys.
Provides map class functionality where the unique keys are strings which are expected to be hierarchical. Hierarchy is determined by '.' delemiters in the string key. Ex: density, velocity.x, velocity.y, current.ion.x, current.electron.y are all valid keys. From above, velocity.x and velocity.y are both children of the velocity node. The parent node may or may not be an actual member of the container. Above, note no element 'velocity', just children of velocity.
Public Member Functions | |
WmNameTree () | |
Basic constructor creates empty container for elements of type V with unique string keys. | |
WmNameTree< V > | find_children (const std::string &baseNodeName) const |
Return all children (and grandchildren, etc.) of a baseNode. | |
unsigned | num_children (const std::string &baseNodeName) const |
Return count of all children (and grandchildren, etc.) of a baseNode. | |
|
inline |
Basic constructor creates empty container for elements of type V with unique string keys.
|
inline |
Return all children (and grandchildren, etc.) of a baseNode.
baseNodeName prefix is stripped.
baseNodeName | The string identifying the base node |
|
inline |
Return count of all children (and grandchildren, etc.) of a baseNode.
baseNodeName | The string identifying the base node |