![]() |
ATLAS Offline Software
|
Hold information on how to clear one variable. More...
Public Member Functions | |
| Clearinfo () | |
| Constructor. More... | |
| StatusCode | init (TBranch *br, char *defval, size_t defsize) |
| Initialize for clearing a variable. More... | |
| void | clear () |
| Clear the variable. More... | |
| void | free () |
| Free allocated memory. More... | |
Private Types | |
| enum | Cleartype { INVALID, ZERO, COLLECTION, CLEAR, RESET, COPY } |
| The method to use to clear this variable. More... | |
Private Attributes | |
| enum D3PD::Root::Clearinfo::Cleartype | m_type |
| TLeaf * | m_leaf |
| The leaf for this variable. Used for ZERO. More... | |
| TBranchElement * | m_bre |
| The branch element for this variable, Used for COLLECTION, CLEAR, RESET. More... | |
| TVirtualCollectionProxy * | m_proxy |
| The collection proxy for this variable. Used for COLLECTION. More... | |
| TMethodCall | m_meth |
The clear method for this variable. Used for CLEAR. More... | |
| char * | m_default |
| Default value for COPY. We own this. More... | |
| size_t | m_defsize |
| Default value size for COPY. More... | |
Hold information on how to clear one variable.
Definition at line 135 of file RootD3PD.cxx.
|
private |
The method to use to clear this variable.
| Enumerator | |
|---|---|
| INVALID | Not set yet. |
| ZERO | Clear variable by filling with zeros. |
| COLLECTION | Clear variable via collection proxy. |
| CLEAR | Clear variable by calling |
| RESET | Clear variable by deleting and recreating. |
| COPY | Copy from a default (only for basic types). |
Definition at line 172 of file RootD3PD.cxx.
| D3PD::Root::Clearinfo::Clearinfo | ( | ) |
Constructor.
Default constructor.
You must call init() before this object is usable.
Definition at line 212 of file RootD3PD.cxx.
| void D3PD::Root::Clearinfo::clear | ( | ) |
| void D3PD::Root::Clearinfo::free | ( | ) |
Free allocated memory.
(Not done in the destructor to make it easier to hold these in a vector.)
Definition at line 352 of file RootD3PD.cxx.
| StatusCode D3PD::Root::Clearinfo::init | ( | TBranch * | br, |
| char * | defval, | ||
| size_t | defsize | ||
| ) |
Initialize for clearing a variable.
| br | The branch containing the 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. We take ownership of this. |
| defsize | Size of the object pointed at by defval. |
Definition at line 233 of file RootD3PD.cxx.
|
private |
The branch element for this variable, Used for COLLECTION, CLEAR, RESET.
Definition at line 197 of file RootD3PD.cxx.
|
private |
Default value for COPY. We own this.
Definition at line 206 of file RootD3PD.cxx.
|
private |
Default value size for COPY.
Definition at line 209 of file RootD3PD.cxx.
|
private |
The leaf for this variable. Used for ZERO.
Definition at line 194 of file RootD3PD.cxx.
|
private |
The clear method for this variable. Used for CLEAR.
Definition at line 203 of file RootD3PD.cxx.
|
private |
The collection proxy for this variable. Used for COLLECTION.
Definition at line 200 of file RootD3PD.cxx.
|
private |
1.8.18