k3d::data::with_constraint< value_t, undo_policy_t > Class Template Reference

Policy for data nodes whose values are constrained by a chain of one-to-many iconstraint nodes. More...

#include <data.h>

List of all members.

Public Member Functions

void set_value (value_t Value, ihint *const Hint=0)
const value_t constrain_value (value_t Value)

Protected Member Functions

template<typename init_t >
 with_constraint (const init_t &Init)

Private Attributes

const std::auto_ptr
< iconstraint< value_t > > 
m_constraint
 Stores the (mandatory) chain of constraint nodes to apply to incoming values.

Detailed Description

template<typename value_t, class undo_policy_t>
class k3d::data::with_constraint< value_t, undo_policy_t >

Policy for data nodes whose values are constrained by a chain of one-to-many iconstraint nodes.


Constructor & Destructor Documentation

template<typename value_t , class undo_policy_t >
template<typename init_t >
k3d::data::with_constraint< value_t, undo_policy_t >::with_constraint ( const init_t &  Init  )  [inline, protected]

Member Function Documentation

template<typename value_t , class undo_policy_t >
const value_t k3d::data::with_constraint< value_t, undo_policy_t >::constrain_value ( value_t  Value  )  [inline]
template<typename value_t , class undo_policy_t >
void k3d::data::with_constraint< value_t, undo_policy_t >::set_value ( value_t  Value,
ihint *const   Hint = 0 
) [inline]

Member Data Documentation

template<typename value_t , class undo_policy_t >
const std::auto_ptr<iconstraint<value_t> > k3d::data::with_constraint< value_t, undo_policy_t >::m_constraint [private]

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

Generated on Mon Mar 21 07:42:19 2011 for K-3D by doxygen 1.6.3