MeshKit  1.0
iRel::PairHandle Class Reference

Class for storing, querying and modifying relations data. More...

#include <iRel.hpp>

List of all members.

Public Member Functions

 PairHandle (iRel *instance, iBase_Instance iface1=NULL, RelationType rtype1=ENTITY, IfaceType itype1=IREL_IFACE, RelationStatus status1=ACTIVE, iBase_Instance iface2=NULL, RelationType rtype2=ENTITY, IfaceType itype2=IREL_IFACE, RelationStatus status2=ACTIVE)
 PairHandle (iRel *instance, iRel_PairHandle ph)
iRel_PairHandle instance ()
 ~PairHandle ()
iBase_Instance get_iface (int i)
IfaceType get_iface_type (int i)
RelationType get_rel_type (int i)
Error changeType (RelationType ent_or_set1, RelationType ent_or_set2)
Error setEntEntRelation (iBase_EntityHandle ent1, iBase_EntityHandle ent2)
Error setEntSetRelation (iBase_EntityHandle ent1, iBase_EntitySetHandle entset2)
Error setSetEntRelation (iBase_EntitySetHandle entset1, iBase_EntityHandle ent2)
Error setSetSetRelation (iBase_EntitySetHandle entset1, iBase_EntitySetHandle entset2)
Error setEntArrEntArrRelation (iBase_EntityHandle *ent_array_1, int num_ent1, iBase_EntityHandle *ent_array_2, int num_ent2)
Error setSetArrEntArrRelation (iBase_EntitySetHandle *entset_array_1, int num_ent1, iBase_EntityHandle *ent_array_2, int num_ent2)
Error setEntArrSetArrRelation (iBase_EntityHandle *ent_array_1, int num_ent1, iBase_EntitySetHandle *entset_array_2, int num_ent2)
Error setSetArrSetArrRelation (iBase_EntitySetHandle *entset_array_1, int num_ent1, iBase_EntitySetHandle *entset_array_2, int num_ent2)
Error getEntEntRelation (iBase_EntityHandle ent1, bool switch_order, iBase_EntityHandle &ent2)
Error getEntSetRelation (iBase_EntityHandle ent1, bool switch_order, iBase_EntitySetHandle &entset2)
Error getSetEntRelation (iBase_EntitySetHandle entset1, bool switch_order, iBase_EntityHandle &ent2)
Error getSetSetRelation (iBase_EntitySetHandle entset1, bool switch_order, iBase_EntitySetHandle &entset2)
Error getEntSetIterRelation (iBase_EntityHandle ent1, bool switch_order, iBase_EntityIterator &entset2)
Error getEntArrEntArrRelation (iBase_EntityHandle *ent_array_1, int ent_array_1_size, bool switch_order, std::vector< iBase_EntityHandle > &ent_array_2)
Error getEntArrSetArrRelation (iBase_EntityHandle *ent_array_1, int ent_array_1_size, bool switch_order, std::vector< iBase_EntitySetHandle > &entset_array_2)
Error getSetArrEntArrRelation (iBase_EntitySetHandle *entset_array_1, int entset_array_1_size, bool switch_order, std::vector< iBase_EntityHandle > &ent_array_2)
Error getSetArrSetArrRelation (iBase_EntitySetHandle *entset_array_1, int entset_array_1_size, bool switch_order, std::vector< iBase_EntitySetHandle > &entset_array_2)
Error getEntArrSetIterArrRelation (iBase_EntityHandle *ent_array_1, int ent_array_1_size, bool switch_order, std::vector< iBase_EntityIterator > &entiter)
Error inferAllRelations ()
Error inferAllRelationsAndType ()
Error inferEntRelations (iBase_EntityHandle entity, int iface_no)
Error inferSetRelations (iBase_EntitySetHandle entity_set, int iface_no)
Error inferEntArrRelations (iBase_EntityHandle *entities, int entities_size, int iface_no)
Error inferSetArrRelations (iBase_EntitySetHandle *entity_sets, int entities_size, int iface_no)

