![]() |
The Gaudi Framework
v27r1
|
Helper intermediate class which represent partly implemented property with value of concrete type and concrete verifier. More...
#include <GaudiKernel/Property.h>
Public Member Functions | |
VERIFIER & | verifier () |
const VERIFIER & | verifier () const |
bool | set (const TYPE &value) |
update the value of the property/check the verifier More... | |
bool | setValue (const TYPE &value) override |
implementation of PropertyWithValue::setValue More... | |
template<class OTHER , class OTHERVERIFIER > | |
PropertyWithVerifier & | operator= (const PropertyWithVerifier< OTHER, OTHERVERIFIER > &right) |
templated assignment More... | |
template<class OTHER > | |
PropertyWithVerifier & | operator= (const PropertyWithValue< OTHER > &right) |
templated assignment More... | |
PropertyWithVerifier & | operator= (const TYPE &right) |
assignment More... | |
template<class OTHER > | |
PropertyWithVerifier< TYPE, VERIFIER > & | operator= (const PropertyWithValue< OTHER > &right) |
template assignment More... | |
template<class OTHER , class OTHERVERIFIER > | |
PropertyWithVerifier< TYPE, VERIFIER > & | operator= (const PropertyWithVerifier< OTHER, OTHERVERIFIER > &right) |
template assignment More... | |
![]() | |
operator const TYPE & () const | |
implicit conversion to the type More... | |
const TYPE & | value () const |
explicit conversion More... | |
bool | assign (const Property &source) override |
get the value from another property More... | |
bool | load (Property &dest) const override |
set value for another property More... | |
StatusCode | fromString (const std::string &s) override |
string -> value More... | |
std::string | toString () const override |
value -> string More... | |
void | toStream (std::ostream &out) const override |
value -> stream More... | |
template<class OTHER > | |
PropertyWithValue< TYPE > & | operator= (const PropertyWithValue< OTHER > &right) |
![]() | |
const std::string & | name () const |
property name More... | |
const 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... | |
const std::function< void(Property &)> & | readCallBack () const |
get a reference to the readCallBack More... | |
const std::function< void(Property &)> & | updateCallBack () const |
get a reference to the updateCallBack More... | |
virtual Property & | declareReadHandler (std::function< void(Property &)> fun) |
set new callback for reading More... | |
virtual Property & | declareUpdateHandler (std::function< void(Property &)> fun) |
set new callback for update More... | |
template<class HT > | |
Property & | declareReadHandler (void(HT::*MF)(Property &), HT *instance) |
template<class HT > | |
Property & | declareUpdateHandler (void(HT::*MF)(Property &), HT *instance) |
virtual void | useReadHandler () const |
use the call-back function at reading More... | |
virtual bool | useUpdateHandler () |
use the call-back function at update More... | |
virtual | ~Property ()=default |
virtual destructor More... | |
virtual Property * | clone () const =0 |
clone: "virtual constructor" More... | |
void | setName (std::string value) |
set the new value for the property name More... | |
void | setDocumentation (std::string documentation) |
set the documentation string More... | |
virtual std::ostream & | fillStream (std::ostream &) const |
the printout of the property value More... | |
Protected Member Functions | |
PropertyWithVerifier (std::string name, typename Gaudi::Utils::PropertyTypeTraits< TYPE >::PVal value, const bool owner, const VERIFIER &verifier) | |
the constructor with property name and value More... | |
~PropertyWithVerifier () override=default | |
virtual destructor More... | |
![]() | |
PropertyWithValue (std::string name, PVal value, const bool owner) | |
the constructor with property name and value More... | |
PropertyWithValue (const PropertyWithValue &rhs) | |
copy constructor (don't let the compiler generate a buggy one) More... | |
template<class OTHER > | |
PropertyWithValue (const PropertyWithValue< OTHER > &right) | |
copy constructor from any other type More... | |
~PropertyWithValue () override | |
virtual destructor More... | |
PropertyWithValue & | operator= (const TYPE &value) |
assignment operator More... | |
PropertyWithValue & | operator= (const PropertyWithValue &rhs) |
template<class OTHER > | |
PropertyWithValue & | operator= (const PropertyWithValue< OTHER > &right) |
void | i_set (const TYPE &value) |
set the value More... | |
PVal | i_get () const |
get the value More... | |
![]() | |
Property (const std::type_info &type, std::string name="") | |
constructor from the property name and the type More... | |
Property (std::string name, const std::type_info &type) | |
constructor from the property name and the type More... | |
Property (const Property &)=default | |
copy constructor More... | |
Property & | operator= (const Property &)=default |
assignment operator More... | |
Private Member Functions | |
PropertyWithVerifier () | |
the default & copy constructors are deleted More... | |
PropertyWithVerifier (const PropertyWithVerifier &right) | |
Private Attributes | |
VERIFIER | m_verifier |
the verifier itself More... | |
Additional Inherited Members | |
![]() | |
typedef Gaudi::Utils::PropertyTypeTraits< TYPE > | Traits |
the type-traits for properties More... | |
typedef Traits::PVal | PVal |
the actual storage type More... | |
![]() | |
std::function< void(Property &)> | m_readCallBack |
std::function< void(Property &)> | m_updateCallBack |
Helper intermediate class which represent partly implemented property with value of concrete type and concrete verifier.
Definition at line 382 of file Property.h.
|
inlineprotected |
the constructor with property name and value
Definition at line 389 of file Property.h.
|
overrideprotecteddefault |
virtual destructor
|
private |
the default & copy constructors are deleted
|
private |
PropertyWithVerifier& PropertyWithVerifier< TYPE, VERIFIER >::operator= | ( | const PropertyWithVerifier< OTHER, OTHERVERIFIER > & | right | ) |
templated assignment
PropertyWithVerifier& PropertyWithVerifier< TYPE, VERIFIER >::operator= | ( | const PropertyWithValue< OTHER > & | right | ) |
templated assignment
|
inline |
assignment
Definition at line 448 of file Property.h.
|
inline |
template assignment
Definition at line 459 of file Property.h.
|
inline |
template assignment
Definition at line 471 of file Property.h.
|
inline |
update the value of the property/check the verifier
Implementation of PropertyWithVerifier::set.
use verifier!
update the value
invoke the update handler
Definition at line 434 of file Property.h.
|
inlineoverridevirtual |
implementation of PropertyWithValue::setValue
Implements PropertyWithValue< TYPE >.
Definition at line 406 of file Property.h.
|
inline |
Definition at line 401 of file Property.h.
|
inline |
Definition at line 402 of file Property.h.
|
private |
the verifier itself
Definition at line 426 of file Property.h.