#include <debug-conv++.h>
Public Member Functions | |
CpdListAccessor () | |
virtual | ~CpdListAccessor () |
virtual const char * | getPath (void) const =0 |
Return the CpdList path CCS clients should use to access this data. | |
virtual size_t | getLength (void) const =0 |
Return the length of this CpdList. | |
virtual bool | checkBoundary (void) const |
Does this CpdList requires boundary checking? | |
virtual void | pup (PUP::er &p, CpdListItemsRequest &req)=0 |
Pup the items listed in this request. Be sure to call beginItem between items! | |
Protected Member Functions | |
void | beginItem (PUP::er &p, int itemNo) |
Subclasses must call this before pupping each requested item. | |
Protected Attributes | |
bool | checkBound |
Decides if this CpdList requires boundary checking. |
To make some data available via the CpdList interface, you make a subclass of this class (possibly CpdSimpleListAccessor), and pass it to CpdListRegister, below.
Definition at line 15 of file debug-conv++.h.
CpdListAccessor::CpdListAccessor | ( | ) | [inline] |
Definition at line 26 of file debug-conv++.h.
CpdListAccessor::~CpdListAccessor | ( | ) | [virtual] |
Definition at line 6 of file debug-conv++.C.
Subclasses must call this before pupping each requested item.
This inserts a marker to allow the client to distinguish between different CpdList items.
Definition at line 18 of file debug-conv++.C.
References CpdListBeginItem_impl().
Referenced by CpdList_arrayElements::add(), CpdList_arrayElementNames::add(), CpdList_object::add(), CpdList_objectNames::add(), CpdSimpleListAccessor< T >::pup(), CpdList_introspect::pup(), CpdList_msgStack::pup(), CpdList_message::pup(), CpdList_localQ::pup(), and CpdList_localQ::pupSingleMessage().
virtual const char* CpdListAccessor::getPath | ( | void | ) | const [pure virtual] |
Return the CpdList path CCS clients should use to access this data.
Implemented in CpdList_objectNames, CpdList_object, CpdList_arrayElementNames, CpdList_arrayElements, CpdList_localQ, CpdList_message, CpdList_msgStack, CpdListAccessor_c, CpdSimpleListAccessor< T >, and CpdList_introspect.
Referenced by CpdList_ccs_list_items_fmt(), CpdList_ccs_list_items_txt(), CpdListRegister(), and CpdList_introspect::pup().
virtual size_t CpdListAccessor::getLength | ( | void | ) | const [pure virtual] |
Return the length of this CpdList.
Implemented in CpdList_objectNames, CpdList_object, CpdList_arrayElementNames, CpdList_arrayElements, CpdList_localQ, CpdList_message, CpdList_msgStack, CpdListAccessor_c, CpdSimpleListAccessor< T >, and CpdList_introspect.
Referenced by CpdList_ccs_list_len(), and CpdListBoundsCheck().
virtual bool CpdListAccessor::checkBoundary | ( | void | ) | const [inline, virtual] |
Does this CpdList requires boundary checking?
Definition at line 33 of file debug-conv++.h.
References checkBound.
Referenced by CpdListBoundsCheck().
virtual void CpdListAccessor::pup | ( | PUP::er & | p, | |
CpdListItemsRequest & | req | |||
) | [pure virtual] |
Pup the items listed in this request. Be sure to call beginItem between items!
Implemented in CpdList_objectNames, CpdList_object, CpdList_arrayElementNames, CpdList_arrayElements, CpdList_localQ, CpdList_message, CpdList_msgStack, CpdListAccessor_c, CpdSimpleListAccessor< T >, and CpdList_introspect.
Referenced by pupCpd().
bool CpdListAccessor::checkBound [protected] |
Decides if this CpdList requires boundary checking.
Definition at line 24 of file debug-conv++.h.
Referenced by checkBoundary(), and CpdListAccessor_c::CpdListAccessor_c().