CLAM-Development  1.1
Public Member Functions | Protected Attributes
CLAM::TypedInControl< TypedControlData > Class Template Reference

#include <TypedInControl.hxx>

List of all members.

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

Detailed Description

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

Definition at line 18 of file TypedInControl.hxx.


Constructor & Destructor Documentation

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

Definition at line 51 of file TypedInControl.hxx.

template<class TypedControlData >
CLAM::TypedInControl< TypedControlData >::~TypedInControl ( )

Definition at line 57 of file TypedInControl.hxx.


Member Function Documentation

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 >::DoControl ( const TypedControlData &  val)
template<class TypedControlData >
const TypedControlData & CLAM::TypedInControl< TypedControlData >::GetLastValue ( ) const

Definition at line 70 of file TypedInControl.hxx.

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

Definition at line 76 of file TypedInControl.hxx.

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

Implementation detail just to be used from OutControl.

Definition at line 82 of file TypedInControl.hxx.

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

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

Implementation detail just to be used from OutControl.

Definition at line 88 of file TypedInControl.hxx.

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]

Definition at line 23 of file TypedInControl.hxx.


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