blocxx
Classes | Public Member Functions | Private Attributes

BLOCXX_NAMESPACE::SelectEngine Class Reference

#include <SelectEngine.hpp>

List of all members.

Classes

struct  Data

Public Member Functions

void addSelectableObject (const Select_t &obj, const SelectableCallbackIFCRef &cb, SelectableCallbackIFC::EEventType eventType)
 Add an object to the set.
bool removeSelectableObject (const Select_t &obj, SelectableCallbackIFC::EEventType eventType)
 return indicates if obj was removed
void go (const Timeout &timeout)
void stop ()

Private Attributes

SortedVectorMap< Select_t, Datam_table
bool m_stopFlag

Detailed Description

Definition at line 54 of file SelectEngine.hpp.


Member Function Documentation

void BLOCXX_NAMESPACE::SelectEngine::addSelectableObject ( const Select_t obj,
const SelectableCallbackIFCRef cb,
SelectableCallbackIFC::EEventType  eventType 
)

Add an object to the set.

If obj is already added, the previous values for cb and eventType will be overwritten

Definition at line 53 of file SelectEngine.cpp.

References BLOCXX_NAMESPACE::SortedVectorMap< Key, T, Compare >::insert(), and m_table.

void BLOCXX_NAMESPACE::SelectEngine::go ( const Timeout timeout)
bool BLOCXX_NAMESPACE::SelectEngine::removeSelectableObject ( const Select_t obj,
SelectableCallbackIFC::EEventType  eventType 
)

return indicates if obj was removed

Definition at line 61 of file SelectEngine.cpp.

References BLOCXX_NAMESPACE::SortedVectorMap< Key, T, Compare >::erase(), and m_table.

void BLOCXX_NAMESPACE::SelectEngine::stop ( )

Definition at line 131 of file SelectEngine.cpp.

References m_stopFlag.

Referenced by BLOCXX_NAMESPACE::SelectEngineStopper::doSelected().


Member Data Documentation

Definition at line 85 of file SelectEngine.hpp.

Referenced by go(), and stop().

Definition at line 83 of file SelectEngine.hpp.

Referenced by addSelectableObject(), go(), and removeSelectableObject().


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