Private Attributes

iRelirelInstance
iBase_Instance iFaces [2]
IfaceType iFaceTypes [2]
RelationType relTypes [2]
RelationStatus relStatuses [2]
iRel_PairHandle irelPair
bool pairOwner

Friends

class iRel

Detailed Description

Class for storing, querying and modifying relations data.

This class encapsulates most of the functions for querying relations in the C++ version of iRel.

Examples:
example_volice.cpp.

Definition at line 70 of file iRel.hpp.


Constructor & Destructor Documentation

PairHandle ( iRel instance,
iBase_Instance  iface1 = NULL,
RelationType  rtype1 = ENTITY,
IfaceType  itype1 = IREL_IFACE,
RelationStatus  status1 = ACTIVE,
iBase_Instance  iface2 = NULL,
RelationType  rtype2 = ENTITY,
IfaceType  itype2 = IREL_IFACE,
RelationStatus  status2 = ACTIVE 
) [inline]

Definition at line 361 of file iRel.hpp.

PairHandle ( iRel instance,
iRel_PairHandle  ph 
) [inline]

Definition at line 388 of file iRel.hpp.

~PairHandle ( ) [inline]

Definition at line 407 of file iRel.hpp.


Member Function Documentation

iRel::Error changeType ( RelationType  ent_or_set1,
RelationType  ent_or_set2 
) [inline]

Definition at line 435 of file iRel.hpp.

iBase_Instance get_iface ( int  i) [inline]

Definition at line 417 of file iRel.hpp.

iRel::IfaceType get_iface_type ( int  i) [inline]

Definition at line 423 of file iRel.hpp.

iRel::RelationType get_rel_type ( int  i) [inline]

Definition at line 429 of file iRel.hpp.

iRel::Error getEntArrEntArrRelation ( iBase_EntityHandle *  ent_array_1,
int  ent_array_1_size,
bool  switch_order,
std::vector< iBase_EntityHandle > &  ent_array_2 
) [inline]

Definition at line 575 of file iRel.hpp.

iRel::Error getEntArrSetArrRelation ( iBase_EntityHandle *  ent_array_1,
int  ent_array_1_size,
bool  switch_order,
std::vector< iBase_EntitySetHandle > &  entset_array_2 
) [inline]

Definition at line 593 of file iRel.hpp.

iRel::Error getEntArrSetIterArrRelation ( iBase_EntityHandle *  ent_array_1,
int  ent_array_1_size,
bool  switch_order,
std::vector< iBase_EntityIterator > &  entiter 
) [inline]

Definition at line 647 of file iRel.hpp.

iRel::Error getEntEntRelation ( iBase_EntityHandle  ent1,
bool  switch_order,
iBase_EntityHandle &  ent2 
) [inline]

Definition at line 525 of file iRel.hpp.

iRel::Error getEntSetIterRelation ( iBase_EntityHandle  ent1,
bool  switch_order,
iBase_EntityIterator &  entset2 
) [inline]

Definition at line 565 of file iRel.hpp.

iRel::Error getEntSetRelation ( iBase_EntityHandle  ent1,
bool  switch_order,
iBase_EntitySetHandle &  entset2 
) [inline]

Definition at line 535 of file iRel.hpp.

iRel::Error getSetArrEntArrRelation ( iBase_EntitySetHandle *  entset_array_1,
int  entset_array_1_size,
bool  switch_order,
std::vector< iBase_EntityHandle > &  ent_array_2 
) [inline]

Definition at line 611 of file iRel.hpp.

iRel::Error getSetArrSetArrRelation ( iBase_EntitySetHandle *  entset_array_1,
int  entset_array_1_size,
bool  switch_order,
std::vector< iBase_EntitySetHandle > &  entset_array_2 
) [inline]

