MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Go to the source code of this file.
Namespaces | |
namespace | moab |
Class representing axis-aligned bounding box. | |
Defines | |
#define | MB_TYPE_WIDTH 4 |
#define | MB_ID_WIDTH ( 8 * sizeof( EntityHandle ) - MB_TYPE_WIDTH ) |
#define | MB_TYPE_MASK ( (EntityHandle)0xF << MB_ID_WIDTH ) |
#define | MB_START_ID ( (EntityID)1 ) |
All entity id's currently start at 1. | |
#define | MB_END_ID ( (EntityID)MB_ID_MASK ) |
Last id is the complement of the MASK. | |
#define | MB_ID_MASK ( ~MB_TYPE_MASK ) |
Functions | |
EntityHandle | moab::CREATE_HANDLE (const unsigned type, const EntityID id, int &err) |
Given a type and an id create a handle. | |
EntityHandle | moab::CREATE_HANDLE (const unsigned type, const EntityID id) |
EntityHandle | moab::FIRST_HANDLE (unsigned type) |
EntityHandle | moab::LAST_HANDLE (unsigned type) |
EntityID | moab::ID_FROM_HANDLE (EntityHandle handle) |
Get the entity id out of the handle. | |
EntityType | moab::TYPE_FROM_HANDLE (EntityHandle handle) |
#define MB_END_ID ( (EntityID)MB_ID_MASK ) |
Last id is the complement of the MASK.
Definition at line 51 of file Internals.hpp.
Referenced by moab::SequenceManager::create_element(), moab::CREATE_HALFFACET(), moab::CREATE_HANDLE(), moab::SequenceManager::create_mesh_set(), moab::SequenceManager::create_vertex(), moab::VarLenSparseTag::find_entities_with_value(), moab::SparseTag::find_entities_with_value(), moab::RangeSeqIntersectIter::find_invalid_range(), moab::AEntityFactory::get_associated_meshsets(), moab::AEntityFactory::get_element(), moab::SequenceManager::get_memory_use(), moab::TypeSequenceManager::get_memory_use(), moab::TypeSequenceManager::is_free_handle(), moab::TypeSequenceManager::last_free_handle(), main(), mb_range_seq_intersect_test(), moab::Range::num_of_dimension(), moab::Range::num_of_type(), moab::SequenceManager::sequence_start_handle(), test_find_free_handle(), test_find_free_sequence(), and test_is_free_handle().
#define MB_ID_MASK ( ~MB_TYPE_MASK ) |
Definition at line 52 of file Internals.hpp.
Referenced by moab::FID_FROM_HALFFACET(), and moab::ID_FROM_HANDLE().
#define MB_ID_WIDTH ( 8 * sizeof( EntityHandle ) - MB_TYPE_WIDTH ) |
Definition at line 46 of file Internals.hpp.
Referenced by moab::CREATE_HALFFACET(), moab::CREATE_HANDLE(), moab::FIRST_HANDLE(), moab::LAST_HANDLE(), moab::LID_FROM_HALFFACET(), and moab::TYPE_FROM_HANDLE().
#define MB_START_ID ( (EntityID)1 ) |
All entity id's currently start at 1.
Definition at line 50 of file Internals.hpp.
Referenced by moab::ReadVtk::allocate_elements(), moab::ReadVtk::allocate_vertices(), create_3dtri_ucd_sequences(), moab::SequenceManager::create_element(), moab::ReadGmsh::create_elements(), moab::ReadMCNP5::create_elements(), moab::ReadABAQUS::create_instance_of_part(), moab::SequenceManager::create_mesh_set(), moab::SequenceManager::create_vertex(), moab::ReadMCNP5::create_vertices(), moab::Core::create_vertices(), moab::VarLenSparseTag::find_entities_with_value(), moab::SparseTag::find_entities_with_value(), moab::FIRST_HANDLE(), moab::AEntityFactory::get_associated_meshsets(), moab::AEntityFactory::get_element(), moab::SequenceManager::get_memory_use(), moab::TypeSequenceManager::get_memory_use(), moab::TypeSequenceManager::is_free_handle(), moab::ReadCGNS::load_file(), moab::ReadGmsh::load_file(), moab::ReadSmf::load_file(), moab::ReadNASTRAN::load_file(), moab::ReadSTL::load_file(), moab::ReadSms::load_file_impl(), moab::WriteGMV::local_write_mesh(), main(), moab::ReadABAQUS::read_element_list(), moab::ReadNCDF::read_global_ids(), moab::ReadABAQUS::read_node_list(), moab::ReadNCDF::read_nodes(), moab::ReadCCMIO::read_vertices(), and moab::SequenceManager::sequence_start_handle().
#define MB_TYPE_MASK ( (EntityHandle)0xF << MB_ID_WIDTH ) |
Definition at line 47 of file Internals.hpp.
#define MB_TYPE_WIDTH 4 |
Define EntityHandle for both 32 bit and 64 bit systems. The decision to use 64 bit handles must be made at compile time.
EntityHandle format: 0xXYYYYYYY (assuming a 32-bit handle. Top 4 bits reserved on a 64 bit system) X - reserved for entity type. This system can only handle 15 different types Y - Entity id space. Max id is over 200M
Note that for specialized databases (such as all hex) 16 bits are not required for the entity type and the id space can be increased to over 2B.
Definition at line 45 of file Internals.hpp.
Referenced by main().