observer::ComplexChangeContext< ValueType, ValueIdType > Class Template Reference

#include <observer.h>

Inheritance diagram for observer::ComplexChangeContext< ValueType, ValueIdType >:
observer::BasicChangeContext< ValueType > observer::IChangeContext< ValueType >

List of all members.

Public Member Functions

 ComplexChangeContext (boost::shared_ptr< ValueType > origValue, ValueIdType id)
virtual ~ComplexChangeContext () throw ()
ValueIdType getValueId () const throw ()
ChangeContextType getType () const throw ()

Private Attributes

ValueIdType valueId

Detailed Description

template<typename ValueType, typename ValueIdType>
class observer::ComplexChangeContext< ValueType, ValueIdType >

Complex change context template class.

This context should be used when value with given ValueType template type is changed in context of complex value type (it is its part) and there is unique identification of this value.
Observer may use original value which is accessible from BasicChangeContextType supertype and additional value identificator information.


Constructor & Destructor Documentation

template<typename ValueType , typename ValueIdType >
observer::ComplexChangeContext< ValueType, ValueIdType >::ComplexChangeContext ( boost::shared_ptr< ValueType >  origValue,
ValueIdType  id 
) [inline]

Initialization constructor.

Parameters:
origVal Original value.
id Identificator of changed value.

Initializes originalValue (uses BasicChangeContext constructor with origVal parameter) and valueId from given id.

template<typename ValueType , typename ValueIdType >
virtual observer::ComplexChangeContext< ValueType, ValueIdType >::~ComplexChangeContext (  )  throw () [inline, virtual]

Member Function Documentation

template<typename ValueType , typename ValueIdType >
ChangeContextType observer::ComplexChangeContext< ValueType, ValueIdType >::getType (  )  const throw () [inline, virtual]

Returns type of context.

Returns:
ComplexChangeContextType value.

Reimplemented from observer::BasicChangeContext< ValueType >.

References observer::ComplexChangeContextType.

template<typename ValueType , typename ValueIdType >
ValueIdType observer::ComplexChangeContext< ValueType, ValueIdType >::getValueId (  )  const throw () [inline]

Returns identificator of changed value.

Returns:
value identificator value.

References observer::ComplexChangeContext< ValueType, ValueIdType >::valueId.


Member Data Documentation

template<typename ValueType , typename ValueIdType >
ValueIdType observer::ComplexChangeContext< ValueType, ValueIdType >::valueId [private]

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