Hold the persistent representation for a ViewVector.
More...
#include <ViewVectorBase.h>
Hold the persistent representation for a ViewVector.
Base class for ViewVector
; not to be used directly.
Definition at line 37 of file ViewVectorBase.h.
◆ ~ViewVectorBase()
virtual SG::ViewVectorBase::~ViewVectorBase |
( |
| ) |
|
|
virtualdefault |
◆ clearPersistent()
void SG::ViewVectorBase::clearPersistent |
( |
| ) |
|
Clear the persistent data.
◆ doToPersistent()
template<class DV >
void SG::ViewVectorBase::doToPersistent |
( |
DV & |
v | ) |
|
|
protected |
Convert to persistent form.
- Parameters
-
This will abort if called for a class with no CLID.
◆ doToPersistent1() [1/2]
template<class DV >
void SG::ViewVectorBase::doToPersistent1 |
( |
DV & |
, |
|
|
const std::false_type & |
|
|
) |
| |
|
protected |
Convert to persistent form.
- Parameters
-
Called for classes that do not have a CLID. This will simply abort.
◆ doToPersistent1() [2/2]
template<class DV >
void SG::ViewVectorBase::doToPersistent1 |
( |
DV & |
v, |
|
|
const std::true_type & |
|
|
) |
| |
|
protected |
Convert to persistent form.
- Parameters
-
Called for classes that have a CLID.
◆ doToTransient()
template<class DV >
void SG::ViewVectorBase::doToTransient |
( |
DV & |
v | ) |
|
|
inlineprotected |
Convert to persistent form.
- Parameters
-
Dispatch based on whether the class has a CLID.
Definition at line 157 of file ViewVectorBase.h.
159 #ifdef XAOD_STANDALONE
◆ doToTransient1() [1/2]
template<class DV >
void SG::ViewVectorBase::doToTransient1 |
( |
DV & |
, |
|
|
const std::false_type & |
|
|
) |
| |
|
inlineprotected |
Convert to transient form.
- Parameters
-
Called for the case that DV doesn't have a CLID. A no-op.
This is also what will get called for the case of an older version of a schema-evolved vector.
Definition at line 147 of file ViewVectorBase.h.
◆ doToTransient1() [2/2]
template<class DV >
void SG::ViewVectorBase::doToTransient1 |
( |
DV & |
v, |
|
|
const std::true_type & |
|
|
) |
| |
|
inlineprotected |
◆ doToTransient2() [1/2]
template<class DV >
void SG::ViewVectorBase::doToTransient2 |
( |
DV & |
, |
|
|
const std::false_type & |
|
|
) |
| |
|
inlineprotected |
◆ doToTransient2() [2/2]
template<class DV >
void SG::ViewVectorBase::doToTransient2 |
( |
DV & |
v, |
|
|
const std::true_type & |
|
|
) |
| |
|
protected |
Convert to transient form.
- Parameters
-
Called for classes that have a CLID if DV is not a ConstDataVector.
◆ setClearOnPersistent()
void SG::ViewVectorBase::setClearOnPersistent |
( |
| ) |
|
Set a flag to declare that the vector should be cleared on the next call to toPersistent().
This would be used in the case where we make a copy of the object being written.
◆ toPersistent()
virtual void SG::ViewVectorBase::toPersistent |
( |
| ) |
|
|
pure virtual |
◆ toTransient()
virtual void SG::ViewVectorBase::toTransient |
( |
| ) |
|
|
pure virtual |
◆ ::ViewVectorBaseTest
friend class ::ViewVectorBaseTest |
|
friend |
◆ m_clearOnPersistent
bool SG::ViewVectorBase::m_clearOnPersistent = false |
|
private |
If true, the vector should be cleared when doPersistent is called.
Definition at line 176 of file ViewVectorBase.h.
◆ m_persIndex
std::vector<unsigned int> SG::ViewVectorBase::m_persIndex |
|
private |
◆ m_persKey
std::vector<sgkey_t> SG::ViewVectorBase::m_persKey |
|
private |
The documentation for this class was generated from the following file: