All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SimpleProperty< TYPE, VERIFIER > Class Template Reference

SimpleProperty concrete class which implements the full Property interface. More...

#include <GaudiKernel/Property.h>

Inheritance diagram for SimpleProperty< TYPE, VERIFIER >:
Collaboration diagram for SimpleProperty< TYPE, VERIFIER >:

Public Member Functions

 SimpleProperty (VERIFIER verifier=VERIFIER())
 "Almost default" constructor from verifier More...
 
 SimpleProperty (const TYPE &value, VERIFIER verifier=VERIFIER())
 The constructor from the value and verifier (ATLAS needs it!) More...
 
 SimpleProperty (const std::string &name, const TYPE &value, VERIFIER verifier=VERIFIER())
 The constructor from the name, value and verifier. More...
 
template<class OTHER >
 SimpleProperty (const PropertyWithValue< OTHER > &right)
 constructor from other property type More...
 
 SimpleProperty (const SimpleProperty &right)
 copy constructor (must be!) More...
 
virtual ~SimpleProperty ()
 virtual Destructor More...
 
virtual SimplePropertyclone () const
 implementation of Property::clone More...
 
SimplePropertyoperator= (const TYPE &value)
 assignment form the value More...
 
template<class OTHER >
SimplePropertyoperator= (const PropertyWithValue< OTHER > &right)
 assignment form the other property type More...
 
template<class OTHER >
SimpleProperty< TYPE, VERIFIER > & operator= (const PropertyWithValue< OTHER > &right)
 assignment form the other property type More...
 
- Public Member Functions inherited from PropertyWithVerifier< TYPE, VERIFIER >
VERIFIER & verifier ()
 
const VERIFIER & verifier () const
 
bool set (const TYPE &value)
 update the value of the property/check the verifier More...
 
virtual bool setValue (const TYPE &value)
 implementation of PropertyWithValue::setValue More...
 
template<class OTHER , class OTHERVERIFIER >
PropertyWithVerifieroperator= (const PropertyWithVerifier< OTHER, OTHERVERIFIER > &right)
 templated assignment More...
 
template<class OTHER >
PropertyWithVerifieroperator= (const PropertyWithValue< OTHER > &right)
 templated assignment More...
 
