Go to the source code of this file.
|
| DD4hep |
| Namespace for the AIDA detector description toolkit.
|
|
#define DD4HEP_INSTANTIATE_HANDLE |
( |
|
X | ) |
|
Value:namespace DD4hep { \
if (m_element && dynamic_cast<X*>(m_element) == 0) { \
bad_assignment(typeid(*m_element), typeid(X)); \
} \
}} \
void verifyObject() const
Verify the object type after a (re-)assignment.
void increment_object_validations()
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Definition at line 62 of file Handle.inl.
#define DD4HEP_INSTANTIATE_HANDLE_NAMED |
( |
|
X | ) |
|
Value:namespace DD4hep { \
{ return this->m_element ? this->m_element->name.c_str() : ""; } \
template <> void \
Handle<X>::assign(X* p, const std::string& n, const std::string& t){\
this->m_element = p; \
p->name = n; \
p->type = t; \
} \
if (m_element && dynamic_cast<X*>((NamedObject*)m_element) == 0) {\
bad_assignment(typeid(*m_element), typeid(X)); \
} \
}} \
const char * name() const
Access the object name (or "" if not supported by the object)
void verifyObject() const
Verify the object type after a (re-)assignment.
void increment_object_validations()
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Definition at line 72 of file Handle.inl.
#define DD4HEP_INSTANTIATE_HANDLE_UNNAMED |
( |
|
X | ) |
|
Value:namespace DD4hep { \
template <> void \
Handle<X>::assign(X* n, const std::string&, const std::string&) \
{ this->m_element = n;} \
const char * name() const
Access the object name (or "" if not supported by the object)
#define DD4HEP_INSTANTIATE_HANDLE(X)
Definition at line 90 of file Handle.inl.