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

A class implementing a templatized version of the meta-data. More...

#include <MetaData.h>

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

Public Member Functions

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

Public Attributes

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::MetaData< T >

A class implementing a templatized version of the meta-data.

Definition at line 26 of file MetaData.h.

Constructor & Destructor Documentation

◆ MetaData() [1/2]

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

standard default constructor

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

Definition at line 87 of file MetaData.h.

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

◆ MetaData() [2/2]

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

standard constructor

Guarantee
strong
Failures
out of memory II

Definition at line 96 of file MetaData.h.

99 {
100 RCU_NEW_INVARIANT (this);
101 }
A class implementing a templatized version of the meta-data.
Definition MetaData.h:27
T value
the value contained
Definition MetaData.h:64

Member Function Documentation

◆ ClassDef() [1/2]

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

◆ ClassDef() [2/2]

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

◆ testInvariant()

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

test the invariant of this object

Guarantee
no-fail

Definition at line 80 of file MetaData.h.

82 {
83 }

◆ 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>
T SH::MetaData< T >::value

the value contained

Definition at line 64 of file MetaData.h.


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