Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::stree::MarkerBuilder< K, T, C > Class Template Reference

#include <elm/stree/MarkerBuilder.h>

+ Inheritance diagram for elm::stree::MarkerBuilder< K, T, C >:

Public Member Functions

void add (const K &mark, const T &val)
 
void make (stree::Tree< K, T, C > &tree)
 

Additional Inherited Members

- Protected Types inherited from elm::stree::Builder< K, T, C >
typedef Tree< K, T, C >::node_t node_t
 
- Protected Member Functions inherited from elm::stree::Builder< K, T, C >
node_tallocate (t::uint32 n)
 
int make (node_t *nodes, int &s, int start, int end)
 

Detailed Description

template<class K, class T, class C = Comparator<K>>
class elm::stree::MarkerBuilder< K, T, C >

Efficient and easy builder for elm::stree::Tree class thatjust records segments and their value.

Parameters
KKey type.
TRetrieven item type.
CComparator to compare keys (default to Comparator<K>).

Member Function Documentation

template<class K , class T , class C = Comparator<K>>
void elm::stree::MarkerBuilder< K, T, C >::add ( const K &  mark,
const T &  val 
)

Add a segment starting at the given mark, containing the given value and spanning the next upper given mark. It must be noticed that the value of the greater mark is not used.

Parameters
markMark to add.
valValue of the segment.
template<class K , class T , class C = Comparator<K>>
void elm::stree::MarkerBuilder< K, T, C >::make ( stree::Tree< K, T, C > &  tree)

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