Public Types | |
typedef prio2view_t::iterator | iterator |
Peek through the set of high-priority views. | |
Public Member Functions | |
CkViewPrioSorter () | |
~CkViewPrioSorter () | |
bool | isEmpty (void) const |
Return true if we have no stored, unsent views. | |
void | add (LV3D0_ViewMsg *v) |
Add this view to our set. | |
iterator | begin (void) |
iterator | end (void) |
LV3D0_ViewMsg * | extract (const iterator &doomed) |
Extract the corresponding view for this iterator. | |
Private Types | |
typedef std::map < CkViewPrioHolder, char > | prio2view_t |
Private Attributes | |
CkHashtableT< CkViewableID, CkViewPrioHolder > | id2view |
prio2view_t | prio2view |
Definition at line 107 of file lv3d0_server.C.
typedef std::map<CkViewPrioHolder,char> CkViewPrioSorter::prio2view_t [private] |
Definition at line 124 of file lv3d0_server.C.
typedef prio2view_t::iterator CkViewPrioSorter::iterator |
Peek through the set of high-priority views.
Get the iterator v, extract with (*v)
Definition at line 164 of file lv3d0_server.C.
CkViewPrioSorter::CkViewPrioSorter | ( | ) | [inline] |
Definition at line 128 of file lv3d0_server.C.
CkViewPrioSorter::~CkViewPrioSorter | ( | ) | [inline] |
Definition at line 132 of file lv3d0_server.C.
bool CkViewPrioSorter::isEmpty | ( | void | ) | const [inline] |
void CkViewPrioSorter::add | ( | LV3D0_ViewMsg * | v | ) | [inline] |
Add this view to our set.
FIXME: messages may come out of order-- check framenumber
Reimplemented in LV3D0_ClientManager, LV3D0_ClientManager_toMaster, and LV3D0_ClientManager_toClient.
Definition at line 141 of file lv3d0_server.C.
References LV3D_disable_ship_prio, LV3D_disable_ship_replace, LV3D0_ViewMsg::prio, and CkViewPrioHolder::v.
Referenced by LV3D0_ClientManager_toMaster::add().
iterator CkViewPrioSorter::begin | ( | void | ) | [inline] |
Definition at line 165 of file lv3d0_server.C.
iterator CkViewPrioSorter::end | ( | void | ) | [inline] |
Definition at line 166 of file lv3d0_server.C.
LV3D0_ViewMsg* CkViewPrioSorter::extract | ( | const iterator & | doomed | ) | [inline] |
Extract the corresponding view for this iterator.
Often it==begin().
Definition at line 170 of file lv3d0_server.C.
References LV3D0_ViewMsg::id.
Definition at line 120 of file lv3d0_server.C.
prio2view_t CkViewPrioSorter::prio2view [private] |
Definition at line 125 of file lv3d0_server.C.