MOAB: Mesh Oriented datABase  (version 5.2.1)
MeshAssocPairSide.hpp
Go to the documentation of this file.
00001 #ifndef MESHASSOCPAIRSIDE_HPP
00002 #define MESHASSOCPAIRSIDE_HPP
00003 
00004 #include "AssocPairSide.hpp"
00005 #include <iMesh.h>
00006 
00007 class MeshAssocPairSide : public AssocPairSide
00008 {
00009   public:
00010     MeshAssocPairSide( iRel_Instance relation, iBase_Instance instance, int id );
00011     virtual ~MeshAssocPairSide();
00012 
00013     virtual iBase_Instance instance() const;
00014     virtual iRel_IfaceType type() const;
00015 
00016     virtual int create_relation_side();
00017     virtual int destroy_relation_side();
00018 
00019     virtual int get_all_entities( int dimension, iBase_EntityHandle** entities, int* entities_alloc,
00020                                   int* entities_size );
00021 
00022     virtual int get_all_sets( iBase_EntitySetHandle** sets, int* sets_alloc, int* sets_size );
00023 
00024     virtual int get_entities( int dimension, iBase_EntitySetHandle set_handle, iBase_EntityHandle** entities,
00025                               int* entities_alloc, int* entities_size );
00026 
00027     virtual int get_ents_dims( iBase_EntityHandle* entities, int entities_size, int** ent_types, int* ent_types_alloc,
00028                                int* ent_types_size );
00029 
00030     virtual int get_related_ents( iBase_EntityHandle** entities, int* entities_alloc, int* entities_size );
00031     virtual int get_related_sets( iBase_EntitySetHandle** sets, int* sets_alloc, int* sets_size );
00032 
00033     virtual int get_relation_side( iBase_EntityHandle* entities, int num_entities, void* values );
00034     virtual int get_relation_side( iBase_EntitySetHandle* sets, int num_sets, void* values );
00035 
00036     virtual int set_relation_side( iBase_EntityHandle* entities, int num_entities, const void* values );
00037     virtual int set_relation_side( iBase_EntitySetHandle* sets, int num_sets, const void* values );
00038 
00039     virtual int rmv_relation_side( iBase_EntityHandle* entities, int num_entities );
00040     virtual int rmv_relation_side( iBase_EntitySetHandle* sets, int num_sets );
00041 
00042     virtual int get_iterator( iBase_EntitySetHandle set, iBase_EntityIterator* iter );
00043 
00044     virtual int get_gids( iBase_EntityHandle* entities, int num_entities, int* values );
00045     virtual int get_gids( iBase_EntitySetHandle* sets, int num_sets, int* values );
00046 
00047     virtual int get_dims( iBase_EntityHandle* entities, int num_entities, int* values );
00048     virtual int get_dims( iBase_EntitySetHandle* sets, int num_sets, int* values );
00049 
00050   private:
00051     iRel_Instance relation;
00052     iMesh_Instance instance_;
00053     int id;
00054 
00055     iBase_TagHandle relation_tag;
00056     iBase_TagHandle gid_tag;
00057     iBase_TagHandle dim_tag;
00058 };
00059 
00060 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines