All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
alternative::ParamHolder Class Reference

#include <ParamHolder.h>

Public Member Functions

 ~ParamHolder ()
 
void Register (alternative::TruthHit &&hit)
 
const std::vector
< alternative::TruthHit > & 
TruthHitArray () const
 
void Clear ()
 

Static Public Member Functions

static ParamHolderget ()
 
static void destroy ()
 

Private Member Functions

 ParamHolder ()
 

Private Attributes

std::vector
< alternative::TruthHit
_hit_v
 

Static Private Attributes

static ParamHolder_me = nullptr
 

Detailed Description

Definition at line 17 of file ParamHolder.h.

Constructor & Destructor Documentation

alternative::ParamHolder::ParamHolder ( )
inlineprivate

Definition at line 19 of file ParamHolder.h.

19 {}
alternative::ParamHolder::~ParamHolder ( )
inline

Definition at line 21 of file ParamHolder.h.

21 {}

Member Function Documentation

void alternative::ParamHolder::Clear ( )

Definition at line 16 of file ParamHolder.cxx.

17  { _hit_v.clear(); }
std::vector< alternative::TruthHit > _hit_v
Definition: ParamHolder.h:39
static void alternative::ParamHolder::destroy ( )
inlinestatic

Definition at line 28 of file ParamHolder.h.

29  { if(_me) delete _me; }
static ParamHolder * _me
Definition: ParamHolder.h:38
static ParamHolder& alternative::ParamHolder::get ( )
inlinestatic

Definition at line 23 of file ParamHolder.h.

24  { if(!_me) _me = new ParamHolder;
25  return *_me;
26  }
static ParamHolder * _me
Definition: ParamHolder.h:38
void alternative::ParamHolder::Register ( alternative::TruthHit &&  hit)

Definition at line 7 of file ParamHolder.cxx.

8  {
9  _hit_v.emplace_back(std::move(hit));
10  _hit_v.back().signal_id = _hit_v.size() - 1;
11  }
std::vector< alternative::TruthHit > _hit_v
Definition: ParamHolder.h:39
const std::vector< alternative::TruthHit > & alternative::ParamHolder::TruthHitArray ( ) const

Definition at line 13 of file ParamHolder.cxx.

14  { return _hit_v; }
std::vector< alternative::TruthHit > _hit_v
Definition: ParamHolder.h:39

Member Data Documentation

std::vector<alternative::TruthHit> alternative::ParamHolder::_hit_v
private

Definition at line 39 of file ParamHolder.h.

ParamHolder * alternative::ParamHolder::_me = nullptr
staticprivate

Definition at line 38 of file ParamHolder.h.


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