Definition at line 629 of file iRel.hpp.

iRel::Error getSetEntRelation ( iBase_EntitySetHandle  entset1,
bool  switch_order,
iBase_EntityHandle &  ent2 
) [inline]

Definition at line 545 of file iRel.hpp.

iRel::Error getSetSetRelation ( iBase_EntitySetHandle  entset1,
bool  switch_order,
iBase_EntitySetHandle &  entset2 
) [inline]

Definition at line 555 of file iRel.hpp.

Definition at line 666 of file iRel.hpp.

Definition at line 673 of file iRel.hpp.

iRel::Error inferEntArrRelations ( iBase_EntityHandle *  entities,
int  entities_size,
int  iface_no 
) [inline]

Definition at line 699 of file iRel.hpp.

iRel::Error inferEntRelations ( iBase_EntityHandle  entity,
int  iface_no 
) [inline]

Definition at line 681 of file iRel.hpp.

iRel::Error inferSetArrRelations ( iBase_EntitySetHandle *  entity_sets,
int  entities_size,
int  iface_no 
) [inline]

Definition at line 709 of file iRel.hpp.

iRel::Error inferSetRelations ( iBase_EntitySetHandle  entity_set,
int  iface_no 
) [inline]

Definition at line 690 of file iRel.hpp.

iRel_PairHandle instance ( ) [inline]

Definition at line 85 of file iRel.hpp.

iRel::Error setEntArrEntArrRelation ( iBase_EntityHandle *  ent_array_1,
int  num_ent1,
iBase_EntityHandle *  ent_array_2,
int  num_ent2 
) [inline]

Definition at line 479 of file iRel.hpp.

iRel::Error setEntArrSetArrRelation ( iBase_EntityHandle *  ent_array_1,
int  num_ent1,
iBase_EntitySetHandle *  entset_array_2,
int  num_ent2 
) [inline]

Definition at line 501 of file iRel.hpp.

iRel::Error setEntEntRelation ( iBase_EntityHandle  ent1,
iBase_EntityHandle  ent2 
) [inline]

Definition at line 443 of file iRel.hpp.

iRel::Error setEntSetRelation ( iBase_EntityHandle  ent1,
iBase_EntitySetHandle  entset2 
) [inline]

Definition at line 452 of file iRel.hpp.

iRel::Error setSetArrEntArrRelation ( iBase_EntitySetHandle *  entset_array_1,
int  num_ent1,
iBase_EntityHandle *  ent_array_2,
int  num_ent2 
) [inline]

Definition at line 490 of file iRel.hpp.

iRel::Error setSetArrSetArrRelation ( iBase_EntitySetHandle *  entset_array_1,
int  num_ent1,
iBase_EntitySetHandle *  entset_array_2,
int  num_ent2 
) [inline]

Definition at line 512 of file iRel.hpp.

iRel::Error setSetEntRelation ( iBase_EntitySetHandle  entset1,
iBase_EntityHandle  ent2 
) [inline]

Definition at line 461 of file iRel.hpp.

iRel::Error setSetSetRelation ( iBase_EntitySetHandle  entset1,
iBase_EntitySetHandle  entset2 
) [inline]

Definition at line 470 of file iRel.hpp.


Friends And Related Function Documentation

friend class iRel [friend]

Definition at line 89 of file iRel.hpp.


Member Data Documentation

iBase_Instance iFaces[2] [private]

Definition at line 202 of file iRel.hpp.

IfaceType iFaceTypes[2] [private]

Definition at line 203 of file iRel.hpp.

iRel* irelInstance [private]

Definition at line 201 of file iRel.hpp.

iRel_PairHandle irelPair [private]

Definition at line 207 of file iRel.hpp.

bool pairOwner [private]

Definition at line 209 of file iRel.hpp.

Definition at line 205 of file iRel.hpp.

RelationType relTypes[2] [private]

Definition at line 204 of file iRel.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines