|
ATLAS Offline Software
|
Go to the documentation of this file.
30 m_clear(), m_dict( 0 ) {
81 TClass*
cls = gROOT->GetClass( ti );
83 cls = gROOT->GetClass( System::typeinfoName( ti ).c_str() );
88 <<
"Can't find class for typeinfo " << ti.name();
103 if( ti ==
typeid(
bool ) ) {
105 }
else if ( ti ==
typeid(
char ) ) {
107 }
else if ( ti ==
typeid(
short ) ) {
109 }
else if ( ti ==
typeid(
unsigned short ) ) {
110 return new unsigned short;
111 }
else if ( ti ==
typeid(
int ) ) {
113 }
else if ( ti ==
typeid(
unsigned int ) ) {
114 return new unsigned int;
115 }
else if ( ti ==
typeid(
long ) ) {
117 }
else if ( ti ==
typeid(
unsigned long ) ) {
118 return new unsigned long;
119 }
else if ( ti ==
typeid(
unsigned long long ) ) {
120 return new unsigned long long;
121 }
else if ( ti ==
typeid(
float ) ) {
123 }
else if ( ti ==
typeid(
double ) ) {
128 <<
"Type '" << ti.name() <<
"' is not a known primitive";
142 if( ti ==
typeid(
bool ) ) {
143 delete reinterpret_cast< bool*
>(
ptr );
144 }
else if ( ti ==
typeid(
char ) ) {
145 delete reinterpret_cast< char*
>(
ptr );
146 }
else if ( ti ==
typeid(
short ) ) {
147 delete reinterpret_cast< short*
>(
ptr );
148 }
else if ( ti ==
typeid(
unsigned short ) ) {
149 delete reinterpret_cast< unsigned short*
>(
ptr );
150 }
else if ( ti ==
typeid(
int ) ) {
151 delete reinterpret_cast< int*
>(
ptr );
152 }
else if ( ti ==
typeid(
unsigned int ) ) {
153 delete reinterpret_cast< unsigned int*
>(
ptr );
154 }
else if ( ti ==
typeid(
long ) ) {
155 delete reinterpret_cast< long*
>(
ptr );
156 }
else if ( ti ==
typeid(
unsigned long ) ) {
157 delete reinterpret_cast< unsigned long*
>(
ptr );
158 }
else if ( ti ==
typeid(
unsigned long long ) ) {
159 delete reinterpret_cast< unsigned long long*
>(
ptr );
160 }
else if ( ti ==
typeid(
float ) ) {
161 delete reinterpret_cast< float*
>(
ptr );
162 }
else if ( ti ==
typeid(
double ) ) {
163 delete reinterpret_cast< double*
>(
ptr );
166 <<
"Couldn't delete type: " << ti.name() <<
"; There is a mistake "
void * m_object
The owned object.
::TClass * m_dict
Dictionary for class types.
@ CLEAR
Clear the variable by calling clear() on it.
FakeProxy(void *object, const std::type_info &ti)
Constructor taking ownership of an object.
static void deletePrimitive(void *ptr, const std::type_info &ti)
Delete a primitive.
Block filler tool for noisy FEB information.
::TClass * getClass(const std::type_info &ti)
Access the dictionary of a specific object.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
Helpers for checking error return status codes and reporting errors.
static void * newPrimitive(const std::type_info &ti)
Create a new instance of a primitive.
~FakeProxy()
Destructor deleting the encapsulated object.
void clear()
Clear the contents of this variable.
const std::type_info & m_type
The type of the owned object.
setBGCode setTAP setLVL2ErrorBits bool
::TMethodCall m_clear
Method calling clear on the object.
ClearType m_clearType
The variable clearing type for this object.