#include <observer.h>
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 |
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.
| observer::ComplexChangeContext< ValueType, ValueIdType >::ComplexChangeContext | ( | boost::shared_ptr< ValueType > | origValue, | |
| ValueIdType | id | |||
| ) | [inline] |
Initialization constructor.
| origVal | Original value. | |
| id | Identificator of changed value. |
Initializes originalValue (uses BasicChangeContext constructor with origVal parameter) and valueId from given id.
| virtual observer::ComplexChangeContext< ValueType, ValueIdType >::~ComplexChangeContext | ( | ) | throw () [inline, virtual] |
| ChangeContextType observer::ComplexChangeContext< ValueType, ValueIdType >::getType | ( | ) | const throw () [inline, virtual] |
Returns type of context.
Reimplemented from observer::BasicChangeContext< ValueType >.
References observer::ComplexChangeContextType.
| ValueIdType observer::ComplexChangeContext< ValueType, ValueIdType >::getValueId | ( | ) | const throw () [inline] |
Returns identificator of changed value.
References observer::ComplexChangeContext< ValueType, ValueIdType >::valueId.
ValueIdType observer::ComplexChangeContext< ValueType, ValueIdType >::valueId [private] |