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

SimpleProperty Class Template Reference

SimpleProperty templated class. More...

#include <GaudiKernel/Property.h>

Inheritance diagram for SimpleProperty:

Property CommandProperty List of all members.

Public Methods

 SimpleProperty ()
 SimpleProperty ( const T& value )
 SimpleProperty ( const std::string& name, const T& value )
 SimpleProperty ( const std::string& name, const T& value, VT& verifier )
virtual ~SimpleProperty ()
SimpleProperty< 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

m_value
VT m_verifier

Detailed Description

template<class T, class VT = BoundedVerifier< T >> template class SimpleProperty

SimpleProperty templated class.

Author(s):
Paul Maley , CTDay

Definition at line 145 of file Property.h.


Constructor & Destructor Documentation

template<classT, classVT = BoundedVerifier< T >>
SimpleProperty<T, VT>::SimpleProperty<T, VT> ( ) [inline]
 

Definition at line 149 of file Property.h.

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

Definition at line 150 of file Property.h.

template<classT, classVT = BoundedVerifier< T >>
SimpleProperty<T, VT>::SimpleProperty<T, VT> ( const std::string & name,
const T & value ) [inline]
 

Definition at line 152 of file Property.h.

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

Definition at line 155 of file Property.h.

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

Definition at line 164 of file Property.h.


Member Function Documentation

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

Reimplemented from Property.

Definition at line 150 of file Property.cpp.

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

Reimplemented from Property.

Definition at line 144 of file Property.cpp.

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

Reimplemented from Property.

Definition at line 200 of file Property.h.

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

Reimplemented from Property.

Definition at line 165 of file Property.cpp.

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

Reimplemented from Property.

Definition at line 135 of file Property.cpp.

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

Reimplemented from Property.

Definition at line 114 of file Property.cpp.

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

Definition at line 175 of file Property.h.

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

Definition at line 167 of file Property.h.

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

Modifier members.

Definition at line 187 of file Property.h.

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

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

Synonym for set().

Definition at line 197 of file Property.h.

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

Accessor members (const).

Definition at line 178 of file Property.h.

Referenced by AlgTool::AlgTool(), and operator const T &().

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

Reimplemented from Property.

Definition at line 183 of file Property.cpp.

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

Reimplemented from Property.

Definition at line 190 of file Property.cpp.

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

Reimplemented from Property.

Definition at line 120 of file Property.cpp.

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

Non-const allows client to change bounds.

Definition at line 184 of file Property.h.


Member Data Documentation

template<classT, classVT = BoundedVerifier< T >>
T SimpleProperty<T, VT>::m_value
 

Definition at line 220 of file Property.h.

template<classT, classVT = BoundedVerifier< T >>
VT SimpleProperty<T, VT>::m_verifier
 

Definition at line 221 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