PropertyWithVerifieroperator= (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...
 
- Public Member Functions inherited from PropertyWithValue< TYPE >
 operator const TYPE & () const
 implicit conversion to the type More...
 
const TYPE & value () const
 explicit conversion More...
 
virtual bool assign (const Property &source)
 get the value from another property More...
 
virtual bool load (Property &dest) const
 set value for another property More...
 
virtual StatusCode fromString (const std::string &s)
 string -> value More...
 
virtual std::string toString () const
 value -> string More...
 
virtual void toStream (std::ostream &out) const
 value -> stream More...
 
template<class OTHER >
PropertyWithValue< TYPE > & operator= (const PropertyWithValue< OTHER > &right)
 
- Public Member Functions inherited from Property
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 PropertyCallbackFunctorreadCallBack () const
 Call-back functor at reading: the functor is owned by property! More...
 
const PropertyCallbackFunctorupdateCallBack () const
 Call-back functor for update: the functor is owned by property! More...
 
virtual void declareReadHandler (PropertyCallbackFunctor *pf)
 set new callback for reading More...
 
virtual void declareUpdateHandler (PropertyCallbackFunctor *pf)
 set new callback for update More...
 
template<class HT >
void declareReadHandler (void(HT::*MF)(Property &), HT *instance)
 
template<class HT >
void 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 ()
 virtual destructor More...
 
void setName (const std::string &value)
 set the new value for the property name More...
 
void setDocumentation (const std::string &documentation)
 set the documentation string More...
 
virtual std::ostream & fillStream (std::ostream &) const
 the printout of the property value More...
 

Protected Types

typedef
Gaudi::Utils::PropertyTypeTraits
< TYPE > 
Traits
 

Additional Inherited Members

- Public Types inherited from PropertyWithValue< TYPE >
typedef
Gaudi::Utils::PropertyTypeTraits
< TYPE > 
Traits
 the type-traits for properties More...
 
typedef Traits::PVal PVal
 the actual storage type More...
 
- Protected Member Functions inherited from PropertyWithVerifier< TYPE, VERIFIER >
 PropertyWithVerifier (const std::string &name, typename Gaudi::Utils::PropertyTypeTraits< TYPE >::PVal value, const bool owner, const VERIFIER &verifier)
 the constructor with property name and value More...
 
virtual ~PropertyWithVerifier ()
 virtual destructor More...
 
- Protected Member Functions inherited from PropertyWithValue< TYPE >
 PropertyWithValue (const 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...
 
virtual ~PropertyWithValue ()
 virtual destructor More...
 
PropertyWithValueoperator= (const TYPE &value)
 assignment operator More...
 
PropertyWithValueoperator= (const PropertyWithValue &rhs)
 
template<class OTHER >
PropertyWithValueoperator= (const PropertyWithValue< OTHER > &right)
 
void i_set (const TYPE &value)
 set the value More...
 
PVal i_get () const
 get the value More...
 
- Protected Member Functions inherited from Property
 Property (const std::type_info &type, const std::string &name="")
 constructor from the property name and the type More...
 
 Property (const std::string &name, const std::type_info &type)
 constructor from the property name and the type More...
 
 Property (const Property &right)
 copy constructor More...
 
Propertyoperator= (const Property &right)
 assignment operator More...
 
- Protected Attributes inherited from Property
PropertyCallbackFunctorm_readCallBack
 
PropertyCallbackFunctorm_updateCallBack
 

Detailed Description

template<class TYPE, class VERIFIER>
class SimpleProperty< TYPE, VERIFIER >

SimpleProperty concrete class which implements the full Property interface.

Author
Paul Maley
CTDay
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u

Definition at line 15 of file HistoProperty.h.

Member Typedef Documentation

template<class TYPE, class VERIFIER>
typedef Gaudi::Utils::PropertyTypeTraits<TYPE> SimpleProperty< TYPE, VERIFIER >::Traits
protected

Definition at line 510 of file Property.h.

Constructor & Destructor Documentation

template<class TYPE , class VERIFIER >
SimpleProperty< TYPE, VERIFIER >::SimpleProperty ( VERIFIER  verifier = VERIFIER())

"Almost default" constructor from verifier

The constructor from verifier.

Definition at line 547 of file Property.h.

549 ( "" , Traits::new_() , true , verifier )
550 {}
Helper intermediate class which represent partly implemented property with value of concrete type and...
Definition: Property.h:396
VERIFIER & verifier()
Definition: Property.h:415
template<class TYPE, class VERIFIER >
SimpleProperty< TYPE, VERIFIER >::SimpleProperty ( const TYPE &  value,
VERIFIER  verifier = VERIFIER() 
)

The constructor from the value and verifier (ATLAS needs it!)

The constructor from the value and verifier.

Definition at line 556 of file Property.h.

559 ( "" , Traits::new_(value) , true , verifier )
560 {}
Helper intermediate class which represent partly implemented property with value of concrete type and...
Definition: Property.h:396
VERIFIER & verifier()
Definition: Property.h:415
const TYPE & value() const
explicit conversion
Definition: Property.h:355
template<class TYPE, class VERIFIER >
SimpleProperty< TYPE, VERIFIER >::SimpleProperty ( const std::string &  name,
const TYPE &  value,
VERIFIER  verifier = VERIFIER() 
)

The constructor from the name, value and verifier.

Definition at line 566 of file Property.h.

570 ( name , Traits::new_(value) , true , verifier )
571 {}
const std::string & name() const
property name
Definition: Property.h:47
Helper intermediate class which represent partly implemented property with value of concrete type and...
Definition: Property.h:396
VERIFIER & verifier()
Definition: Property.h:415
const TYPE & value() const
explicit conversion
Definition: Property.h:355
template<class TYPE , class VERIFIER >
template<class OTHER >
SimpleProperty< TYPE, VERIFIER >::SimpleProperty ( const PropertyWithValue< OTHER > &  right)

constructor from other property type

Definition at line 578 of file Property.h.

580 ( right.name() , Traits::new_( right.value() ) , true , VERIFIER() )
581 {}
const std::string & name() const
property name
Definition: Property.h:47
Helper intermediate class which represent partly implemented property with value of concrete type and...
Definition: Property.h:396
const TYPE & value() const
explicit conversion
Definition: Property.h:355
template<class TYPE, class VERIFIER >
SimpleProperty< TYPE, VERIFIER >::SimpleProperty ( const SimpleProperty< TYPE, VERIFIER > &  right)

copy constructor (must be!)

Definition at line 587 of file Property.h.

589 ( right.name() , Traits::new_( right.value() ) , true , right.verifier() )
590 {}
const std::string & name() const
property name
Definition: Property.h:47
Helper intermediate class which represent partly implemented property with value of concrete type and...
Definition: Property.h:396
VERIFIER & verifier()
Definition: Property.h:415
const TYPE & value() const
explicit conversion
Definition: Property.h:355
template<class TYPE , class VERIFIER >
SimpleProperty< TYPE, VERIFIER >::~SimpleProperty ( )
virtual

virtual Destructor

Definition at line 595 of file Property.h.

595 {}

Member Function Documentation

template<class TYPE , class VERIFIER >
SimpleProperty< TYPE, VERIFIER > * SimpleProperty< TYPE, VERIFIER >::clone ( ) const
inlinevirtual

implementation of Property::clone

Implements Property.

Definition at line 602 of file Property.h.

603 { return new SimpleProperty(*this) ; }
SimpleProperty(VERIFIER verifier=VERIFIER())
"Almost default" constructor from verifier
Definition: Property.h:547
template<class TYPE, class VERIFIER >
SimpleProperty< TYPE, VERIFIER > & SimpleProperty< TYPE, VERIFIER >::operator= ( const TYPE &  value)
inline

assignment form the value

Definition at line 610 of file Property.h.

611 {
613  return *this ;
614 }
PropertyWithVerifier & operator=(const PropertyWithVerifier< OTHER, OTHERVERIFIER > &right)
templated assignment
const TYPE & value() const
explicit conversion
Definition: Property.h:355
template<class TYPE, class VERIFIER>
template<class OTHER >
SimpleProperty& SimpleProperty< TYPE, VERIFIER >::operator= ( const PropertyWithValue< OTHER > &  right)

assignment form the other property type

template<class TYPE, class VERIFIER>
template<class OTHER >
SimpleProperty<TYPE,VERIFIER>& SimpleProperty< TYPE, VERIFIER >::operator= ( const PropertyWithValue< OTHER > &  right)
inline

assignment form the other property type

Definition at line 623 of file Property.h.

624 {
626  return *this ;
627 }
PropertyWithVerifier & operator=(const PropertyWithVerifier< OTHER, OTHERVERIFIER > &right)
templated assignment

The documentation for this class was generated from the following files: