[MOAB-dev] r4609 - MOAB/branches/Version4.0/itaps/imesh

jvporter at wisc.edu jvporter at wisc.edu
Fri Mar 18 14:31:39 CDT 2011


Author: jvporter
Date: 2011-03-18 14:31:38 -0500 (Fri, 18 Mar 2011)
New Revision: 4609

Added:
   MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp
Log:
Add missing file


Added: MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp
===================================================================
--- MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp	                        (rev 0)
+++ MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp	2011-03-18 19:31:38 UTC (rev 4609)
@@ -0,0 +1,129 @@
+#ifndef MBIMESH_HPP
+#define MBIMESH_HPP
+
+#include "moab/Core.hpp"
+#include <vector>
+#include <algorithm>
+
+using namespace moab;
+
+class MBiMesh
+{
+private:
+  bool haveDeletedEntities;
+  bool iCreatedInterface;
+  std::vector<Tag> setHandleTags, entHandleTags;
+public:
+  MBiMesh(moab::Interface *mbImpl = NULL);
+
+  virtual ~MBiMesh();
+  bool have_deleted_ents( bool reset ) {
+    bool result = haveDeletedEntities;
+    if (reset)
+      haveDeletedEntities = false;
+    return result;
+  }
+
+  virtual ErrorCode delete_mesh();
+  virtual ErrorCode delete_entities( const EntityHandle*, const int );
+  virtual ErrorCode delete_entities( const Range& );
+  int AdjTable[16];
+  moab::Interface *mbImpl;
+  
+  inline void note_set_handle_tag( Tag );
+  inline void note_ent_handle_tag( Tag );
+  inline void note_tag_destroyed( Tag );
+  inline bool is_set_handle_tag( Tag ) const;
+  inline bool is_ent_handle_tag( Tag ) const;
+};
+
+static inline MBiMesh *mbimeshi_instance(iMesh_Instance instance) {return reinterpret_cast<MBiMesh*>(instance);}
+#define MBIMESHI mbimeshi_instance(instance)
+#define MOABI MBIMESHI->mbImpl
+
+inline MBiMesh::MBiMesh(Interface *impl)
+        : haveDeletedEntities(false), iCreatedInterface(false), mbImpl(impl)
+{


More information about the moab-dev mailing list