![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Concrete type dependent grammar definition. More...
#include <Grammar.h>
Public Types | |
| typedef TYPE | type_t |
Public Types inherited from dd4hep::BasicGrammar | |
| typedef unsigned long long int | key_type |
Public Member Functions | |
| virtual const std::type_info & | type () const override |
| PropertyGrammar overload: Access to the type information. More... | |
| virtual bool | equals (const std::type_info &other_type) const override |
| Access to the type information. More... | |
| virtual size_t | sizeOf () const override |
| Access the object size (sizeof operator) More... | |
| virtual void | destruct (void *pointer) const override |
| Opaque object destructor. More... | |
| template<typename... Args> | |
| void | construct (void *pointer, Args... args) const |
| Bind opaque address to object. More... | |
Public Member Functions inherited from dd4hep::BasicGrammar | |
| key_type | hash () const |
| Access the hash value for this grammar type. More... | |
| const std::string & | type_name () const |
| Access to the type information name. More... | |
| int | data_type () const |
| Access ROOT data type for fundamentals. More... | |
| TClass * | clazz () const |
| Access the ROOT class for complex objects. More... | |
| virtual void | setCast (const Cast *cast) const |
| Set cast structure. More... | |
| virtual const Cast & | cast () const |
| Access ABI object cast. More... | |
| virtual std::string | str (const void *ptr) const |
| Serialize an opaque value to a string. More... | |
| virtual bool | fromString (void *ptr, const std::string &value) const |
| Set value from serialized string. On successful data conversion TRUE is returned. More... | |
| virtual int | evaluate (void *ptr, const std::string &value) const |
| Evaluate string value if possible before calling boost::spirit. More... | |
Private Member Functions | |
| virtual | ~Grammar () |
| Default destructor. More... | |
| Grammar () | |
| Standard constructor. More... | |
Friends | |
| class | BasicGrammar |
Additional Inherited Members | |
Static Public Member Functions inherited from dd4hep::BasicGrammar | |
| template<typename TYPE > | |
| static const BasicGrammar & | instance () |
| Instance factory. More... | |
| static const BasicGrammar & | get (const std::type_info &info) |
| Access grammar by type info. More... | |
| static const BasicGrammar & | get (unsigned long long int hash_code) |
| Lookup existing grammar using the grammar's hash code/hash64(type-name) (used for reading objects) More... | |
| static void | invalidConversion (const std::type_info &from, const std::type_info &to) |
| Error callback on invalid conversion. More... | |
| static void | invalidConversion (const std::string &value, const std::type_info &to) |
| Error callback on invalid conversion. More... | |
Public Attributes inherited from dd4hep::BasicGrammar | |
| const std::string | name |
| Instance type name. More... | |
| const key_type | hash_value = 0 |
| Instance hash code. More... | |
| TClass * | root_class = 0 |
| Cached TClass reference for speed improvements. More... | |
| int | root_data_type = -1 |
| Cached TDataType information for fundamental types. More... | |
| bool | inited = false |
| Initialization flag. More... | |
| struct dd4hep::BasicGrammar::specialization_t | specialization |
Protected Member Functions inherited from dd4hep::BasicGrammar | |
| BasicGrammar (const std::string &typ) | |
| Default constructor. More... | |
| virtual | ~BasicGrammar () |
| Default destructor. More... | |
| void | initialize () const |
| Second step initialization after the virtual table is fixed. More... | |
| int | initialized_data_type () const |
| Access ROOT data type for fundamentals. More... | |
| TClass * | initialized_clazz () const |
| Access the ROOT class for complex objects. More... | |
Static Protected Member Functions inherited from dd4hep::BasicGrammar | |
| static void | pre_note (const std::type_info &info, const BasicGrammar &(*fcn)(), specialization_t specs) |
| Instance factory. More... | |
Concrete type dependent grammar definition.
| typedef TYPE dd4hep::Grammar< TYPE >::type_t |
|
privatevirtual |
|
private |
| void dd4hep::Grammar< TYPE >::construct | ( | void * | pointer, |
| Args... | args | ||
| ) | const |
|
overridevirtual |
Opaque object destructor.
Implements dd4hep::BasicGrammar.
|
overridevirtual |
Access to the type information.
Implements dd4hep::BasicGrammar.
|
overridevirtual |
Access the object size (sizeof operator)
Implements dd4hep::BasicGrammar.
|
overridevirtual |
PropertyGrammar overload: Access to the type information.
Base class overrides
Implements dd4hep::BasicGrammar.
|
friend |
1.8.18