ATLAS Offline Software
|
Implementation of IAuxTypeVector
holding a vector instance.
More...
#include <AuxTypeVector.h>
Public Types | |
using | Base = HOLDER |
using | vector_type = typename Base::vector_type |
using | element_type = typename Base::element_type |
using | vector_value_type = typename Base::vector_value_type |
Public Member Functions | |
AuxTypeVectorT (auxid_t auxid, size_t size, size_t capacity, bool isLinked) | |
Constructor. More... | |
AuxTypeVectorT (const AuxTypeVectorT &other) | |
Copy constructor. More... | |
AuxTypeVectorT (AuxTypeVectorT &&other) | |
Move constructor. More... | |
AuxTypeVectorT & | operator= (const AuxTypeVectorT &other) |
Assignment. More... | |
AuxTypeVectorT & | operator= (AuxTypeVectorT &&other) |
Move assignment. More... | |
virtual std::unique_ptr< IAuxTypeVector > | clone () const override |
Make a copy of this vector. More... | |
Private Attributes | |
vector_type | m_vec |
The contained vector. More... | |
Implementation of IAuxTypeVector
holding a vector instance.
This is a derived class of AuxTypeVectorHolder
that holds the vector instance as a member variable (and thus manages memory internally). It is templated on the base class, so that we can also use this for classes which derive from AuxTypeVectorHolder.
Definition at line 301 of file AuxTypeVector.h.
using SG::AuxTypeVectorT< HOLDER >::Base = HOLDER |
Definition at line 305 of file AuxTypeVector.h.
using SG::AuxTypeVectorT< HOLDER >::element_type = typename Base::element_type |
Definition at line 307 of file AuxTypeVector.h.
using SG::AuxTypeVectorT< HOLDER >::vector_type = typename Base::vector_type |
Definition at line 306 of file AuxTypeVector.h.
using SG::AuxTypeVectorT< HOLDER >::vector_value_type = typename Base::vector_value_type |
Definition at line 308 of file AuxTypeVector.h.
SG::AuxTypeVectorT< HOLDER >::AuxTypeVectorT | ( | auxid_t | auxid, |
size_t | size, | ||
size_t | capacity, | ||
bool | isLinked | ||
) |
Constructor.
Makes a new vector.
auxid | The auxid of the variable this vector represents. |
size | Initial size of the new vector. |
capacity | Initial capacity of the new vector. |
isLinked | True if this variable is linked from another one. |
SG::AuxTypeVectorT< HOLDER >::AuxTypeVectorT | ( | const AuxTypeVectorT< HOLDER > & | other | ) |
Copy constructor.
SG::AuxTypeVectorT< HOLDER >::AuxTypeVectorT | ( | AuxTypeVectorT< HOLDER > && | other | ) |
Move constructor.
|
overridevirtual |
Make a copy of this vector.
AuxTypeVectorT& SG::AuxTypeVectorT< HOLDER >::operator= | ( | AuxTypeVectorT< HOLDER > && | other | ) |
Move assignment.
AuxTypeVectorT& SG::AuxTypeVectorT< HOLDER >::operator= | ( | const AuxTypeVectorT< HOLDER > & | other | ) |
Assignment.
|
private |
The contained vector.
Definition at line 355 of file AuxTypeVector.h.