seal::Property< DataType, ParentType > Class Template Reference

#include <property.h>

List of all members.

Public Member Functions

 Property (ParentType *parentPtr, void(ParentType::*fptr)(DataType))
Property< DataType, ParentType > & operator= (const DataType &val)


Detailed Description

template<typename DataType, typename ParentType>
class seal::Property< DataType, ParentType >

This template class encapsulates a type which can be used as other class/object properties. The objects of this class will become active properties in a sense that we can bind the property with a function of the parent class. See the documention of the constructor to learn as to how the binding with a parent class member function is specified by the user.

Constructor & Destructor Documentation

template<typename DataType, typename ParentType>
seal::Property< DataType, ParentType >::Property ( ParentType *  parentPtr,
void(ParentType::*)(DataType)  fptr 
) [inline]

Constructor.

Parameters:
parentPtr Pointer to the parent object to which this object is a property.
fptr Pointer to the member function of the parent object which this property will call when the value of the property changes. This binding to a parent class member function makes a property object appear to be an active property.


Member Function Documentation

template<typename DataType, typename ParentType>
Property<DataType, ParentType>& seal::Property< DataType, ParentType >::operator= ( const DataType &  val  )  [inline]

This assignment operator calls the member function of the parent object (to which the property object has been bound to) whenever the assignment operation changes the value of the property. This call to the bound function is what makes the property an active property.


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

Generated on Sat May 16 21:35:20 2009 for SEAL by  doxygen 1.5.5