MeshKit  1.0
LocalSet.hpp
Go to the documentation of this file.
00001 #ifndef MESHKIT_LOCAL_SET_HPP
00002 #define MESHKIT_LOCAL_SET_HPP
00003 
00004 #include "meshkit/iMesh.hpp"
00005 #include "meshkit/MKCore.hpp"
00006 #include "meshkit/Error.hpp"
00007 
00008 namespace MeshKit
00009 {
00010   class LocalSet
00011   {
00012   public:
00013     explicit LocalSet(MKCore *mkCore, bool isList = false)
00014       : imesh_(mkCore->imesh_instance()->instance())
00015     {
00016       IBERRCHK(imesh_.createEntSet(isList, set_), "");
00017     }
00018 
00019     ~LocalSet()
00020     {
00021       imesh_.destroyEntSet(set_);
00022     }
00023 
00024     operator iBase_EntitySetHandle()
00025     {
00026       return set_;
00027     }
00028 
00029     iMesh imesh_;
00030     iMesh::EntitySetHandle set_;
00031   };
00032 }
00033 
00034 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines