Pointwise Plugin SDK
|
The structured block to block connection group class. More...
#include <CaeStrConnectionGroup.h>
Public Member Functions | |
PWP_UINT32 | connectionCount () const |
Get the number of connections in the group. More... | |
PWGM_HCNXN | enumConnections (PWP_UINT32 ndx) const |
Get an connection in the group. More... | |
PWGM_HCNXN | firstConnection () const |
Get the first connection in the group. More... | |
virtual | ~CaeStrConnectionGroup () |
Destructor. More... | |
Protected Member Functions | |
virtual PWP_UINT32 | connectionCountImpl () const =0 |
Get the number of connections in the group. More... | |
virtual PWGM_HCNXN | enumConnectionsImpl (PWP_UINT32 ndx) const =0 |
Get a connection in the group. More... | |
The structured block to block connection group class.
The CaeStrConnectionGroup class defines the required interface for a collection of PWGM_HCNXN handles. This interface presents the connection collection as a sequential array. The connections are addressed using an index from 0 to connectionCount() - 1.
The public interface provides three methods; connectionCount(), enumConnections(), and firstConnection(). These methods use two protected virtual methods to implement the behavior.
A connection group subclass must inherit CaeStrConnectionGroup and implement its two pure virtual methods; connectionCountImpl() and enumConnectionsImpl(). This abstraction lets connection group subclasses store the PWGM_HCNXN 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 CaeStrConnectionGroup.h.
|
inlinevirtual |
Destructor.
Definition at line 49 of file CaeStrConnectionGroup.h.
|
inline |
Get the number of connections in the group.
Definition at line 57 of file CaeStrConnectionGroup.h.
References connectionCountImpl().
|
protectedpure virtual |
Get the number of connections in the group.
Connection group subclasses must implement this pure virtual method.
Referenced by connectionCount().
|
inline |
Get an connection in the group.
ndx | The connection's sequential index. |
Definition at line 68 of file CaeStrConnectionGroup.h.
References enumConnectionsImpl().
Referenced by CaeStrConnection::moveFirst(), and CaeStrConnection::moveTo().
|
protectedpure virtual |
Get a connection in the group.
Connection group subclasses must implement this pure virtual method.
ndx | The connection's sequential index. |
Referenced by enumConnections(), and firstConnection().
|
inline |
Get the first connection in the group.
Definition at line 79 of file CaeStrConnectionGroup.h.
References enumConnectionsImpl().