![]() |
The Gaudi Framework
v36r6 (b1ee9983)
|
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/CArrayAsProperty.h>


Public Types | |
| using | StorageType = TYPE(&)[N] |
| Hosted type. More... | |
| using | ValueType = typename std::remove_reference< StorageType >::type |
| using | VerifierType = VERIFIER |
| using | HandlersType = HANDLERS |
Public Member Functions | |
| Property (std::string name, StorageType value, std::string doc="") | |
| the constructor with property name, value and documentation. More... | |
| PropertyBase & | declareReadHandler (std::function< void(PropertyBase &)> fun) override |
| set new callback for reading More... | |
| PropertyBase & | declareUpdateHandler (std::function< void(PropertyBase &)> fun) override |
| set new callback for update More... | |
| const std::function< void(PropertyBase &)> | readCallBack () const override |
| get a reference to the readCallBack More... | |
| const std::function< void(PropertyBase &)> | updateCallBack () const override |
| get a reference to the updateCallBack More... | |
| bool | useUpdateHandler () override |
| manual trigger for callback for update More... | |
| operator const ValueType & () const | |
| Automatic conversion to value (const reference). More... | |
| Property & | operator= (const ValueType &v) |
| Assignment from value. More... | |
| const VerifierType & | verifier () const |
| Copy constructor. More... | |
| VerifierType & | verifier () |
| Accessor to verifier. More... | |
| bool | assign (const PropertyBase &source) override |
| get the value from another property More... | |
| bool | load (PropertyBase &dest) const override |
| set value to another property More... | |
| StatusCode | fromString (const std::string &source) override |
| string -> value More... | |
| std::string | toString () const override |
| value -> string More... | |
| void | toStream (std::ostream &out) const override |
| value -> stream More... | |
| const ValueType & | value () const |
| Backward compatibility. More... | |
| ValueType & | value () |
| bool | setValue (const ValueType &v) |
| bool | set (const ValueType &v) |
| PropertyBase * | clone () const override |
| clones the current property More... | |
Helpers for easy use of string and vector properties. | |
They are instantiated only if they are implemented in the wrapped class. | |
| size_t | size () const |
| bool | empty () const |
Public Member Functions inherited from Gaudi::Details::PropertyBase | |
| const std::string | name () const |
| property name More... | |
| std::string | documentation () const |
| property documentation More... | |
| std::string | semantics () const |
| property semantics More... | |
| const std::type_info * | type_info () const |
| property type-info More... | |
| std::string | type () const |
| property type More... | |
| virtual bool | load (PropertyBase &dest) const =0 |
| export the property value to the destination More... | |
| virtual bool | assign (const PropertyBase &source)=0 |
| import the property value form the source More... | |
| virtual PropertyBase & | declareReadHandler (std::function< void(PropertyBase &)> fun)=0 |
| set new callback for reading More... | |
| virtual PropertyBase & | declareUpdateHandler (std::function< void(PropertyBase &)> fun)=0 |
| set new callback for update More... | |
| template<class HT > | |
| PropertyBase & | declareReadHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
| template<class HT > | |
| PropertyBase & | declareUpdateHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
| virtual | ~PropertyBase () |
| virtual destructor More... | |
| void | setName (std::string value) |
| set the new value for the property name More... | |
| void | setDocumentation (std::string value) |
| set the documentation string More... | |
| void | setSemantics (std::string value) |
| set the semantics string More... | |
| virtual std::ostream & | fillStream (std::ostream &) const |
| the printout of the property value More... | |
| void | setOwnerType (const std::type_info &ownerType) |
| set the type of the owner class (used for documentation) More... | |
| template<class OWNER > | |
| void | setOwnerType () |
| set the type of the owner class (used for documentation) More... | |
| const std::type_info * | ownerType () const |
| get the type of the owner class (used for documentation) More... | |
| std::string | ownerTypeName () const |
| get the string for the type of the owner class (used for documentation) More... | |
Private Attributes | |
| StorageType | m_value |
| Storage. More... | |
| VerifierType | m_verifier |
| HandlersType | m_handlers |
| template<class T > | |
| using | not_copying = std::enable_if<!is_this_type_v< T > > |
| template<class T > | |
| static constexpr bool | is_this_type_v = std::is_same_v<Property, typename std::remove_reference_t<T>> |
| helper typedefs for SFINAE More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Gaudi::Details::PropertyBase | |
| PropertyBase (const std::type_info &type, std::string name="", std::string doc="", std::string semantics="") | |
| constructor from the property name and the type More... | |
| PropertyBase (std::string name, const std::type_info &type) | |
| constructor from the property name and the type More... | |
| PropertyBase (const PropertyBase &)=default | |
| copy constructor More... | |
| PropertyBase & | operator= (const PropertyBase &)=default |
| assignment operator More... | |
Definition at line 20 of file CArrayAsProperty.h.
| using Gaudi::Property< TYPE[N], VERIFIER, HANDLERS >::HandlersType = HANDLERS |
Definition at line 27 of file CArrayAsProperty.h.
|
private |
Definition at line 39 of file CArrayAsProperty.h.
| using Gaudi::Property< TYPE[N], VERIFIER, HANDLERS >::StorageType = TYPE ( & )[N] |
Hosted type.
Definition at line 24 of file CArrayAsProperty.h.
| using Gaudi::Property< TYPE[N], VERIFIER, HANDLERS >::ValueType = typename std::remove_reference<StorageType>::type |
Definition at line 25 of file CArrayAsProperty.h.
| using Gaudi::Property< TYPE[N], VERIFIER, HANDLERS >::VerifierType = VERIFIER |
Definition at line 26 of file CArrayAsProperty.h.
|
inline |
the constructor with property name, value and documentation.
Definition at line 44 of file CArrayAsProperty.h.
|
inlineoverride |
|
inlineoverridevirtual |
clones the current property
Implements Gaudi::Details::PropertyBase.
Definition at line 114 of file CArrayAsProperty.h.
|
inlineoverride |
set new callback for reading
Definition at line 53 of file CArrayAsProperty.h.
|
inlineoverride |
set new callback for update
Definition at line 58 of file CArrayAsProperty.h.
|
inline |
Definition at line 121 of file CArrayAsProperty.h.
|
inlineoverridevirtual |
string -> value
Implements Gaudi::Details::PropertyBase.
Definition at line 150 of file CArrayAsProperty.h.
|
inlineoverride |
set value to another property
Definition at line 145 of file CArrayAsProperty.h.
|
inline |
Automatic conversion to value (const reference).
Definition at line 75 of file CArrayAsProperty.h.
|
inline |
|
inlineoverridevirtual |
get a reference to the readCallBack
Implements Gaudi::Details::PropertyBase.
Definition at line 64 of file CArrayAsProperty.h.
|
inline |
Definition at line 110 of file CArrayAsProperty.h.
|
inline |
Definition at line 106 of file CArrayAsProperty.h.
|
inline |
Definition at line 120 of file CArrayAsProperty.h.
|
inlineoverridevirtual |
value -> stream
Implements Gaudi::Details::PropertyBase.
Definition at line 165 of file CArrayAsProperty.h.
|
inlineoverridevirtual |
value -> string
Implements Gaudi::Details::PropertyBase.
Definition at line 160 of file CArrayAsProperty.h.
|
inlineoverridevirtual |
get a reference to the updateCallBack
Implements Gaudi::Details::PropertyBase.
Definition at line 66 of file CArrayAsProperty.h.
|
inlineoverridevirtual |
manual trigger for callback for update
Implements Gaudi::Details::PropertyBase.
Definition at line 69 of file CArrayAsProperty.h.
|
inline |
Definition at line 105 of file CArrayAsProperty.h.
|
inline |
Backward compatibility.
Definition at line 104 of file CArrayAsProperty.h.
|
inline |
|
inline |
|
inlinestaticconstexprprivate |
helper typedefs for SFINAE
Definition at line 37 of file CArrayAsProperty.h.
|
private |
Definition at line 33 of file CArrayAsProperty.h.
|
private |
Storage.
Definition at line 31 of file CArrayAsProperty.h.
|
private |
Definition at line 32 of file CArrayAsProperty.h.