AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE > Class Template Reference

Detailed Description

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
class AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >

Can only be navigated using quasi foward-iterators. Designed such that very large sets can be operated on if only some value from the set is required at the end of the computation, for example, for computing large sets of multidimensional integral is is more efficient to tranch the computation onto blocks of events.

Definition at line 17 of file DynamicContainer.h.

Classes

class  Iterator

Public Member Functions

template<class GENERATOR>
 DynamicContainer (const size_t &totalSize, const GENERATOR &generator)
Iterator begin ()
Iterator end ()
const size_t & size () const
TYPE & operator[] (const size_t &pos)
const TYPE & operator[] (const size_t &pos) const
void refresh ()
CONTAINER_TYPE & buffer ()

Constructor & Destructor Documentation

◆ DynamicContainer()

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
template<class GENERATOR>
AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::DynamicContainer ( const size_t & totalSize,
const GENERATOR & generator )
inline

Definition at line 47 of file DynamicContainer.h.

Member Function Documentation

◆ begin()

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
Iterator AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::begin ( )
inline

Definition at line 50 of file DynamicContainer.h.

◆ buffer()

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
CONTAINER_TYPE & AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::buffer ( )
inline

Definition at line 59 of file DynamicContainer.h.

◆ end()

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
Iterator AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::end ( )
inline

Definition at line 51 of file DynamicContainer.h.

◆ operator[]() [1/2]

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
TYPE & AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::operator[] ( const size_t & pos)
inline

Definition at line 53 of file DynamicContainer.h.

◆ operator[]() [2/2]

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
const TYPE & AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::operator[] ( const size_t & pos) const
inline

Definition at line 54 of file DynamicContainer.h.

◆ refresh()

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
void AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::refresh ( )
inline

Definition at line 55 of file DynamicContainer.h.

◆ size()

template<class TYPE, class CONTAINER_TYPE = std::vector<TYPE>>
const size_t & AmpGen::DynamicContainer< TYPE, CONTAINER_TYPE >::size ( ) const
inline

Definition at line 52 of file DynamicContainer.h.


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