Classes |
class | PairHandle |
| Class for storing, querying and modifying relations data. More...
|
Public Types |
enum | IfaceType {
IGEOM_IFACE = 0,
IMESH_IFACE,
IFIELD_IFACE,
IREL_IFACE,
FBIGEOM_IFACE
} |
enum | RelationType { ENTITY = 0,
SET,
BOTH
} |
enum | RelationStatus { ACTIVE = 0,
INACTIVE,
NOTEXIST
} |
typedef iBase_ErrorType | Error |
Public Member Functions |
| iRel (const char *options=0) |
| iRel (iRel_Instance instance) |
| ~iRel () |
iRel_Instance | instance () |
iRel::IfaceType | iface_type () const |
Error | getErrorType () |
std::string | getDescription () |
Error | createPair (iBase_Instance iface1, const RelationType ent_or_set1, const IfaceType iface_type1, const RelationStatus status1, iBase_Instance iface2, const RelationType ent_or_set2, const IfaceType iface_type2, const RelationStatus status2, PairHandle *&pair) |
template<typename T , typename U > |
Error | createPair (T &iface1, const RelationType ent_or_set1, const RelationStatus status1, U &iface2, const RelationType ent_or_set2, const RelationStatus status2, PairHandle *&pair) |
Error | findPairs (iBase_Instance iface, std::vector< PairHandle * > &pairs) |
Protected Member Functions |
Error | add_pair (PairHandle *pair) |
Error | remove_pair (PairHandle *pair) |
Private Member Functions |
| iRel (const iRel &) |
void | operator= (const iRel &) |
Private Attributes |
iRel_Instance | mInstance |
bool | iRelInstanceOwner |
std::vector< PairHandle * > | relPairs |
C++ interface to ITAPS iRel interface.
This class is a simple wrapper for the ITAPS iRel interface. The primary benefit to using this class instead of iRel directly is that lists of handles are passed as std::vectors instead of pointers to handle arrays. This file includes both declaration and definition of all iRel class functions, i.e. all functions are inlined. The class can be constructed and destructed in the standard C++ way; the implementation of those functions call into the standard iRel C functions newRel and dtor.
For complete documentation of these functions, see the [http://ftp.mcs.anl.gov/pub/fathom/moab-docs/iRel_8h.html iRel header]
Definition at line 32 of file iRel.hpp.