CLAM::TypedInControl< TypedControlData > Class Template Reference

#include <TypedInControl.hxx>

Inheritance diagram for CLAM::TypedInControl< TypedControlData >:

CLAM::BaseTypedInControl CLAM::CascadingTypedInControl< TypedControlData, ProcObj >

List of all members.


Detailed Description

template<class TypedControlData>
class CLAM::TypedInControl< TypedControlData >

Definition at line 18 of file TypedInControl.hxx.


Public Member Functions

 TypedInControl (const std::string &name="unnamed typed in control", Processing *proc=0)
 ~TypedInControl ()
void DoControl (const TypedControlData &val)
const TypedControlData & GetLastValue () const
bool GetLastValueAsBoolean () const
 ONLY TO USE WHEN TypedControlData == float.
int GetLastValueAsInteger () const
 ONLY TO USE WHEN TypedControlData == float.
bool IsConnected () const
virtual const std::type_info & ControlType () const
void OutControlInterface_AddLink (TypedOutControl< TypedControlData > &outControl)
 Implementation detail just to be used from OutControl.
void OutControlInterface_RemoveLink (TypedOutControl< TypedControlData > &outControl)
 Implementation detail just to be used from OutControl.

Protected Attributes

TypedControlData mLastValue
std::list< BaseTypedOutControl * > mLinks

Constructor & Destructor Documentation

template<class TypedControlData>
CLAM::TypedInControl< TypedControlData >::TypedInControl ( const std::string &  name = "unnamed typed in control",
Processing proc = 0 
) [inline]

Definition at line 51 of file TypedInControl.hxx.

template<class TypedControlData>
CLAM::TypedInControl< TypedControlData >::~TypedInControl (  )  [inline]


Member Function Documentation

template<class TypedControlData>
void CLAM::TypedInControl< TypedControlData >::DoControl ( const TypedControlData &  val  )  [inline]

template<class TypedControlData>
const TypedControlData & CLAM::TypedInControl< TypedControlData >::GetLastValue (  )  const [inline]

template<class TypedControlData>
bool CLAM::TypedInControl< TypedControlData >::GetLastValueAsBoolean (  )  const [inline]

ONLY TO USE WHEN TypedControlData == float.

Returns the last TypedControlData (float) received interpreted as a bool.

Definition at line 32 of file TypedInControl.hxx.

References CLAM::TypedInControl< TypedControlData >::mLastValue.

template<class TypedControlData>
int CLAM::TypedInControl< TypedControlData >::GetLastValueAsInteger (  )  const [inline]

ONLY TO USE WHEN TypedControlData == float.

Returns the last TControlData (float) received interpireted as an integer

Definition at line 37 of file TypedInControl.hxx.

References CLAM::TypedInControl< TypedControlData >::mLastValue.

template<class TypedControlData>
bool CLAM::TypedInControl< TypedControlData >::IsConnected (  )  const [inline]

template<class TypedControlData>
virtual const std::type_info& CLAM::TypedInControl< TypedControlData >::ControlType (  )  const [inline, virtual]

Implements CLAM::BaseTypedInControl.

Definition at line 42 of file TypedInControl.hxx.

template<class TypedControlData>
void CLAM::TypedInControl< TypedControlData >::OutControlInterface_AddLink ( TypedOutControl< TypedControlData > &  outControl  )  [inline]

Implementation detail just to be used from OutControl.

Definition at line 82 of file TypedInControl.hxx.

References CLAM::TypedInControl< TypedControlData >::mLinks.

Referenced by CLAM::TypedOutControl< TypedControlData >::AddLink().

template<class TypedControlData>
void CLAM::TypedInControl< TypedControlData >::OutControlInterface_RemoveLink ( TypedOutControl< TypedControlData > &  outControl  )  [inline]

Implementation detail just to be used from OutControl.

Definition at line 88 of file TypedInControl.hxx.

References CLAM::TypedInControl< TypedControlData >::mLinks.

Referenced by CLAM::TypedOutControl< TypedControlData >::RemoveLink().


Member Data Documentation

template<class TypedControlData>
TypedControlData CLAM::TypedInControl< TypedControlData >::mLastValue [protected]

template<class TypedControlData>
std::list< BaseTypedOutControl * > CLAM::TypedInControl< TypedControlData >::mLinks [protected]


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

Generated on Tue Aug 12 22:33:47 2008 for CLAM by  doxygen 1.5.5