|
template<class T = StorageType> |
| Property (std::string name, T &&value, std::string doc="") |
| the constructor with property name, value and documentation. More...
|
|
template<typename OWNER , typename T = ValueType, typename = std::enable_if_t<std::is_base_of<IProperty, OWNER>::value>, typename = std::enable_if_t<std::is_default_constructible<T>::value>> |
| Property (OWNER *owner, std::string name) |
| Autodeclaring constructor with property name, value and documentation. More...
|
|
template<class OWNER , class T = StorageType, typename = std::enable_if_t<std::is_base_of<IProperty, OWNER>::value>> |
| Property (OWNER *owner, std::string name, T &&value, std::string doc="") |
| Autodeclaring constructor with property name, value and documentation. More...
|
|
template<typename T , typename = not_copying<T>> |
| Property (T &&v) |
| Construct an anonymous property from a value. More...
|
|
template<typename T = StorageType, typename = std::enable_if_t<!std::is_reference<T>::value>> |
| Property () |
| Construct an anonymous property with default constructed value. More...
|
|
Details::PropertyBase & | declareReadHandler (std::function< void(Details::PropertyBase &)> fun) override |
| set new callback for reading More...
|
|
Details::PropertyBase & | declareUpdateHandler (std::function< void(Details::PropertyBase &)> fun) override |
| set new callback for update More...
|
|
const std::function< void(Details::PropertyBase &)> | readCallBack () const override |
| get a reference to the readCallBack More...
|
|
const std::function< void(Details::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...
|
|
template<class T > |
bool | operator== (const T &other) const |
| equality comparison More...
|
|
template<class T > |
bool | operator!= (const T &other) const |
| inequality comparison More...
|
|
template<class T > |
bool | operator< (const T &other) const |
| "less" comparison More...
|
|
template<class T = ValueType> |
Property & | operator= (T &&v) |
| Assignment from value. More...
|
|
const VerifierType & | verifier () const |
| Accessor to verifier. More...
|
|
VerifierType & | verifier () |
| Accessor to verifier. More...
|
|
template<class... Args> |
decltype( | operator() (Args &&...args) const noexcept(noexcept(std::declval< ValueType >()(std::declval< Args && >()...))) std::declval< ValueType >()(std::declval< Args && >()...)) |
|
bool | assign (const Details::PropertyBase &source) override |
| get the value from another property More...
|
|
bool | load (Details::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) |
|
Details::PropertyBase * | clone () const override |
| clones the current property More...
|
|
|
They are instantiated only if they are implemented in the wrapped class.
|
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) |
|
const std::string | name () const |
| property name More...
|
|
std::string | documentation () const |
| property documentation More...
|
|
const std::type_info * | type_info () const |
| property type-info More...
|
|
std::string | type () const |
| property type 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 ()=default |
| 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...
|
|
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...
|
|
template<class TYPE, class VERIFIER = Details::Property::NullVerifier, class HANDLERS = Details::Property::UpdateHandler>
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 381 of file Property.h.