SDL++
C++wrapperfortheSDLlibrary.

sdl::event::MultiComparator< Device, EventType, Ids > Struct Template Reference

Recurse through the Device list checking to see if the SDL_Event structure is correct for any of them. More...

#include <MultiComparator.h>

List of all members.

Static Public Member Functions

static bool compare (const SDL_Event *event)

Detailed Description

template<typename Device, int EventType, int... Ids>
struct sdl::event::MultiComparator< Device, EventType, Ids >

Recurse through the Device list checking to see if the SDL_Event structure is correct for any of them.

The main specialization that recurses through the Devices comparing them to the SDL_Event structure.

The recursion's terminal specialization.

Template Parameters:
DeviceThe type of device being compared.
EventTypeThe specific event type.
IdsThe list of Devices ids.
DeviceThe type of device being compared.
EventTypeThe specific event type.
DeviceThe type of device being compared.
EventTypeThe specific event type.
IdThe Id to check.
IdsThe list of Ids.

Definition at line 37 of file MultiComparator.h.


Member Function Documentation

template<typename Device , int EventType, int... Ids>
static bool sdl::event::MultiComparator< Device, EventType, Ids >::compare ( const SDL_Event *  event) [inline, static]

Determines if the SDL_Event structure is correct for the devices.

Parameters:
eventThe SDL_Event structure to check.
Returns:
True if any of the devices are correct for the SDL_Event structure.

Definition at line 45 of file MultiComparator.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs