| # Gaudi Framework, version v21r7p1 |

Home |  | Generated: 15 Feb 2010

# 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]

List of all members.

## 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
## Private Member Functions
| SimplePropertyRef ()

## Detailed Description

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

SimplePropertyRef templated class.

Author:
  Paul Maley

  CTDay

  Vanya BELYAEV ibelyaev@physics.syr.edu

Definition at line 626 of file Property.h.

## Constructor & Destructor Documentation

template<class TYPE, class VERIFIER>

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

Constructor from the name, the value and the verifier.

Parameters:

  value | NB! non-const reference

Definition at line 655 of file Property.h.

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

template<class TYPE, class VERIFIER>

SimplePropertyRef< TYPE, VERIFIER >::SimplePropertyRef | ( | const SimplePropertyRef< TYPE, VERIFIER > & | right | ) | `[inline]`

copy constructor (must be!)

Definition at line 665 of file Property.h.

    00666   : PropertyWithVerifier<TYPE,VERIFIER>
    00667 ( right.name() , right.i_get() , false , right.verifier() )
    00668 {}

template<class TYPE, class VERIFIER>

SimplePropertyRef< TYPE, VERIFIER >::~SimplePropertyRef | ( |  | ) | `[inline, virtual]`

virtual Destructor

Definition at line 673 of file Property.h.

    00673 {}

template<class TYPE, class VERIFIER = NullVerifier<TYPE>>

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 680 of file Property.h.

    00681 { 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

Reimplemented from PropertyWithVerifier< TYPE, VERIFIER >.

Definition at line 688 of file Property.h.

    00689 {
    00690   PropertyWithVerifier<TYPE,VERIFIER>::operator=( value ) ;
    00691   return *this ;
    00692 }

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

Reimplemented from PropertyWithVerifier< TYPE, VERIFIER >.

Definition at line 701 of file Property.h.

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

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

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