29template<
typename V>
class WmNameTree :
public std::map<std::string, V>
53 string prefix(baseNodeName +
".");
55 typename map<string, V>::const_iterator lastMatch = childMatches.begin();
56 typename map<string, V>::const_iterator endpoint = this->end();
60 for (
typename map<string, V>::const_iterator it = this->begin(); it != endpoint;
63 if (!it->first.compare(0, prefix.size(), prefix))
71 pair<string, V>(it.first.substr(prefix.size()) ,
92 return childMatches.size();
Provides hierarchical container for T values according to unique string keys.
Definition: wmnametree.h:30
unsigned num_children(const std::string &baseNodeName) const
Return count of all children (and grandchildren, etc.) of a baseNode.
Definition: wmnametree.h:88
WmNameTree< V > find_children(const std::string &baseNodeName) const
Return all children (and grandchildren, etc.) of a baseNode.
Definition: wmnametree.h:48