MezzanineEngine 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Mezzanine::Input::DeviceUpdateWorkUnit Class Reference

This is a Mezzanine::Threading::iWorkUnit for the updating of the physics debug drawer. More...

#include <inputmanager.h>

+ Inheritance diagram for Mezzanine::Input::DeviceUpdateWorkUnit:
+ Collaboration diagram for Mezzanine::Input::DeviceUpdateWorkUnit:

Public Member Functions

 DeviceUpdateWorkUnit (InputManager *Target)
 Class constructor. More...
 
virtual ~DeviceUpdateWorkUnit ()
 Class destructor.
 
virtual void DoWork (Threading::DefaultThreadSpecificStorage::Type &CurrentThreadStorage)
 This does any required update of the input devices detected on this system. More...
 
- Public Member Functions inherited from Mezzanine::Threading::DefaultWorkUnit
 DefaultWorkUnit ()
 Simple constructor.
 
virtual ~DefaultWorkUnit ()
 Virtual destructor, doesn't actually do much.
 
virtual void AddDependency (iWorkUnit *NewDependency)
 Force this WorkUnit to Start after another has completed. More...
 
virtual void ClearDependencies ()
 Drop any information about what work units this one depends on.
 
virtual iWorkUnitGetDependency (Whole Index) const
 This is used to iterate of all the dependencies. More...
 
virtual Whole GetDependencyCount () const
 How many other WorkUnits does this one depend on? More...
 
virtual Whole GetDependentCount (FrameScheduler &SchedulerToCount)
 This returns the count workunits that depend on this work unit. More...
 
virtual Whole GetImmediateDependencyCount () const
 Get the amount of dependencies that directly count on this for access purposes. More...
 
virtual Whole GetPerformance () const
 Get the internal rolling average for querying. More...
 
virtual RollingAverage< Whole > & GetPerformanceLog ()
 Get the internal rolling average for querying. More...
 
virtual RunningState GetRunningState () const
 Retrieves the current RunningState of the thread. More...
 
virtual WorkUnitKey GetSortingKey (FrameScheduler &SchedulerToCount)
 Get the sorting metadata. More...
 
virtual bool IsEveryDependencyComplete ()
 Check if this WorkUnit could concievably run right now. More...
 
virtual void operator() (DefaultThreadSpecificStorage::Type &CurrentThreadStorage)
 This does everything required to track metadata and log work. More...
 
virtual void PrepareForNextFrame ()
 This resets the running state and takes any further action required to use the WorkUnit again.
 
virtual void RemoveDependency (iWorkUnit *RemoveDependency)
 Remove a dependency. More...
 
virtual RunningState TakeOwnerShip ()
 Attempts to atomically start the work unit in the current thread. More...
 
- Public Member Functions inherited from Mezzanine::Threading::iWorkUnit
virtual ~iWorkUnit ()
 Virtual destructor.
 

Protected Member Functions

 DeviceUpdateWorkUnit (const DeviceUpdateWorkUnit &Other)
 Protected copy constructor. THIS IS NOT ALLOWED. More...
 
DeviceUpdateWorkUnitoperator= (const DeviceUpdateWorkUnit &Other)
 Protected assignment operator. THIS IS NOT ALLOWED. More...
 

Protected Attributes

InputManagerTargetManager
 A pointer to the manager this work unit is processing. More...
 
- Protected Attributes inherited from Mezzanine::Threading::DefaultWorkUnit
Int32 CurrentRunningState
 This controls do work with this after it has.
 
std::vector< iWorkUnit * > Dependencies
 A collection of of workunits that must be complete before this one can start.
 
DefaultRollingAverage< Whole >
::Type 
PerformanceLog
 A rolling average of execution times.
 

Detailed Description

This is a Mezzanine::Threading::iWorkUnit for the updating of the physics debug drawer.

Definition at line 65 of file inputmanager.h.

Constructor & Destructor Documentation

Mezzanine::Input::DeviceUpdateWorkUnit::DeviceUpdateWorkUnit ( const DeviceUpdateWorkUnit Other)
protected

Protected copy constructor. THIS IS NOT ALLOWED.

Parameters
OtherThe other work unit being copied from. WHICH WILL NEVER HAPPEN.

Definition at line 90 of file inputmanager.cpp.

Mezzanine::Input::DeviceUpdateWorkUnit::DeviceUpdateWorkUnit ( InputManager Target)

Class constructor.

Parameters
TargetThe InputManager this work unit will process during the frame.

Definition at line 96 of file inputmanager.cpp.

Member Function Documentation

void Mezzanine::Input::DeviceUpdateWorkUnit::DoWork ( Threading::DefaultThreadSpecificStorage::Type CurrentThreadStorage)
virtual

This does any required update of the input devices detected on this system.

Parameters
CurrentThreadStorageThe storage class for all resources owned by this work unit during it's execution.

Implements Mezzanine::Threading::iWorkUnit.

Definition at line 105 of file inputmanager.cpp.

DeviceUpdateWorkUnit & Mezzanine::Input::DeviceUpdateWorkUnit::operator= ( const DeviceUpdateWorkUnit Other)
protected

Protected assignment operator. THIS IS NOT ALLOWED.

Parameters
OtherThe other work unit being copied from. WHICH WILL NEVER HAPPEN.

Definition at line 93 of file inputmanager.cpp.

Member Data Documentation

InputManager* Mezzanine::Input::DeviceUpdateWorkUnit::TargetManager
protected

A pointer to the manager this work unit is processing.

Definition at line 70 of file inputmanager.h.


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