| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
SimplePropertyRef< TYPE, VERIFIER > Class Template Reference

SimplePropertyRef templated class. More...

`#include <GaudiKernel/Property.h>`

Inheritance diagram for SimplePropertyRef< TYPE, VERIFIER >:
[legend]
Collaboration diagram for SimplePropertyRef< TYPE, VERIFIER >:
[legend]

## Public Member Functions
| SimplePropertyRef (const std::string &name, TYPE &value, VERIFIER verifier=VERIFIER())
| Constructor from the name, the value and the verifier.
| SimplePropertyRef (const SimplePropertyRef &right)
| copy constructor (must be!)
virtual | ~SimplePropertyRef ()
| virtual Destructor
virtual SimplePropertyRef * | clone () const
| implementation of Property::clone
SimplePropertyRef & | operator= (const TYPE &value)
| assignment form the value
template<class OTHER >
SimplePropertyRef & | operator= (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 >
PropertyWithVerifier & | operator= (const PropertyWithVerifier< OTHER, OTHERVERIFIER > &right)
| templated assignment
template<class OTHER >
PropertyWithVerifier & | operator= (const PropertyWithValue< OTHER > &right)
| templated assignment
PropertyWithVerifier & | operator= (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::string & | name () const
| property name
const std::string & | documentation () const
| property documentation
const std::type_info * | type_info () const
| property type-info
std::string | type () const
| property type
const PropertyCallbackFunctor * | readCallBack () const
| Call-back functor at reading: the functor is owned by property!
const PropertyCallbackFunctor * | updateCallBack () 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::ostream & | fillStream (std::ostream &) const
| the printout of the property value

## Private Member Functions
| SimplePropertyRef ()

## 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
PropertyCallbackFunctor * | m_readCallBack
PropertyCallbackFunctor * | m_updateCallBack

## Detailed Description

### template<class TYPE, class VERIFIER>
class SimplePropertyRef< TYPE, VERIFIER >

SimplePropertyRef templated class.

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 16 of file HistoProperty.h.

## Constructor & Destructor Documentation

template<class TYPE , class VERIFIER >

SimplePropertyRef< TYPE, VERIFIER >::SimplePropertyRef | ( | const std::string & | name,
|  | TYPE & | value,
|  | VERIFIER | verifier = `VERIFIER()`
| ) |  |

Constructor from the name, the value and the verifier.

Parameters

  value | NB! non-const reference

Definition at line 670 of file Property.h.

: PropertyWithVerifier<TYPE,VERIFIER> ( name , &value , false , verifier )
{}
template<class TYPE , class VERIFIER >

SimplePropertyRef< TYPE, VERIFIER >::SimplePropertyRef | ( | const SimplePropertyRef< TYPE, VERIFIER > & | right | ) |

copy constructor (must be!)

Definition at line 680 of file Property.h.

: PropertyWithVerifier<TYPE,VERIFIER>
( right.name() , right.i_get() , false , right.verifier() )
{}
template<class TYPE , class VERIFIER >

SimplePropertyRef< TYPE, VERIFIER >::~SimplePropertyRef | ( |  | ) |
| virtual

virtual Destructor

Definition at line 688 of file Property.h.

{}
template<class TYPE, class VERIFIER>

SimplePropertyRef< TYPE, VERIFIER >::SimplePropertyRef | ( |  | ) |
| private

## Member Function Documentation

template<class TYPE , class VERIFIER >

SimplePropertyRef< TYPE, VERIFIER > * SimplePropertyRef< TYPE, VERIFIER >::clone | ( |  | ) | const
| inline virtual

implementation of Property::clone

Implements Property.

Definition at line 695 of file Property.h.

{ return new SimplePropertyRef(*this) ; }
template<class TYPE , class VERIFIER >

SimplePropertyRef< TYPE, VERIFIER > & SimplePropertyRef< TYPE, VERIFIER >::operator= | ( | const TYPE & | value | ) |
| inline

assignment form the value

assignment from the value

Definition at line 703 of file Property.h.

{
PropertyWithVerifier<TYPE,VERIFIER>::operator=( value ) ;
return *this ;
}
template<class TYPE , class VERIFIER >
template<class OTHER >

SimplePropertyRef< TYPE, VERIFIER > & SimplePropertyRef< TYPE, VERIFIER >::operator= | ( | const PropertyWithValue< OTHER > & | right | ) |
| inline

assignment form the other property type

Definition at line 716 of file Property.h.

{
PropertyWithVerifier<TYPE,VERIFIER>::operator=( right );
return *this ;
}

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/HistoProperty.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/Property.h