クラス Onikiri::EventList

#include <EventList.h>

Onikiri::EventListのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Public 型

typedef ListType::const_iterator ConstIteratorType
typedef ListType::iterator IteratorType
typedef pool_vector< EntryListType
typedef u32 MaskType

Public メソッド

INLINE void AddEvent (const EventPtr &eventPtr, MaskType mask=EVENT_MASK_DEFAULT)
ConstIteratorType begin () const
INLINE void Cancel (MaskType mask=EVENT_MASK_ALL)
INLINE void Clear ()
ConstIteratorType end () const
 EventList ()
int Size () const

Static Public 変数

static const MaskType EVENT_MASK_ALL = ~((MaskType)0)
static const MaskType EVENT_MASK_DEFAULT = 1 << EVENT_MASK_POS_DEFAULT
static const int EVENT_MASK_POS_DEFAULT = 0
static const int EVENT_MASK_POS_USER = 1

構成

struct  Entry

説明

EventList.h45 行で定義されています。


型定義

typedef ListType::const_iterator Onikiri::EventList::ConstIteratorType

EventList.h70 行で定義されています。

typedef ListType::iterator Onikiri::EventList::IteratorType

EventList.h69 行で定義されています。

typedef pool_vector< Entry > Onikiri::EventList::ListType

EventList.h68 行で定義されています。

typedef u32 Onikiri::EventList::MaskType

EventList.h49 行で定義されています。


コンストラクタとデストラクタ

Onikiri::EventList::EventList (  )  [inline]

EventList.h72 行で定義されています。

00073         {
00074             m_inProcess = false;
00075         }


関数

INLINE void Onikiri::EventList::AddEvent ( const EventPtr eventPtr,
MaskType  mask = EVENT_MASK_DEFAULT 
) [inline]

EventList.h77 行で定義されています。

参照先 ASSERT.

参照元 Onikiri::Op::AddEvent()Onikiri::TimeWheelBase::AddEvent().

00078         {
00079             ASSERT( !m_inProcess );
00080             m_list.push_back( Entry( eventPtr, mask ) );
00081         }

Here is the caller graph for this function:

ConstIteratorType Onikiri::EventList::begin (  )  const [inline]

EventList.h115 行で定義されています。

参照元 Onikiri::PriorityEventList::ExtractEvent().

00116         {
00117             return m_list.begin();
00118         }

Here is the caller graph for this function:

INLINE void Onikiri::EventList::Cancel ( MaskType  mask = EVENT_MASK_ALL  )  [inline]

EventList.h84 行で定義されています。

参照先 ASSERTEVENT_MASK_ALL.

参照元 Onikiri::Op::CancelEvent().

00085         {
00086             ASSERT( !m_inProcess );
00087             m_inProcess = true;
00088 
00089             if( mask == EVENT_MASK_ALL ){
00090                 for( ListType::iterator i = m_list.begin(); i != m_list.end(); ++i ){
00091                     i->event->Cancel();
00092                 }
00093                 m_list.clear();
00094             }
00095             else{
00096                 for( ListType::iterator i = m_list.begin(); i != m_list.end(); ++i ){
00097                     if( mask & i->mask ){
00098                         i->event->Cancel();
00099                     }
00100                 }
00101             }
00102             m_inProcess = false;
00103         }

Here is the caller graph for this function:

INLINE void Onikiri::EventList::Clear (  )  [inline]

EventList.h110 行で定義されています。

参照元 Onikiri::Op::ClearEvent()Onikiri::TimeWheelBase::End().

00111         {
00112             m_list.clear();
00113         }

Here is the caller graph for this function:

ConstIteratorType Onikiri::EventList::end (  )  const [inline]

EventList.h120 行で定義されています。

参照元 Onikiri::PriorityEventList::ExtractEvent().

00121         {
00122             return m_list.end();
00123         }

Here is the caller graph for this function:

int Onikiri::EventList::Size (  )  const [inline]

EventList.h105 行で定義されています。

00106         {
00107             return (int)m_list.size();
00108         }


変数

const MaskType Onikiri::EventList::EVENT_MASK_ALL = ~((MaskType)0) [static]

EventList.h54 行で定義されています。

参照元 Cancel().

const MaskType Onikiri::EventList::EVENT_MASK_DEFAULT = 1 << EVENT_MASK_POS_DEFAULT [static]

EventList.h53 行で定義されています。

const int Onikiri::EventList::EVENT_MASK_POS_DEFAULT = 0 [static]

EventList.h50 行で定義されています。

const int Onikiri::EventList::EVENT_MASK_POS_USER = 1 [static]

EventList.h51 行で定義されています。


このクラスの説明は次のファイルから生成されました:
Onikiri2に対してTue Jun 18 14:58:27 2013に生成されました。  doxygen 1.4.7