CGRA-ME
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
VectorSet< IndexMap, Value > Struct Template Reference

Provides some standard set operations, with a fixed size. More...

#include <Collections.h>

Classes

struct  const_iterator
 
struct  iterator
 

Public Types

using value_type = Value
 
using DataStore = std::vector< value_type >
 

Public Member Functions

 VectorSet (std::size_t size)
 
 VectorSet (std::size_t size, IndexMap imap)
 
std::pair< iterator, bool > insert (value_type vt)
 
iterator find (const value_type &k)
 
const_iterator find (const value_type &k) const
 
std::size_t count (const value_type &k) const
 
iterator end ()
 
const_iterator end () const
 

Private Member Functions

iterator iterAt (const value_type &k)
 
const_iterator iterAt (const value_type &k) const
 
bool has_data (iterator i) const
 

Private Attributes

IndexMap imap
 
DataStore data
 

Detailed Description

template<typename IndexMap, typename Value>
struct VectorSet< IndexMap, Value >

Provides some standard set operations, with a fixed size.

Definition at line 239 of file Collections.h.

Member Typedef Documentation

◆ DataStore

template<typename IndexMap , typename Value >
using VectorSet< IndexMap, Value >::DataStore = std::vector<value_type>

Definition at line 241 of file Collections.h.

◆ value_type

template<typename IndexMap , typename Value >
using VectorSet< IndexMap, Value >::value_type = Value

Definition at line 240 of file Collections.h.

Constructor & Destructor Documentation

◆ VectorSet() [1/2]

template<typename IndexMap , typename Value >
VectorSet< IndexMap, Value >::VectorSet ( std::size_t  size)
inline

Definition at line 259 of file Collections.h.

◆ VectorSet() [2/2]

template<typename IndexMap , typename Value >
VectorSet< IndexMap, Value >::VectorSet ( std::size_t  size,
IndexMap  imap 
)
inline

Definition at line 260 of file Collections.h.

Member Function Documentation

◆ count()

template<typename IndexMap , typename Value >
std::size_t VectorSet< IndexMap, Value >::count ( const value_type k) const
inline

Definition at line 280 of file Collections.h.

◆ end() [1/2]

template<typename IndexMap , typename Value >
iterator VectorSet< IndexMap, Value >::end ( )
inline

Definition at line 282 of file Collections.h.

◆ end() [2/2]

template<typename IndexMap , typename Value >
const_iterator VectorSet< IndexMap, Value >::end ( ) const
inline

Definition at line 283 of file Collections.h.

◆ find() [1/2]

template<typename IndexMap , typename Value >
iterator VectorSet< IndexMap, Value >::find ( const value_type k)
inline

Definition at line 271 of file Collections.h.

◆ find() [2/2]

template<typename IndexMap , typename Value >
const_iterator VectorSet< IndexMap, Value >::find ( const value_type k) const
inline

Definition at line 275 of file Collections.h.

◆ has_data()

template<typename IndexMap , typename Value >
bool VectorSet< IndexMap, Value >::has_data ( iterator  i) const
inlineprivate

Definition at line 288 of file Collections.h.

◆ insert()

template<typename IndexMap , typename Value >
std::pair<iterator, bool> VectorSet< IndexMap, Value >::insert ( value_type  vt)
inline

Definition at line 264 of file Collections.h.

◆ iterAt() [1/2]

template<typename IndexMap , typename Value >
iterator VectorSet< IndexMap, Value >::iterAt ( const value_type k)
inlineprivate

Definition at line 286 of file Collections.h.

◆ iterAt() [2/2]

template<typename IndexMap , typename Value >
const_iterator VectorSet< IndexMap, Value >::iterAt ( const value_type k) const
inlineprivate

Definition at line 287 of file Collections.h.

Member Data Documentation

◆ data

template<typename IndexMap , typename Value >
DataStore VectorSet< IndexMap, Value >::data
private

Definition at line 291 of file Collections.h.

◆ imap

template<typename IndexMap , typename Value >
IndexMap VectorSet< IndexMap, Value >::imap
private

Definition at line 290 of file Collections.h.


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