ATLAS Offline Software
Public Member Functions | List of all members
SG::AuxElementComplete< T > Class Template Reference

Wrapper to automatically create a private store for an element. More...

#include <AuxElementComplete.h>

Inheritance diagram for SG::AuxElementComplete< T >:
Collaboration diagram for SG::AuxElementComplete< T >:

Public Member Functions

 AuxElementComplete ()
 Default constructor. More...
 
template<class U1 >
 AuxElementComplete (const U1 &u1)
 Generic constructor. More...
 
 AuxElementComplete (const AuxElementComplete &other)
 Copy constructor. More...
 
AuxElementCompleteoperator= (const AuxElementComplete &other)=default
 

Detailed Description

template<class T>
class SG::AuxElementComplete< T >

Wrapper to automatically create a private store for an element.

A class deriving from SG::AuxElement can be given a private store by calling makePrivateStore; after that, it can have auxiliary data attached to it. Using this wrapper makes a class that will automatically create a private store when it is constructed.

class MyClass : public SG::AuxElement { ... };
typedef SG::AuxElementComplete<MyClass> MyClassComplete;
MyClassComplete obj; // obj gets a private store.
obj.auxdata<int> ("mydata") = 1;
MyClassComplete obj2 (obj); // aux data gets copied.

Definition at line 44 of file AuxElementComplete.h.

Constructor & Destructor Documentation

◆ AuxElementComplete() [1/3]

template<class T >
SG::AuxElementComplete< T >::AuxElementComplete ( )

Default constructor.

A private store is created for this object.

◆ AuxElementComplete() [2/3]

template<class T >
template<class U1 >
SG::AuxElementComplete< T >::AuxElementComplete ( const U1 &  u1)

Generic constructor.

Parameters
u1Constructor argument.

A private store is created for this object.

◆ AuxElementComplete() [3/3]

template<class T >
SG::AuxElementComplete< T >::AuxElementComplete ( const AuxElementComplete< T > &  other)

Copy constructor.

Parameters
otherThe object being copied.

A private store is created for this object.

Member Function Documentation

◆ operator=()

template<class T >
AuxElementComplete& SG::AuxElementComplete< T >::operator= ( const AuxElementComplete< T > &  other)
default

The documentation for this class was generated from the following file:
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
ReadCellNoiseFromCoolCompare.obj2
obj2
Definition: ReadCellNoiseFromCoolCompare.py:303
SG::AuxElementComplete
Wrapper to automatically create a private store for an element.
Definition: AuxElementComplete.h:46
python.PyAthena.obj
obj
Definition: PyAthena.py:132