Stg::Model::cb_t Class Reference

#include <stage.hh>

Public Member Functions

 cb_t ()
 
 cb_t (model_callback_t cb, void *arg)
 
 cb_t (world_callback_t cb, void *arg)
 
bool operator< (const cb_t &other) const
 
bool operator== (const cb_t &other) const
 

Public Attributes

void * arg
 
model_callback_t callback
 

Detailed Description

container for a callback function and a single argument, so they can be stored together in a list with a single pointer.

Constructor & Destructor Documentation

◆ cb_t() [1/3]

Stg::Model::cb_t::cb_t ( model_callback_t  cb,
void *  arg 
)
inline

◆ cb_t() [2/3]

Stg::Model::cb_t::cb_t ( world_callback_t  cb,
void *  arg 
)
inline

◆ cb_t() [3/3]

Stg::Model::cb_t::cb_t ( )
inline

Member Function Documentation

◆ operator<()

bool Stg::Model::cb_t::operator< ( const cb_t other) const
inline

for placing in a sorted container

◆ operator==()

bool Stg::Model::cb_t::operator== ( const cb_t other) const
inline

for searching in a sorted container

Member Data Documentation

◆ arg

void* Stg::Model::cb_t::arg

◆ callback

model_callback_t Stg::Model::cb_t::callback

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