dtUtil::Command< RetT > Class Template Reference

An abstract class for all types which provide a uniform interface for executing Functors. More...

#include <command.h>

Inheritance diagram for dtUtil::Command< RetT >:

dtUtil::Command0< RetT > dtUtil::Command1< RetT, ArgT > dtUtil::Command2< RetT, ArgTMember1, ArgTMember2 >

List of all members.

Public Types

typedef RetT ReturnType

Public Member Functions

 Command ()
virtual ReturnType operator() ()=0

Protected Member Functions

virtual ~Command ()


Detailed Description

template<typename RetT>
class dtUtil::Command< RetT >

An abstract class for all types which provide a uniform interface for executing Functors.

These classes will hold the client-defined arguments. This makes it easy to have a container of Commands which can be executed at a chosen time. This has been proven to be useful when catching GUI events and processing them during the System's preframe so that modifications to the graphics thread can be contolled.

The template parameter should be as follows:


Member Typedef Documentation

template<typename RetT>
typedef RetT dtUtil::Command< RetT >::ReturnType


Constructor & Destructor Documentation

template<typename RetT>
dtUtil::Command< RetT >::Command (  )  [inline]

template<typename RetT>
virtual dtUtil::Command< RetT >::~Command (  )  [inline, protected, virtual]


Member Function Documentation

template<typename RetT>
virtual ReturnType dtUtil::Command< RetT >::operator() (  )  [pure virtual]

Implemented in dtUtil::Command0< RetT >, dtUtil::Command1< RetT, ArgT >, and dtUtil::Command2< RetT, ArgTMember1, ArgTMember2 >.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008