Odyssey::Property< TypeT, TraitsT > Class Template Reference

Single-value property implementation. More...

#include <property.h>

Inheritance diagram for Odyssey::Property< TypeT, TraitsT >:

Odyssey::PropertyBase List of all members.

Public Member Functions

template<class T>
 Property (T t)
 Construct a new Property with the given initial value.
template<class T, class U>
 Property (const Property< T, U > &rhs)
 Construct a new Property with the value held in the given Property.
const std::type_info & getTypeInfo () const
 Returns the type info of the held type.
void _fromAny (const Any &val)
 This is the override for single-value conversions using any.
Any _toAny () const
 This is the override for single-value conversions using any.
void _fromString (const Odyssey::String &val)
 This is the override for single-value conversions using string.
Odyssey::String _toString () const
 This is the override for single-value conversions using string.
template<class T>
Propertyoperator= (T t)
Variable var () const
 Returns a variable representation of this property's data.
 operator value_t () const
value_t & operator * ()
const value_t & operator * () const
value_t & operator-> ()
const value_t & operator-> () const
PropertyValueIteratorPtr createValueIterator () const
 Creates a new iterator for the values in the property.

Classes

class  PropertyValueIteratorImpl

Detailed Description

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
class Odyssey::Property< TypeT, TraitsT >

Single-value property implementation.

This class is an implementation of PropertyBase for single-value properties.


Constructor & Destructor Documentation

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
template<class T>
Odyssey::Property< TypeT, TraitsT >::Property t  )  [inline]
 

Construct a new Property with the given initial value.

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
template<class T, class U>
Odyssey::Property< TypeT, TraitsT >::Property const Property< T, U > &  rhs  )  [inline]
 

Construct a new Property with the value held in the given Property.


Member Function Documentation

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
void Odyssey::Property< TypeT, TraitsT >::_fromAny const Any val  )  [inline, virtual]
 

This is the override for single-value conversions using any.

Reimplemented from Odyssey::PropertyBase.

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
void Odyssey::Property< TypeT, TraitsT >::_fromString const Odyssey::String val  )  [inline, virtual]
 

This is the override for single-value conversions using string.

Reimplemented from Odyssey::PropertyBase.

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
Any Odyssey::Property< TypeT, TraitsT >::_toAny  )  const [inline, virtual]
 

This is the override for single-value conversions using any.

Reimplemented from Odyssey::PropertyBase.

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
Odyssey::String Odyssey::Property< TypeT, TraitsT >::_toString  )  const [inline, virtual]
 

This is the override for single-value conversions using string.

Reimplemented from Odyssey::PropertyBase.

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
PropertyValueIteratorPtr Odyssey::Property< TypeT, TraitsT >::createValueIterator  )  const [inline, virtual]
 

Creates a new iterator for the values in the property.

This function creates a new value iterator to access the value(s) that are stored in this property. The iterator will be defined by Property implementations.

Reimplemented from Odyssey::PropertyBase.

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
const std::type_info& Odyssey::Property< TypeT, TraitsT >::getTypeInfo  )  const [inline, virtual]
 

Returns the type info of the held type.

Implements Odyssey::PropertyBase.

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
const value_t& Odyssey::Property< TypeT, TraitsT >::operator *  )  const [inline]
 

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
value_t& Odyssey::Property< TypeT, TraitsT >::operator *  )  [inline]
 

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
Odyssey::Property< TypeT, TraitsT >::operator value_t  )  const [inline]
 

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
const value_t& Odyssey::Property< TypeT, TraitsT >::operator->  )  const [inline]
 

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
value_t& Odyssey::Property< TypeT, TraitsT >::operator->  )  [inline]
 

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
template<class T>
Property& Odyssey::Property< TypeT, TraitsT >::operator= t  )  [inline]
 

template<class TypeT, class TraitsT = Odyssey::variable_traits<TypeT>>
Variable Odyssey::Property< TypeT, TraitsT >::var  )  const [inline, virtual]
 

Returns a variable representation of this property's data.

Reimplemented from Odyssey::PropertyBase.


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:53 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO