Pointwise Plugin SDK
|
The unstructured element group class. More...
#include <CaeUnsElementGroup.h>
Public Member Functions | |
PWP_UINT32 | elementCount (PWGM_ELEMCOUNTS *pDetails=0) const |
Get the number of elements in the group. More... | |
PWGM_HELEMENT | enumElements (PWP_UINT32 ndx) const |
Get an element in the group. More... | |
PWGM_HELEMENT | firstElement () const |
Get the first element in the group. More... | |
virtual | ~CaeUnsElementGroup () |
Destructor. More... | |
Protected Member Functions | |
virtual PWP_UINT32 | elementCountImpl (PWGM_ELEMCOUNTS *pDetails) const =0 |
Get the number of elements in the group. More... | |
virtual PWGM_HELEMENT | enumElementsImpl (PWP_UINT32 ndx) const =0 |
Get an element in the group. More... | |
The unstructured element group class.
The CaeUnsElementGroup class defines the required interface for a collection of PWGM_HELEMENT handles. This interface presents the element collection as a sequential array. The elements are addressed using an index from 0 to elementCount() - 1.
The public interface provides three methods; elementCount(), enumElements(), and firstElement(). These methods use two protected virtual methods to implement the behavior.
An element group subclass must inherit CaeUnsElementGroup and implement its two pure virtual methods; elementCountImpl() and enumElementsImpl(). This abstraction lets element group subclasses store the PWGM_HELEMENT handles any way it needs as long as they can be addressed sequentially.
The following snippet is extracted from CaeUnsBlock.
Definition at line 44 of file CaeUnsElementGroup.h.
|
inlinevirtual |
Destructor.
Definition at line 48 of file CaeUnsElementGroup.h.
|
inline |
Get the number of elements in the group.
pDetails | Optional pointer to a PWGM_ELEMCOUNTS buffer. If provided, pDetails receives the breakdown of element counts by type. |
Definition at line 59 of file CaeUnsElementGroup.h.
References elementCountImpl().
|
protectedpure virtual |
Get the number of elements in the group.
Element group subclasses must implement this pure virtual method.
pDetails | Optional pointer to a PWGM_ELEMCOUNTS buffer. If provided, pDetails receives the breakdown of element counts by type. |
Referenced by elementCount().
|
inline |
Get an element in the group.
ndx | The element's sequential index. |
Definition at line 70 of file CaeUnsElementGroup.h.
References enumElementsImpl().
Referenced by CaeUnsElement::CaeUnsElement(), CaeUnsElement::moveFirst(), CaeUnsElement::moveNext(), CaeUnsElement::movePrev(), CaeUnsElement::moveTo(), CaeUnsElement::operator++(), and CaeUnsElement::operator--().
|
protectedpure virtual |
Get an element in the group.
Element group subclasses must implement this pure virtual method.
ndx | The element's sequential index. |
Referenced by enumElements(), and firstElement().
|
inline |
Get the first element in the group.
Definition at line 81 of file CaeUnsElementGroup.h.
References enumElementsImpl().