MezzanineEngine 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
Mezzanine::SetItems< T, V, Cmp > Class Template Reference

Container representing each node in the Trie. More...

#include <trie.h>

+ Collaboration diagram for Mezzanine::SetItems< T, V, Cmp >:

Public Types

typedef Items::const_iterator const_iterator
 
typedef NodeClass::EndNodeItemClass EndNodeItemClass
 
typedef NodeItem< T, V, Cmp,
SetItems< T, V, Cmp > > 
Item
 
typedef std::set< Item
*, NodeItemPtrCompare< T, V,
Cmp, SetItems< T, V, Cmp > > > 
Items
 
typedef Items::iterator iterator
 
typedef Node< T, V, Cmp,
SetItems< T, V, Cmp > > 
NodeClass
 
typedef NodeClass::NodeItemClass NodeItemClass
 

Public Member Functions

 SetItems (T const &endSymbol)
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
NodeItemClasscreateNodeItem (T const &k)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
bool eraseItem (T const &k)
 
const_iterator find (const T &k) const
 
iterator find (const T &k)
 
const ItemgetItem (T const &k) const
 
ItemgetItem (T const &k)
 
std::pair< Item *, bool > insertItem (T const &k)
 

Protected Attributes

const T mEndSymbol
 
Items mItems
 

Detailed Description

template<typename T, typename V, typename Cmp>
class Mezzanine::SetItems< T, V, Cmp >

Container representing each node in the Trie.

With this class the container used for storing node item is STL set. Here no extra space will used for storing node item. For searching in each node the time taken is propotional to number of item in the node.

Template Parameters
TType for each element in the key
VType of the value that the key will be representing
CmpComparison functor

Definition at line 936 of file trie.h.


The documentation for this class was generated from the following file: