![]() |
ATLAS Offline Software
|
Common implementation of IAddVariable.
More...
#include <AddVariable.h>
Inherits D3PD::IAddVariable.
Inherited by D3PD::BlockFillerToolImpl, D3PD::ContainedAssociationFillerTool, D3PD::ContainedMultiAssociationFillerTool, D3PD::IndexAssociationFillerTool, D3PD::IndexMultiAssociationFillerTool, D3PD::MultiAssociationToolImpl, D3PD::ObjFillerTool, D3PD::SingleAssociationToolImpl, and D3PD::VoidObjFillerTool.
Public Member Functions | |
| AddVariable (const std::string &prefix, const std::string &blockName=s_emptyString) | |
| Constructor. More... | |
| AddVariable (const std::string &prefix, const std::string &blockName, const std::string &suffix) | |
| Constructor. More... | |
| StatusCode | configureD3PD (IAddVariable *tree) |
| Configure the parent tree. More... | |
| virtual StatusCode | addVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0) |
| Add a variable to the tuple. More... | |
| virtual StatusCode | addDimensionedVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &dim, const std::string &docstring="", const void *defval=0) |
| Add a variable to the tuple. More... | |
| template<class T > | |
| StatusCode | addVariable (const std::string &name, T *&ptr, const std::string &docstring="") |
Make the template implementation from IAddVariable visible. More... | |
| template<class T , class U > | |
| StatusCode | addVariable (const std::string &name, T *&ptr, const std::string &docstring, const U &defval) |
Make the template implementation from IAddVariable visible. More... | |
| virtual StatusCode | addVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)=0 |
Make the template implementation from IAddVariable visible. More... | |
| template<class T > | |
| StatusCode | addDimensionedVariable (const std::string &name, T *&ptr, const std::string &dim, const std::string &docstring="") |
| Add a variable to the tuple. More... | |
| template<class T , class U > | |
| StatusCode | addDimensionedVariable (const std::string &name, T *&ptr, const std::string &dim, const std::string &docstring, const U &defval) |
| Add a variable to the tuple. More... | |
| virtual StatusCode | addDimensionedVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &dim, const std::string &docstring="", const void *defval=0)=0 |
| Add a variable to the tuple. More... | |
| template<class T > | |
| StatusCode | addVariable (const std::string &name, T *&ptr, const std::string &docstring="") |
| Add a variable to the tuple. More... | |
| template<class T , class U > | |
| StatusCode | addVariable (const std::string &name, T *&ptr, const std::string &docstring, const U &defval) |
| Add a variable to the tuple. More... | |
| template<class T > | |
| StatusCode | addDimensionedVariable (const std::string &name, T *&ptr, const std::string &dim, const std::string &docstring="") |
| Add a variable to the tuple. More... | |
| template<class T , class U > | |
| StatusCode | addDimensionedVariable (const std::string &name, T *&ptr, const std::string &dim, const std::string &docstring, const U &defval) |
| Add a variable to the tuple. More... | |
Protected Attributes | |
| ObjectMetadata | m_metadata |
| Metadata about the variables created by this object. More... | |
Private Attributes | |
| const std::string & | m_prefix |
| Reference to the variable prefix. More... | |
| const std::string & | m_suffix |
| Reference to the variable suffix. More... | |
| IAddVariable * | m_tree |
| Reference to the block name. More... | |
Static Private Attributes | |
| static const std::string | s_emptyString |
| Used to provide a default value for blockName. More... | |
Common implementation of IAddVariable.
This implements the IAddVariable interface for the common case where we just need to add a prefix/suffix to the variable name and forward to another IAddVariable.
References to the prefix/suffix and block name are passed to the constructor (these will typically be tool properties) and the parent IAddVariable is passed to configureD3PD.
Definition at line 36 of file AddVariable.h.
| D3PD::AddVariable::AddVariable | ( | const std::string & | prefix, |
| const std::string & | blockName = s_emptyString |
||
| ) |
Constructor.
| prefix | Reference to the variable prefix. |
| blockName | Reference to the block name for this tool. |
Definition at line 29 of file AddVariable.cxx.
| D3PD::AddVariable::AddVariable | ( | const std::string & | prefix, |
| const std::string & | blockName, | ||
| const std::string & | suffix | ||
| ) |
Constructor.
| prefix | Reference to the variable prefix. |
| blockName | Reference to the block name for this tool. |
| suffix | Reference to the variable suffix. |
| prefix | Reference to the variable prefix. |
| blockName | Reference to the block name for this tool. |
Definition at line 45 of file AddVariable.cxx.
|
virtual |
Add a variable to the tuple.
| name | The name of the variable. |
| type | The type of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Null for no default (generally means to fill with zeros). Of the type given by ti. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
Implements D3PD::IAddVariable.
Definition at line 123 of file AddVariable.cxx.
| virtual StatusCode D3PD::IAddVariable::addDimensionedVariable |
Add a variable to the tuple.
| name | The name of the variable. |
| type | The type of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Null for no default (generally means to fill with zeros). Of the type given by ti. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
| StatusCode D3PD::IAddVariable::addDimensionedVariable | ( | class T | , |
| class U | |||
| ) |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
|
inherited |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
| StatusCode D3PD::IAddVariable::addDimensionedVariable | ( | class T | ) |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
If called from the constructor, the only effect is to clear ptr.
|
inherited |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| dim | Dimension for the variable. (Presently unimplemented!) |
| docstring | Documentation string for this variable. |
If called from the constructor, the only effect is to clear ptr.
|
virtual |
Add a variable to the tuple.
| name | The name of the variable. |
| type | The type of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Null for no default (generally means to fill with zeros). Of the type given by ti. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
Implements D3PD::IAddVariable.
Definition at line 85 of file AddVariable.cxx.
| virtual StatusCode D3PD::IAddVariable::addVariable |
Make the template implementation from IAddVariable visible.
| StatusCode D3PD::IAddVariable::addVariable | ( | class T | , |
| class U | |||
| ) |
Make the template implementation from IAddVariable visible.
|
inherited |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| docstring | Documentation string for this variable. |
| defval | Pointer to the default value to use for this variable. Only works for basic types. |
If called from the constructor, the only effect is to clear ptr.
| StatusCode D3PD::IAddVariable::addVariable | ( | class T | ) |
Make the template implementation from IAddVariable visible.
|
inherited |
Add a variable to the tuple.
| name | The name of the variable. |
| ptr | Pointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill(). |
| docstring | Documentation string for this variable. |
If called from the constructor, the only effect is to clear ptr.
| StatusCode D3PD::AddVariable::configureD3PD | ( | IAddVariable * | tree | ) |
Configure the parent tree.
| tree | The parent IAddVariable instance. |
Definition at line 61 of file AddVariable.cxx.
|
protected |
Metadata about the variables created by this object.
Definition at line 129 of file AddVariable.h.
|
private |
Reference to the variable prefix.
Definition at line 134 of file AddVariable.h.
|
private |
Reference to the variable suffix.
Definition at line 137 of file AddVariable.h.
|
private |
Reference to the block name.
The parent IAddVariable instance.
Definition at line 143 of file AddVariable.h.
|
staticprivate |
Used to provide a default value for blockName.
Definition at line 41 of file AddVariable.h.
1.8.18