|
| template<class T = StorageType> |
| | Property (std::string name, T &&value, std::string doc="", std::string semantics="") |
| | the constructor with property name, value and documentation.
|
| |
template<std::derived_from< IProperty > OWNER, typename T = ValueType>
requires ( std::is_default_constructible_v<T> ) |
| | Property (OWNER *owner, std::string name) |
| | Autodeclaring constructor with property name, value and documentation.
|
| |
| template<std::derived_from< IProperty > OWNER, class T = StorageType> |
| | Property (OWNER *owner, std::string name, T &&value, std::string doc="", std::string semantics="") |
| | Autodeclaring constructor with property name, value and documentation.
|
| |
| template<std::derived_from< IProperty > OWNER, class T = StorageType> |
| | Property (OWNER *owner, std::string name, T &&value, std::function< void(PropertyBase &)> handler, std::string doc="", std::string semantics="") |
| | Autodeclaring constructor with property name, value, updateHandler and documentation.
|
| |
| template<std::derived_from< IProperty > OWNER, class T = StorageType> |
| | Property (OWNER *owner, std::string name, T &&value, void(OWNER::*handler)(PropertyBase &), std::string doc="", std::string semantics="") |
| | Autodeclaring constructor with property name, value, pointer to member function updateHandler and documentation.
|
| |
| template<std::derived_from< IProperty > OWNER, class T = StorageType> |
| | Property (OWNER *owner, std::string name, T &&value, void(OWNER::*handler)(), std::string doc="", std::string semantics="") |
| | Autodeclaring constructor with property name, value, pointer to member function updateHandler and documentation.
|
| |
| template<std::derived_from< IProperty > OWNER, class T = StorageType> |
| | Property (OWNER *owner, std::string name, T &&value, std::function< void(PropertyBase &)> handler, Details::Property::ImmediatelyInvokeHandler invoke, std::string doc="", std::string semantics="") |
| | Autodeclaring constructor with property name, value, updateHandler and documentation.
|
| |
template<typename T>
requires ( !std::is_same_v<Property, std::remove_reference_t<T>> ) |
| | Property (T &&v) |
| | Construct an anonymous property from a value.
|
| |
template<typename T = StorageType>
requires ( !std::is_reference_v<T> ) |
| | Property () |
| | Construct an anonymous property with default constructed value.
|
| |
| Details::PropertyBase & | declareReadHandler (std::function< void(Details::PropertyBase &)> fun) override |
| | set new callback for reading
|
| |
| Details::PropertyBase & | declareUpdateHandler (std::function< void(Details::PropertyBase &)> fun) override |
| | set new callback for update
|
| |
| const std::function< void(Details::PropertyBase &)> | readCallBack () const override |
| | get a reference to the readCallBack
|
| |
| const std::function< void(Details::PropertyBase &)> | updateCallBack () const override |
| | get a reference to the updateCallBack
|
| |
| bool | useUpdateHandler () override |
| | manual trigger for callback for update
|
| |
| | operator const ValueType & () const |
| | Automatic conversion to value (const reference).
|
| |
template<typename Dummy = TYPE>
requires ( std::is_constructible_v<std::string_view, Dummy> ) |
| | operator std::string_view () const |
| |
| std::ostream & | fillStream (std::ostream &stream) const override |
| | Properly quote string properties when printing them.
|
| |
| | operator std::string_view () const |
| |
| template<class T> |
| bool | operator== (const T &other) const |
| | equality comparison
|
| |
| template<class T> |
| bool | operator!= (const T &other) const |
| | inequality comparison
|
| |
| template<class T> |
| bool | operator< (const T &other) const |
| | "less" comparison
|
| |
| template<class T> |
| decltype(auto) | operator+ (const T &other) const |
| | allow addition if possible between the property and the other types
|
| |
| template<class T = ValueType> |
| Property & | operator= (T &&v) |
| | Assignment from value.
|
| |
| const VerifierType & | verifier () const |
| | Accessor to verifier.
|
| |
| VerifierType & | verifier () |
| | Accessor to verifier.
|
| |
| template<class... Args> |
| decltype(std::declval< ValueType >()(std::declval< Args && >()...)) | operator() (Args &&... args) const noexcept(noexcept(std::declval< ValueType >()(std::declval< Args && >()...))) |
| |
| bool | assign (const Details::PropertyBase &source) override |
| | get the value from another property
|
| |
| bool | load (Details::PropertyBase &dest) const override |
| | set value to another property
|
| |
| StatusCode | fromString (const std::string &source) override |
| | string -> value
|
| |
| std::string | toString () const override |
| | value -> string
|
| |
| void | toStream (std::ostream &out) const override |
| | value -> stream
|
| |
| virtual PropertyBase & | declareReadHandler (std::function< void(PropertyBase &)> fun)=0 |
| | set new callback for reading
|
| |
| template<class HT> |
| PropertyBase & | declareReadHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
| |
| virtual PropertyBase & | declareUpdateHandler (std::function< void(PropertyBase &)> fun)=0 |
| | set new callback for update
|
| |
| template<class HT> |
| PropertyBase & | declareUpdateHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
| |
|
| const ValueType & | value () const |
| |
| ValueType & | value () |
| |
| bool | setValue (const ValueType &v) |
| |
| bool | set (const ValueType &v) |
| |
| Details::PropertyBase * | clone () const override |
| | clones the current property
|
| |
|
They are instantiated only if they are implemented in the wrapped class.
|
| template<class T = const ValueType> |
| decltype(auto) | size () const |
| |
| template<class T = const ValueType, typename = decltype( std::declval<const T>().length() )> |
| decltype(auto) | length () const |
| |
| template<class T = const ValueType> |
| decltype(auto) | empty () const |
| |
| template<class T = ValueType> |
| decltype(auto) | clear () |
| |
| template<class T = const ValueType, typename = decltype( std::declval<const T>().begin() )> |
| decltype(auto) | begin () const |
| |
| template<class T = const ValueType> |
| decltype(auto) | end () const |
| |
| template<class T = ValueType, typename = decltype( std::declval<T>().begin() )> |
| decltype(auto) | begin () |
| |
| template<class T = ValueType> |
| decltype(auto) | end () |
| |
| template<class ARG> |
| decltype(auto) | operator[] (const ARG &arg) const |
| |
| template<class ARG> |
| decltype(auto) | operator[] (const ARG &arg) |
| |
| template<class T = const ValueType> |
| decltype(auto) | find (const typename T::key_type &key) const |
| |
| template<class T = ValueType> |
| decltype(auto) | find (const typename T::key_type &key) |
| |
| template<class ARG, class T = ValueType> |
| decltype(auto) | erase (ARG arg) |
| |
| template<class = ValueType> |
| Property & | operator++ () |
| |
| template<class = ValueType> |
| ValueType | operator++ (int) |
| |
| template<class = ValueType> |
| Property & | operator-- () |
| |
| template<class = ValueType> |
| ValueType | operator-- (int) |
| |
| template<class T = ValueType> |
| Property & | operator+= (const T &other) |
| |
| template<class T = ValueType> |
| Property & | operator-= (const T &other) |
| |
| template<class T = const ValueType> |
| decltype(auto) | key () const |
| | Helpers for DataHandles and derived classes.
|
| |
| template<class T = const ValueType> |
| decltype(auto) | objKey () const |
| |
| template<class T = const ValueType> |
| decltype(auto) | fullKey () const |
| |
| template<class T = ValueType> |
| decltype(auto) | initialize () |
| |
| template<class T = ValueType> |
| decltype(auto) | makeHandles () const |
| |
| template<class ARG, class T = ValueType> |
| decltype(auto) | makeHandles (const ARG &arg) const |
| |
| const std::string | name () const |
| | property name
|
| |
| std::string | documentation () const |
| | property documentation
|
| |
| std::string | semantics () const |
| | property semantics
|
| |
| const std::type_info * | type_info () const |
| | property type-info
|
| |
| std::string | type () const |
| | property type
|
| |
| 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
|
| |
| void | setName (std::string value) |
| | set the new value for the property name
|
| |
| void | setDocumentation (std::string value) |
| | set the documentation string
|
| |
| void | setSemantics (std::string value) |
| | set the semantics string
|
| |
| void | setOwnerType (const std::type_info &ownerType) |
| | set the type of the owner class (used for documentation)
|
| |
| template<class OWNER> |
| void | setOwnerType () |
| | set the type of the owner class (used for documentation)
|
| |
| const std::type_info * | ownerType () const |
| | get the type of the owner class (used for documentation)
|
| |
| std::string | ownerTypeName () const |
| | get the string for the type of the owner class (used for documentation)
|
| |
template<
class TYPE,
class VERIFIER,
class HANDLERS>
class Gaudi::Property< TYPE, VERIFIER, HANDLERS >
Implementation of property with value of concrete type.
- Author
- Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Date
- 2006-02-27
- Author
- Marco Clemencic
- Date
- 2016-06-16
Definition at line 27 of file PropertyFwd.h.