Lumiera  0.pre.03
»edit your freedom«
IndexTable< VAL > Class Template Reference

#include "lib/diff/index-table.hpp"

Description

template<typename VAL>
class lib::diff::IndexTable< VAL >

data snapshot and lookup table

Definition at line 52 of file index-table.hpp.

Public Types

using const_iterator = typename std::vector< VAL >::const_iterator
 
using iterator = typename std::vector< VAL >::iterator
 

Public Member Functions

template<class SEQ >
 IndexTable (SEQ const &seq)
 
iterator begin ()
 
const_iterator begin () const
 
bool contains (VAL const &elm) const
 
iterator end ()
 
const_iterator end () const
 
VAL const & getElement (size_t i) const
 
size_t pos (VAL const &elm) const
 
size_t size () const
 

Private Member Functions

void __rejectDuplicate (VAL const &elm)
 

Private Attributes

std::vector< VAL > data_
 
std::map< VAL, size_t > idx_
 
+ Inheritance diagram for IndexTable< VAL >:
+ Collaboration diagram for IndexTable< VAL >:

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