ATLAS Offline Software
Loading...
Searching...
No Matches
SH::MetaVector< T > Class Template Reference

This class defines a templatized version of the meta-data in vector form. More...

#include <MetaVector.h>

Inheritance diagram for SH::MetaVector< T >:
Collaboration diagram for SH::MetaVector< T >:

Public Member Functions

void testInvariant () const
 test the invariant of this object
 MetaVector ()
 standard default constructor
 MetaVector (const std::string &name, const std::vector< T > &set_value)
 standard constructor
 ClassDef (MetaVector, 1)

Public Attributes

std::vector< T > value
 the value contained

Protected Member Functions

 ClassDef (Meta, 1)

(Note that these are not member symbols.)

std::string dbg (const Meta &obj, unsigned verbosity=0)
 the debugging info of this object

Detailed Description

template<class T>
class SH::MetaVector< T >

This class defines a templatized version of the meta-data in vector form.

Definition at line 27 of file MetaVector.h.

Constructor & Destructor Documentation

◆ MetaVector() [1/2]

template<class T>
SH::MetaVector< T >::MetaVector ( )

standard default constructor

Guarantee
strong
Failures
out of memory I
Rationale
needed for root persistification

Definition at line 88 of file MetaVector.h.

90 : Meta ("")
91 {
92 RCU_NEW_INVARIANT (this);
93 }
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:233
Meta(const std::string &name)
standard constructor
Definition Meta.cxx:51

◆ MetaVector() [2/2]

template<class T>
SH::MetaVector< T >::MetaVector ( const std::string & name,
const std::vector< T > & set_value )

standard constructor

Guarantee
strong
Failures
out of memory II

Definition at line 97 of file MetaVector.h.

100 {
101 RCU_NEW_INVARIANT (this);
102 }
This class defines a templatized version of the meta-data in vector form.
Definition MetaVector.h:28
std::vector< T > value
the value contained
Definition MetaVector.h:65

Member Function Documentation

◆ ClassDef() [1/2]

SH::Meta::ClassDef ( Meta ,
1  )
protectedinherited

◆ ClassDef() [2/2]

template<class T>
SH::MetaVector< T >::ClassDef ( MetaVector< T > ,
1  )

◆ testInvariant()

template<class T>
void SH::MetaVector< T >::testInvariant ( ) const

test the invariant of this object

Guarantee
no-fail

Definition at line 81 of file MetaVector.h.

83 {
84 }

◆ dbg()

std::string dbg ( const Meta & obj,
unsigned verbosity = 0 )
related

the debugging info of this object

Returns
a string representation of the object content
Parameters
objthe object to be presented
verbositythe level of verbosity (higher number -> more information)
Guarantee
strong
Failures
out of memory II

Definition at line 28 of file Meta.cxx.

29 {
30 return "meta-object";
31 }

Member Data Documentation

◆ value

template<class T>
std::vector<T> SH::MetaVector< T >::value

the value contained

Definition at line 65 of file MetaVector.h.


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