Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename ParameterType1, typename ParameterType2>
class Enlighten::WorkerFunctionTwoParametersCommand

    └>Enlighten::Command

Command to execute a function in the IUpdateManagerWorker interface with two parameters.

Variables

NameDescription
void(IUpdateManagerWorker::* m_Function)(ParameterType1, ParameterType2)

Function pointer to worker function to call.

GeoStd::RemoveConst< typename GeoStd::RemoveReference< ParameterType1 >::Type >::Type m_Parameter1

first parameter to pass

GeoStd::RemoveConst< typename GeoStd::RemoveReference< ParameterType2 >::Type >::Type m_Parameter2

second parameter to pass

Functions

NameDescription
Execute(IUpdateManagerWorker *)

Function which actually executes the command, calling the function and passing the parameter.

Execute(IUpdateManagerWorker *)

Function called when the command is executed, which will happen on the worker thread if one is running.

WorkerFunctionTwoParametersCommand(void(IUpdateManagerWorker::*)(ParameterType1, ParameterType2), ParameterType1, ParameterType2)

Constructor, taking a function pointer and a parameter.


Anchor
a83fb7b4f2f29bfd549c2fe9d24dede7f
a83fb7b4f2f29bfd549c2fe9d24dede7f

virtual void Enlighten::WorkerFunctionTwoParametersCommand< ParameterType1, ParameterType2 >::Execute

...

public: virtual void Execute
(
    IUpdateManagerWorker * worker
)

...

Function which actually executes the command, calling the function and passing the parameter.


Anchor
a7f0cbf451feee3adc7d42c4f89173935
a7f0cbf451feee3adc7d42c4f89173935

virtual void Enlighten::Command::Execute

...

public: virtual void Execute
(
    IUpdateManagerWorker * worker
)

...

Function called when the command is executed, which will happen on the worker thread if one is running.


Anchor
af1b6256ea9ac41593e4be2e9144c0897
af1b6256ea9ac41593e4be2e9144c0897

Enlighten::WorkerFunctionTwoParametersCommand< ParameterType1, ParameterType2 >::WorkerFunctionTwoParametersCommand

...

public: WorkerFunctionTwoParametersCommand
(
    void(IUpdateManagerWorker::*)(ParameterType1, ParameterType2) function,
    ParameterType1 parameter1,
    ParameterType2 parameter2
)

...

Constructor, taking a function pointer and a parameter.