16 #ifndef MOAB_READ_UTIL_IFACE_HPP
17 #define MOAB_READ_UTIL_IFACE_HPP
54 const int preferred_start_id,
56 std::vector< double* >& arrays,
57 const int sequence_size = -1 ) = 0;
72 const int verts_per_element,
73 const EntityType mdb_type,
74 const int preferred_start_id,
77 int sequence_size = -1 ) = 0;
91 const unsigned* set_flags,
105 const int number_elements,
106 const int number_vertices_per_element,
121 static inline void reorder(
const int* order,
EntityHandle* conn,
int num_elem,
int node_per_elem );
130 EntityType& etype ) = 0;
149 std::vector< EntityHandle > elem( node_per_elem );
150 EntityHandle*
const end = conn + num_elem * node_per_elem;
153 std::copy( conn, conn + node_per_elem, elem.begin() );
154 for(
int j = 0; j < node_per_elem; ++j )
155 conn[order[j]] = elem[j];
156 conn += node_per_elem;