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

path_map

Synopsis

path_map< Key, Value = void, bool MultiValue = false, Comp=std::less< Key > >

A std::map<...> like container that differs in that any 'key' can have subkeys.

example

    typedef path_map< std::string > bag_t; // value is void so like set;

    bag_t bag;
    bat_t::iterator ptr, end; // end is a null iterator

    bag["root"]["subitem"];

    bag["root"]["subitem1"];

    //...

    ptr = bag.find("root");

    if (ptr != end)
    {
      for (ptr = ptr.begin(); ptr != end; ++ptr)
      {
        std::cout << ptr->key << std::endl;
      }
    }
  

[Home]
Generated on Tue Aug 5 04:06:11 2003 for path_map by doxygen 1.3-rc3