Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

SimplePropertyRef Class Template Reference

Generic SimplePropertyRef refers to value memory and verifier and supplies NullVerifier by default. More...

#include <GaudiKernel/Property.h>

Inheritance diagram for SimplePropertyRef:

Property List of all members.

Public Methods

 SimplePropertyRef ( const std::string& name, const T& value, const VT& verifier = NullVerifier<T>::theNullVerifier() )
virtual ~SimplePropertyRef ()
SimplePropertyRef< T, VT >& operator= ( const T& value )
 operator const T & () const
const T& value () const
 Accessor members (const). More...

VT& verifier ()
 Non-const allows client to change bounds. More...

bool set ( const T& value )
 Modifier members. More...

bool setValue ( const T& value )
 Synonym for set(). More...

bool isRef () const
std::istream& nameAndValueFromStream ( std::istream& )
std::istream& valueFromStream ( std::istream& )
std::ostream& nameAndValueAsStream ( std::ostream& ) const
virtual PropertyRefcloneRef () const
virtual bool assign ( const Property& )
virtual bool load ( Property& ) const
std::ostream& valueElementAsStream ( std::ostream&, size_t index ) const
std::istream& valueElementFromStream ( std::istream& )

Public Attributes

T& m_value
VT& m_verifier

Detailed Description

template<class T, class VT = NullVerifier< T >> template class SimplePropertyRef

Generic SimplePropertyRef refers to value memory and verifier and supplies NullVerifier by default.

Author(s):
CTDay

Definition at line 232 of file Property.h.


Constructor & Destructor Documentation

template<classT, classVT = NullVerifier< T >>
SimplePropertyRef<T, VT>::SimplePropertyRef<T, VT> ( const std::string & name,
const T & value,
const VT & verifier = NullVerifier<T>::theNullVerifier() ) [inline]
 

Definition at line 236 of file Property.h.

template<classT, classVT = NullVerifier< T >>
SimplePropertyRef<T, VT>::~SimplePropertyRef<T, VT> ( ) [inline, virtual]
 

Definition at line 247 of file Property.h.


Member Function Documentation

template<classT, classVT>
bool SimplePropertyRef< T,VT >::assign ( const Property & p ) [virtual]
 

Reimplemented from Property.

Definition at line 269 of file Property.cpp.

template<classT, classVT>
Property * SimplePropertyRef< T,VT >::cloneRef ( ) const [virtual]
 

Reimplemented from Property.

Definition at line 263 of file Property.cpp.

template<classT, classVT = NullVerifier< T >>
bool SimplePropertyRef<T, VT>::isRef ( ) const [inline, virtual]
 

Reimplemented from Property.

Definition at line 283 of file Property.h.

template<classT, classVT>
bool SimplePropertyRef< T,VT >::load ( Property & p ) const [virtual]
 

Reimplemented from Property.

Definition at line 284 of file Property.cpp.

template<>
std::ostream & SimplePropertyRef< std::string,BoundedVerifier< std::string > >::nameAndValueAsStream ( std::ostream & o ) const [virtual]
 

Reimplemented from Property.

Definition at line 254 of file Property.cpp.

template<classT, classVT>
std::istream & SimplePropertyRef< T,VT >::nameAndValueFromStream ( std::istream & i ) [virtual]
 

Reimplemented from Property.

Definition at line 233 of file Property.cpp.

template<classT, classVT = NullVerifier< T >>
SimplePropertyRef<T, VT>::operator const T & ( ) const [inline]
 

Definition at line 258 of file Property.h.

template<classT, classVT = NullVerifier< T >>
SimplePropertyRef< T,VT >& SimplePropertyRef<T, VT>::operator=< T, VT > ( const T & value ) [inline]
 

Definition at line 250 of file Property.h.

template<classT, classVT = NullVerifier< T >>
bool SimplePropertyRef<T, VT>::set ( const T & value ) [inline]
 

Modifier members.

Definition at line 270 of file Property.h.

Referenced by assign(), operator=(), setValue(), and valueFromStream().

template<classT, classVT = NullVerifier< T >>
bool SimplePropertyRef<T, VT>::setValue ( const T & value ) [inline]
 

Synonym for set().

Definition at line 280 of file Property.h.

template<classT, classVT = NullVerifier< T >>
const T & SimplePropertyRef<T, VT>::value ( ) const [inline]
 

Accessor members (const).

Definition at line 261 of file Property.h.

Referenced by nameAndValueAsStream(), and operator const T &().

template<classT, classVT>
std::ostream & SimplePropertyRef< T,VT >::valueElementAsStream ( std::ostream & o,
size_t index ) const [virtual]
 

Reimplemented from Property.

Definition at line 302 of file Property.cpp.

template<classT, classVT>
std::istream & SimplePropertyRef< T,VT >::valueElementFromStream ( std::istream & i ) [virtual]
 

Reimplemented from Property.

Definition at line 309 of file Property.cpp.

template<>
std::istream & SimplePropertyRef< std::string,BoundedVerifier< std::string > >::valueFromStream ( std::istream & i ) [virtual]
 

Reimplemented from Property.

Definition at line 239 of file Property.cpp.

template<classT, classVT = NullVerifier< T >>
VT & SimplePropertyRef<T, VT>::verifier ( ) [inline]
 

Non-const allows client to change bounds.

Definition at line 267 of file Property.h.


Member Data Documentation

template<classT, classVT = NullVerifier< T >>
T & SimplePropertyRef<T, VT>::m_value
 

Definition at line 303 of file Property.h.

template<classT, classVT = NullVerifier< T >>
VT & SimplePropertyRef<T, VT>::m_verifier
 

Definition at line 304 of file Property.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:22:15 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000