Nui
Public Member Functions | List of all members
Nui::Event Class Reference

#include <event.hpp>

Public Member Functions

 Event (std::function< bool(std::size_t eventId)> action, std::function< bool()> valid=[] { return true;})
 
 Event (Event const &)=delete
 
 Event (Event &&)=default
 
Eventoperator= (Event const &)=delete
 
Eventoperator= (Event &&)=default
 
 operator bool () const
 
bool operator() (std::size_t eventId) const
 

Constructor & Destructor Documentation

◆ Event() [1/3]

Nui::Event::Event ( std::function< bool(std::size_t eventId)>  action,
std::function< bool()>  valid = [] { return true; } 
)
inline

◆ Event() [2/3]

Nui::Event::Event ( Event const &  )
delete

◆ Event() [3/3]

Nui::Event::Event ( Event &&  )
default

Member Function Documentation

◆ operator bool()

Nui::Event::operator bool ( ) const
inline

◆ operator()()

bool Nui::Event::operator() ( std::size_t  eventId) const
inline

◆ operator=() [1/2]

Event& Nui::Event::operator= ( Event &&  )
default

◆ operator=() [2/2]

Event& Nui::Event::operator= ( Event const &  )
delete

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