Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Types | List of all members
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 >:
Inheritance graph
[legend]
Collaboration diagram for SimpleProperty< TYPE, VERIFIER >:
Collaboration graph
[legend]

Public Member Functions

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

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
 
typedef Traits::PVal PVal
 the actual storage type
 
- 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
 
virtual ~PropertyWithVerifier ()
 virtual destructor
 
- 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.

( "" , Traits::new_() , true , verifier )
{}
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.

( "" , Traits::new_(value) , true , verifier )
{}
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.

( name , Traits::new_(value) , true , verifier )
{}
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.

( right.name() , Traits::new_( right.value() ) , true , VERIFIER() )
{}
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.

( right.name() , Traits::new_( right.value() ) , true , right.verifier() )
{}
template<class TYPE , class VERIFIER >
SimpleProperty< TYPE, VERIFIER >::~SimpleProperty ( )
virtual

virtual Destructor

Definition at line 595 of file Property.h.

{}

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.

{ return new SimpleProperty(*this) ; }
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.

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.


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

Generated at Mon Feb 17 2014 14:38:11 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004