ValuePtr<T, 1> Class Template Reference

Inheritance diagram for ValuePtr<T, 1>:

SPtr<IBaseValue>


Public Methods

 ValuePtr ()
 ValuePtr (T v)
 ValuePtr (IBaseValue *in)
 ValuePtr (const SRef< IBaseValue > &in)
 operator T ()
ValuePtr & operator= (T v)
ValuePtr & operator= (const SRef< IBaseValue > &v)

Detailed Description

template<class T>
class ValuePtr< T, 1 >


Constructor & Destructor Documentation

template<class T>
ValuePtr< T, 1 >::ValuePtr   [inline]
 

template<class T>
ValuePtr< T, 1 >::ValuePtr T    v [inline]
 

Parameters:
v This constructor initializes this object according to the argument by creating a value object for that type and assigning this to the interface pointer.

template<class T>
ValuePtr< T, 1 >::ValuePtr IBaseValue *    in [inline]
 

Parameters:
in 

template<class T>
ValuePtr< T, 1 >::ValuePtr const SRef< IBaseValue > &    in [inline]
 

Parameters:
&in 


Member Function Documentation

template<class T>
ValuePtr< T, 1 >::operator T   [inline]
 

This operator returns the value if this type matches the type of this object. Otherwise, an exception is thrown.

template<class T>
ValuePtr & ValuePtr< T, 1 >::operator= const SRef< IBaseValue > &    v [inline]
 

Parameters:
v 

Reimplemented from SPtr<IBaseValue>.

template<class T>
ValuePtr & ValuePtr< T, 1 >::operator= T    v [inline]
 


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

Return to top of page