AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::SmallVector< type, max_size > Struct Template Reference

Detailed Description

template<typename type, unsigned max_size>
struct AmpGen::SmallVector< type, max_size >

Definition at line 5 of file SmallVector.h.

Public Types

typedef type value_type
 

Public Member Functions

auto begin () const
 
auto end () const
 
auto begin ()
 
auto end ()
 
value_typeoperator[] (unsigned i)
 
const value_typeoperator[] (unsigned i) const
 
void push_back (const value_type &thing)
 
template<typename iterator_type, typename other_iterator_type>
void insert (iterator_type mbegin, other_iterator_type ibegin, other_iterator_type iend)
 
 SmallVector ()=default
 
 SmallVector (std::initializer_list< value_type > &&values)
 
bool operator== (const SmallVector &other) const
 

Public Attributes

std::array< type, max_size > store = {0}
 
unsigned size = 0
 

Member Typedef Documentation

◆ value_type

template<typename type, unsigned max_size>
typedef type AmpGen::SmallVector< type, max_size >::value_type

Definition at line 6 of file SmallVector.h.

Constructor & Destructor Documentation

◆ SmallVector() [1/2]

template<typename type, unsigned max_size>
AmpGen::SmallVector< type, max_size >::SmallVector ( )
default

◆ SmallVector() [2/2]

template<typename type, unsigned max_size>
AmpGen::SmallVector< type, max_size >::SmallVector ( std::initializer_list< value_type > && values)
inline

Definition at line 26 of file SmallVector.h.

Member Function Documentation

◆ begin() [1/2]

template<typename type, unsigned max_size>
auto AmpGen::SmallVector< type, max_size >::begin ( )
inline

Definition at line 12 of file SmallVector.h.

◆ begin() [2/2]

template<typename type, unsigned max_size>
auto AmpGen::SmallVector< type, max_size >::begin ( ) const
inline

Definition at line 10 of file SmallVector.h.

◆ end() [1/2]

template<typename type, unsigned max_size>
auto AmpGen::SmallVector< type, max_size >::end ( )
inline

Definition at line 13 of file SmallVector.h.

◆ end() [2/2]

template<typename type, unsigned max_size>
auto AmpGen::SmallVector< type, max_size >::end ( ) const
inline

Definition at line 11 of file SmallVector.h.

◆ insert()

template<typename type, unsigned max_size>
template<typename iterator_type, typename other_iterator_type>
void AmpGen::SmallVector< type, max_size >::insert ( iterator_type mbegin,
other_iterator_type ibegin,
other_iterator_type iend )
inline

Definition at line 18 of file SmallVector.h.

◆ operator==()

template<typename type, unsigned max_size>
bool AmpGen::SmallVector< type, max_size >::operator== ( const SmallVector< type, max_size > & other) const
inline

Definition at line 30 of file SmallVector.h.

◆ operator[]() [1/2]

template<typename type, unsigned max_size>
value_type & AmpGen::SmallVector< type, max_size >::operator[] ( unsigned i)
inline

Definition at line 14 of file SmallVector.h.

◆ operator[]() [2/2]

template<typename type, unsigned max_size>
const value_type & AmpGen::SmallVector< type, max_size >::operator[] ( unsigned i) const
inline

Definition at line 15 of file SmallVector.h.

◆ push_back()

template<typename type, unsigned max_size>
void AmpGen::SmallVector< type, max_size >::push_back ( const value_type & thing)
inline

Definition at line 16 of file SmallVector.h.

Member Data Documentation

◆ size

template<typename type, unsigned max_size>
unsigned AmpGen::SmallVector< type, max_size >::size = 0

Definition at line 9 of file SmallVector.h.

◆ store

template<typename type, unsigned max_size>
std::array<type, max_size> AmpGen::SmallVector< type, max_size >::store = {0}

Definition at line 8 of file SmallVector.h.


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