ValuePtr<T, 0> Class Template Reference

Inheritance diagram for ValuePtr<T, 0>:

SPtr<IBaseValue>


Public Methods

 ValuePtr ()
 ValuePtr (T value, const char *type)
 ValuePtr (IBaseValue *in, const char *type)
 ValuePtr (const SRef< IBaseValue > &in, const char *type)
getValue ()
ValuePtr< T, 0 > & operator= (const SRef< IBaseValue > &v)

Detailed Description

template<class T>
class ValuePtr< T, 0 >

This is a convenience class to convert between C++ values and Value objects.


Constructor & Destructor Documentation

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

This, and the other constructors, initialize this object according to the arguments by creating a value pointer for that type. The name of the type and the type library must be supplied.

template<class T>
ValuePtr< T, 0 >::ValuePtr T    value,
const char *    type
[inline]
 

Parameters:
value 
type 

template<class T>
ValuePtr< T, 0 >::ValuePtr IBaseValue *    v,
const char *    type
[inline]
 

Parameters:
v 
type 

template<class T>
ValuePtr< T, 0 >::ValuePtr const SRef< IBaseValue > &    v,
const char *    type
[inline, explicit]
 

Parameters:
v 
type 


Member Function Documentation

template<class T>
ValuePtr< T, 0 >::getValue   [inline]
 

This function returns the primitive value of this object. A function is used instead of an operator to avoid ambiguity conflicts for conditionals.

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

Reimplemented from SPtr<IBaseValue>.


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

Return to top of page