Pointwise Plugin SDK
|
The structured boundary group class. More...
#include <CaeStrBoundaryGroup.h>
Public Member Functions | |
PWP_UINT32 | boundaryCount () const |
Get the number of boundaries in the group. More... | |
PWGM_HBNDRY | enumBoundaries (PWP_UINT32 ndx) const |
Get a boundary in the group. More... | |
PWGM_HBNDRY | firstBoundary () const |
Get the first boundary in the group. More... | |
virtual | ~CaeStrBoundaryGroup () |
Destructor. More... | |
Protected Member Functions | |
virtual PWP_UINT32 | boundaryCountImpl () const =0 |
Get the number of boundaries in the group. More... | |
virtual PWGM_HBNDRY | enumBoundariesImpl (PWP_UINT32 ndx) const =0 |
Get a boundary in the group. More... | |
The structured boundary group class.
The CaeStrBoundaryGroup class defines the required interface for a collection of PWGM_HBNDRY handles. This interface presents the boundary collection as a sequential array. The boundaries are addressed using an index from 0 to boundaryCount() - 1.
The public interface provides three methods; boundaryCount(), enumBoundaries(), and firstBoundary(). These methods use two protected virtual methods to implement the behavior.
A boundary group subclass must inherit CaeStrBoundaryGroup and implement its two pure virtual methods; boundaryCountImpl() and enumBoundariesImpl(). This abstraction lets boundary group subclasses store the PWGM_HBNDRY handles any way it needs as long as they can be addressed sequentially.
The following snippet is extracted from CaeStrBlock.
Definition at line 45 of file CaeStrBoundaryGroup.h.
|
inlinevirtual |
Destructor.
Definition at line 49 of file CaeStrBoundaryGroup.h.
|
inline |
Get the number of boundaries in the group.
Definition at line 57 of file CaeStrBoundaryGroup.h.
References boundaryCountImpl().
|
protectedpure virtual |
Get the number of boundaries in the group.
Boundary group subclasses must implement this pure virtual method.
Referenced by boundaryCount().
|
inline |
Get a boundary in the group.
ndx | The boundary's sequential index. |
Definition at line 68 of file CaeStrBoundaryGroup.h.
References enumBoundariesImpl().
Referenced by CaeStrBoundary::moveFirst(), and CaeStrBoundary::moveTo().
|
protectedpure virtual |
Get a boundary in the group.
Boundary group subclasses must implement this pure virtual method.
ndx | The boundary's sequential index. |
Referenced by enumBoundaries(), and firstBoundary().
|
inline |
Get the first boundary in the group.
Definition at line 79 of file CaeStrBoundaryGroup.h.
References enumBoundariesImpl().