ant
A2 ant: class-based analysis framework
ant::std_ext::mapped_vectors< Key, Value > Struct Template Reference

The mapped_vectors struct provides fast access to a collection of vectors. More...

#include <mapped_vectors.h>

Classes

class  const_iterator
 

Public Member Functions

void clear ()
 
std::size_t size () const
 
void add_item (const Key &key, const Value &value)
 
const std::vector< Value > & get_item (const Key &key) const
 
const_iterator begin () const
 
const_iterator end () const
 

Friends

class const_iterator
 

Detailed Description

template<typename Key, typename Value>
struct ant::std_ext::mapped_vectors< Key, Value >

The mapped_vectors struct provides fast access to a collection of vectors.

Member Function Documentation

◆ add_item()

template<typename Key, typename Value>
void ant::std_ext::mapped_vectors< Key, Value >::add_item ( const Key &  key,
const Value &  value 
)
inline

◆ begin()

template<typename Key, typename Value>
const_iterator ant::std_ext::mapped_vectors< Key, Value >::begin ( ) const
inline

◆ clear()

template<typename Key, typename Value>
void ant::std_ext::mapped_vectors< Key, Value >::clear ( )
inline

◆ end()

template<typename Key, typename Value>
const_iterator ant::std_ext::mapped_vectors< Key, Value >::end ( ) const
inline

◆ get_item()

template<typename Key, typename Value>
const std::vector<Value>& ant::std_ext::mapped_vectors< Key, Value >::get_item ( const Key &  key) const
inline

◆ size()

template<typename Key, typename Value>
std::size_t ant::std_ext::mapped_vectors< Key, Value >::size ( ) const
inline

Friends And Related Function Documentation

◆ const_iterator

template<typename Key, typename Value>
friend class const_iterator
friend

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