Pointwise Plugin SDK
|
The structured block to block connection class. More...
#include <CaeStrConnection.h>
Public Member Functions | |
CaeStrConnection () | |
Default constructor. More... | |
CaeStrConnection (const CaeStrConnection &src) | |
Copy constructor. More... | |
CaeStrConnection (const CaeStrConnectionGroup &group, PWP_UINT32 ndx=0) | |
Group and connection index constructor. More... | |
bool | data (PWGM_CNXNDATA &data) const |
Get information about the connection. More... | |
PWP_UINT32 | index () const |
Get the connection's index in the group. More... | |
bool | isValid () const |
Determines a connection's validity. More... | |
CaeStrGridModel | model () const |
Gets the structured grid model of which this connection is a member. More... | |
PWP_UINT32 | modelIndex () const |
Get the connection's model index. More... | |
CaeStrConnection & | moveFirst () |
Rebinds an instance to the first connection in the current group. More... | |
CaeStrConnection & | moveFirst (const CaeStrConnectionGroup &group) |
Rebinds an instance to the first connection in the group. More... | |
CaeStrConnection & | moveNext () |
Rebinds an instance to the next connection in the group. More... | |
CaeStrConnection & | movePrev () |
Rebinds an instance to the previous connection in the group. More... | |
CaeStrConnection & | moveTo (const CaeStrConnectionGroup &group, PWP_UINT32 ndx) |
Rebinds an instance to a specific group and connection. More... | |
CaeStrConnection & | moveTo (PWP_UINT32 ndx) |
Rebinds an instance to a specific connection within the current group. More... | |
operator PWGM_HCNXN () const | |
The PWGM_HCNXN cast operator. More... | |
bool | operator!= (const CaeStrConnection &rhs) const |
Compares two CaeStrConnection instances for inequality. More... | |
CaeStrConnection & | operator++ () |
Prefix increment to the next connection in the group. More... | |
CaeStrConnection | operator++ (int) |
Postfix increment to the next connection in the group. More... | |
CaeStrConnection & | operator-- () |
Prefix decrement to the previous connection in the group. More... | |
CaeStrConnection | operator-- (int) |
Postfix decrement to the previous connection in the group. More... | |
bool | operator< (const CaeStrConnection &rhs) const |
Compares the relative order of two CaeStrConnection instances. More... | |
CaeStrConnection & | operator= (const CaeStrConnection &rhs) |
Assignment operator. More... | |
bool | operator== (const CaeStrConnection &rhs) const |
Compares two CaeStrConnection instances for equality. More... | |
bool | operator> (const PWGM_HCNXN &rhs) |
Compares the relative order of two CaeStrConnection instances. More... | |
~CaeStrConnection () | |
Destructor. More... | |
Protected Attributes | |
const CaeStrConnectionGroup * | group_ |
The owning connection group. More... | |
PWP_UINT32 | groupNdx_ |
The current index in the group's index space. More... | |
PWGM_HCNXN | h_ |
The bound PWGM_HCNXN. More... | |
The structured block to block connection class.
The CaeStrConnection class represents a single, ijk-structured grid model connection. The connections are indexed starting from 0 to CaeStrConnectionGroup::elementCount() - 1.
A CaeStrConnection object is aware of its relative position in its connection group. As a result, a given connection object can be moved (iterated) to its previous or next neighbor connection. It can also be moved to the first connection or to a connection at a given index. After being moved, a CaeStrConnection object will return information about the grid connection at its current position.
The following snippets are extracted from the structured XML sample plugin (CaeStrXMLCPP).
During the execution of the CaeStrXMLCPP::writeBlock()
method, the CaeStrXMLCPP plugin writes a block's connections with a call to the CaeStrXMLCPP::writeBlkConnections()
method. First, it writes an XML <connections>
tag. Then it moves through the connections one by one and calls the CaeStrXMLCPP::writeConnectionData()
method. Finally, a closing </connections>
tag is written.
CaeStrXMLCPP::writeConnectionData()
writes an XML <cnxn>
tag. Next, the connection's forward and reverse block to block links are written with two calls to CaeStrXMLCPP::writeLink(). Finally, a closing </cnxn>
tag is written.
CaeStrXMLCPP::writeLink()
writes an XML <link>
tag. Next, the link's ijk range and transform are written with calls to the CaeStrXMLCPP::writeRange() and CaeStrXMLCPP::writeTransform() methods. Finally, a closing </link>
tag is written.
CaeStrXMLCPP::writeRange()
writes a self-closed XML <range
/> tag.
CaeStrXMLCPP::writeTransform()
writes a self-closed XML <xform>
tag.
Definition at line 66 of file CaeStrConnection.h.
|
inline |
Default constructor.
Constructs an invalid connection.
Definition at line 75 of file CaeStrConnection.h.
References h_.
|
inline |
Group and connection index constructor.
Constructs an structured connection object bound to the connection at the specified index.
group | The owning structured connection group. |
ndx | The connection's index within the group. |
Definition at line 87 of file CaeStrConnection.h.
|
inline |
Copy constructor.
Binds this connection to the same connection as src.
src | An connection instance. |
Definition at line 97 of file CaeStrConnection.h.
|
inline |
Destructor.
Definition at line 104 of file CaeStrConnection.h.
|
inline |
Get information about the connection.
data | The PWGM_BNDRYDATA buffer. |
Definition at line 138 of file CaeStrConnection.h.
References h_, and PwConnection().
|
inline |
Get the connection's index in the group.
Definition at line 118 of file CaeStrConnection.h.
References groupNdx_.
|
inline |
Determines a connection's validity.
Definition at line 144 of file CaeStrConnection.h.
References h_, and PWGM_HCNXN_ISVALID.
|
inline |
Gets the structured grid model of which this connection is a member.
Definition at line 108 of file CaeStrConnection.h.
References h_, and PWGM_HCNXN_MODEL.
|
inline |
Get the connection's model index.
Definition at line 129 of file CaeStrConnection.h.
References h_, and PWGM_HCNXN_ID.
|
inline |
Rebinds an instance to the first connection in the current group.
Definition at line 208 of file CaeStrConnection.h.
References CaeStrConnectionGroup::enumConnections(), group_, groupNdx_, and h_.
|
inline |
Rebinds an instance to the first connection in the group.
group | The connection group. |
Definition at line 197 of file CaeStrConnection.h.
|
inline |
Rebinds an instance to the next connection in the group.
Definition at line 223 of file CaeStrConnection.h.
|
inline |
Rebinds an instance to the previous connection in the group.
Definition at line 259 of file CaeStrConnection.h.
|
inline |
Rebinds an instance to a specific group and connection.
group | The connection group. |
ndx | The connection's index in the group's index space. |
Definition at line 169 of file CaeStrConnection.h.
References group_.
Referenced by CaeStrConnection(), moveFirst(), moveNext(), movePrev(), operator++(), and operator--().
|
inline |
Rebinds an instance to a specific connection within the current group.
ndx | The connection's index in the group's index space. |
Definition at line 182 of file CaeStrConnection.h.
References CaeStrConnectionGroup::enumConnections(), group_, groupNdx_, and h_.
|
inline |
|
inline |
Compares two CaeStrConnection instances for inequality.
Definition at line 306 of file CaeStrConnection.h.
|
inline |
Prefix increment to the next connection in the group.
Definition at line 235 of file CaeStrConnection.h.
|
inline |
Postfix increment to the next connection in the group.
Definition at line 246 of file CaeStrConnection.h.
|
inline |
Prefix decrement to the previous connection in the group.
Definition at line 271 of file CaeStrConnection.h.
|
inline |
Postfix decrement to the previous connection in the group.
Definition at line 282 of file CaeStrConnection.h.
|
inline |
Compares the relative order of two CaeStrConnection instances.
Definition at line 318 of file CaeStrConnection.h.
|
inline |
Assignment operator.
Rebind this connection to the same connection as rhs.
rhs | A connection instance. |
Definition at line 154 of file CaeStrConnection.h.
|
inline |
Compares two CaeStrConnection instances for equality.
Definition at line 297 of file CaeStrConnection.h.
|
inline |
Compares the relative order of two CaeStrConnection instances.
Definition at line 332 of file CaeStrConnection.h.
|
protected |
The owning connection group.
Definition at line 344 of file CaeStrConnection.h.
Referenced by CaeStrConnection(), moveFirst(), moveTo(), operator<(), operator=(), and operator==().
|
protected |
The current index in the group's index space.
Definition at line 346 of file CaeStrConnection.h.
Referenced by CaeStrConnection(), index(), moveFirst(), moveNext(), movePrev(), moveTo(), operator++(), operator--(), and operator=().
|
protected |
The bound PWGM_HCNXN.
Definition at line 345 of file CaeStrConnection.h.
Referenced by CaeStrConnection(), data(), isValid(), model(), modelIndex(), moveFirst(), moveTo(), operator PWGM_HCNXN(), operator<(), operator=(), and operator==().