Note: QEventAuxData takes the ownership of the QObject e.g. it will take care of destroying them when its destructor is called.
Public Member Functions | |
QEventAuxData () | |
default constructor | |
virtual | ~QEventAuxData () |
destructor | |
void | SetTObject (const std::string &key, TObject *obj, const char *option="") |
Add a QObject to QEventAuxData. | |
void | SetQObject (const std::string &key, QObject *obj, const char *option="") |
Add a QObject to QEventAuxData. | |
void | SetBool (const std::string &key, bool obj, const char *option="") |
Add an bool to QEventAuxData. | |
void | SetFloat (const std::string &key, float obj, const char *option="") |
Add an float to QEventAuxData. | |
void | SetInt (const std::string &key, int obj, const char *option="") |
Add an int to QEventAuxData. | |
void | SetDouble (const std::string &key, double obj, const char *option="") |
Add a double to QEventAuxData. | |
void | SetString (const std::string &key, const std::string &obj, const char *option="") |
Add a string to QEventAuxData. | |
const TObject * | GetTObject (const std::string &key) const |
Get a TObject. | |
const QObject * | GetQObject (const std::string &key) const |
Get a QObject. | |
int | GetInt (const std::string &key) const |
Get an int. | |
bool | GetBool (const std::string &key) const |
Get an bool. | |
float | GetFloat (const std::string &key) const |
Get an float. | |
double | GetDouble (const std::string &key) const |
Get a double. | |
std::string | GetString (const std::string &key) const |
Get a string. | |
const std::map< std::string, Datum< TObject * > > & | GetTObjectMap () const |
const std::map< std::string, Datum< QObject * > > & | GetQObjectMap () const |
const std::map< std::string, Datum< bool > > & | GetBoolMap () const |
const std::map< std::string, Datum< float > > & | GetFloatMap () const |
const std::map< std::string, Datum< double > > & | GetDoubleMap () const |
const std::map< std::string, Datum< int > > & | GetIntMap () const |
const std::map< std::string, Datum< std::string > > & | GetStringMap () const |
void | Clear () |
Private Attributes | |
std::map< std::string, Datum< TObject * > > | fTObjectMap |
TObject map with string key. | |
std::map< std::string, Datum< TObject * > >::iterator | fTObjIter |
std::map< std::string, Datum< QObject * > > | fQObjectMap |
QObject map with string key. | |
std::map< std::string, Datum< QObject * > >::iterator | fQObjIter |
std::map< std::string, Datum< bool > > | fBoolMap |
double map with bool key | |
std::map< std::string, Datum< bool > >::iterator | fBIter |
std::map< std::string, Datum< float > > | fFloatMap |
double map with float key | |
std::map< std::string, Datum< float > >::iterator | fFIter |
std::map< std::string, Datum< double > > | fDoubleMap |
double map with string key | |
std::map< std::string, Datum< double > >::iterator | fDIter |
std::map< std::string, Datum< int > > | fIntMap |
int map with string key | |
std::map< std::string, Datum< int > >::iterator | fIIter |
std::map< std::string, Datum< std::string > > | fStringMap |
string map with string key | |
std::map< std::string, Datum< std::string > >::iterator | fSIter |
Classes | |
class | Datum |
void QEventAuxData::SetTObject | ( | const std::string & | key, | |
TObject * | obj, | |||
const char * | option = "" | |||
) | [inline] |
Add a QObject to QEventAuxData.
key | object identificator | |
obj | previously "new" instantiated QObject |
void QEventAuxData::SetQObject | ( | const std::string & | key, | |
QObject * | obj, | |||
const char * | option = "" | |||
) | [inline] |
Add a QObject to QEventAuxData.
key | object identificator | |
obj | previously "new" instantiated QObject |
void QEventAuxData::SetBool | ( | const std::string & | key, | |
bool | obj, | |||
const char * | option = "" | |||
) | [inline] |
void QEventAuxData::SetFloat | ( | const std::string & | key, | |
float | obj, | |||
const char * | option = "" | |||
) | [inline] |
Add an float to QEventAuxData.
key | float identificator | |
obj | float to be added |
void QEventAuxData::SetInt | ( | const std::string & | key, | |
int | obj, | |||
const char * | option = "" | |||
) | [inline] |
void QEventAuxData::SetDouble | ( | const std::string & | key, | |
double | obj, | |||
const char * | option = "" | |||
) | [inline] |
Add a double to QEventAuxData.
key | double identificator | |
obj | double to be added |
void QEventAuxData::SetString | ( | const std::string & | key, | |
const std::string & | obj, | |||
const char * | option = "" | |||
) | [inline] |
Add a string to QEventAuxData.
key | string identificator | |
obj | string to be added |
const TObject* QEventAuxData::GetTObject | ( | const std::string & | key | ) | const [inline] |
Get a TObject.
key | TObject identificator |
const QObject* QEventAuxData::GetQObject | ( | const std::string & | key | ) | const [inline] |
int QEventAuxData::GetInt | ( | const std::string & | key | ) | const [inline] |
Get an int.
key | int identificator |
bool QEventAuxData::GetBool | ( | const std::string & | key | ) | const [inline] |
Get an bool.
key | bool identificator |
float QEventAuxData::GetFloat | ( | const std::string & | key | ) | const [inline] |
Get an float.
key | float identificator |
double QEventAuxData::GetDouble | ( | const std::string & | key | ) | const [inline] |
Get a double.
key | double identificator |
std::string QEventAuxData::GetString | ( | const std::string & | key | ) | const [inline] |
Get a string.
key | string identificator |