Jpp
17.3.0-rc.2
the software that should make you happy
|
AAObject is a base class for I/O-classes that adds the possibility to add 'user' information which will also be stored in the ROOT file. More...
#include <AAObject.hh>
Public Member Functions | |
int | idx (const std::string &key) const |
Get index in user data of the item with given key. More... | |
bool | haveusr (const std::string &key) const |
Check availability of user data of the item with given key. More... | |
int | idxusr_checked (const std::string &key) const |
Get index in user data of the item with given key. More... | |
double | getusr (const std::string &key) const |
Get user data item with given key. More... | |
void | setusr (const std::string &key, double value) |
Set user data item with given key. More... | |
bool | delusr (const std::string &key) |
Remove (first) user data item with given key. More... | |
void | clearusr () |
Clear user data. More... | |
void | printusr (std::ostream &out=std::cout) |
Print user data (i.e. More... | |
AAObject () | |
Default constructor. More... | |
~AAObject () | |
Public Attributes | |
std::vector< double > | usr |
user data More... | |
std::vector< std::string > | usr_names |
user keys More... | |
TObject * | any |
Pointer to "any" user data. More... | |
AAObject is a base class for I/O-classes that adds the possibility to add 'user' information which will also be stored in the ROOT file.
Definition at line 18 of file AAObject.hh.
|
inline |
|
inline |
Definition at line 168 of file AAObject.hh.
|
inline |
Get index in user data of the item with given key.
key | key |
Definition at line 29 of file AAObject.hh.
|
inline |
Check availability of user data of the item with given key.
key | key |
Definition at line 42 of file AAObject.hh.
|
inline |
Get index in user data of the item with given key.
This method throws a run-time exception if no user data are available.
key | key |
Definition at line 54 of file AAObject.hh.
|
inline |
Get user data item with given key.
This method throws a run-time exception if no user data are available.
key | key |
Definition at line 72 of file AAObject.hh.
|
inline |
Set user data item with given key.
key | key |
value | value |
Definition at line 95 of file AAObject.hh.
|
inline |
Remove (first) user data item with given key.
key | key |
Definition at line 126 of file AAObject.hh.
|
inline |
|
inline |
Print user data (i.e.
list of all pairs of keys and values).
out | output stream |
Definition at line 150 of file AAObject.hh.
std::vector<double> AAObject::usr |
user data
Definition at line 20 of file AAObject.hh.
std::vector<std::string> AAObject::usr_names |
user keys
Definition at line 21 of file AAObject.hh.
TObject* AAObject::any |
Pointer to "any" user data.
Definition at line 171 of file AAObject.hh.