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