PPL Logo

CkViewPrioSorter Class Reference

Stores a set of view messages: More...

Inheritance diagram for CkViewPrioSorter:

Inheritance graph
[legend]
Collaboration diagram for CkViewPrioSorter:

Collaboration graph
[legend]

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_ViewMsgextract (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

Detailed Description

Stores a set of view messages:

Definition at line 107 of file lv3d0_server.C.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

CkViewPrioSorter::CkViewPrioSorter (  )  [inline]

Definition at line 128 of file lv3d0_server.C.

CkViewPrioSorter::~CkViewPrioSorter (  )  [inline]

Definition at line 132 of file lv3d0_server.C.


Member Function Documentation

bool CkViewPrioSorter::isEmpty ( void   )  const [inline]

Return true if we have no stored, unsent views.

Definition at line 138 of file lv3d0_server.C.

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().

Here is the caller graph for this function:

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.


Field Documentation

Definition at line 120 of file lv3d0_server.C.

Definition at line 125 of file lv3d0_server.C.


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

Generated on Mon Sep 21 08:21:44 2020 for Charm++ by  doxygen 1.5.5