Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
InserterWithoutDuplicates< T > Struct Template Reference

Public Member Functions

 InserterWithoutDuplicates (std::vector< T > &vec)
 
size_t add (const T &val)
 

Public Attributes

std::vector< T > & vec
 
std::map< T, size_t > btree
 

Private Member Functions

InserterWithoutDuplicatesoperator= (const InserterWithoutDuplicates &)
 

Constructor & Destructor Documentation

◆ InserterWithoutDuplicates()

template<typename T >
InserterWithoutDuplicates< T >::InserterWithoutDuplicates ( std::vector< T > &  vec)
inline

Member Function Documentation

◆ add()

template<typename T >
size_t InserterWithoutDuplicates< T >::add ( const T val)
inline

◆ operator=()

template<typename T >
InserterWithoutDuplicates & InserterWithoutDuplicates< T >::operator= ( const InserterWithoutDuplicates< T > &  )
private

Member Data Documentation

◆ btree

template<typename T >
std::map<T, size_t> InserterWithoutDuplicates< T >::btree

◆ vec

template<typename T >
std::vector<T>& InserterWithoutDuplicates< T >::vec

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