Sierra Toolkit
Version of the Day
|
Functions | |
int | map_field_to_int (FieldIdMap &field_id_map, const stk_classic::mesh::FieldBase &field) |
int | query_field_to_int_mapping (const FieldIdMap &field_id_map, const stk_classic::mesh::FieldBase &field) |
const stk_classic::mesh::FieldBase * | get_field (const FieldIdMap &field_id_map, int field_id) |
int | entitytype_to_int (stk_classic::mesh::EntityRank entity_rank) |
int | entityid_to_int (stk_classic::mesh::EntityId id) |
template<typename T > | |
void | verify_convertible_to_int (T id, const char *caller) |
Implementation Details – not generally of interest for the public API
int stk_classic::linsys::impl::map_field_to_int | ( | FieldIdMap & | field_id_map, |
const stk_classic::mesh::FieldBase & | field | ||
) |
Given a map and a Field, return the int id that the field is mapped to. The field will be added to the map if not already present. This is useful because FEI classes/functions use integer ids for fields.
Definition at line 21 of file ImplDetails.cpp.
int stk_classic::linsys::impl::query_field_to_int_mapping | ( | const FieldIdMap & | field_id_map, |
const stk_classic::mesh::FieldBase & | field | ||
) |
Given a map and a Field, return the int id that the field is mapped to. If the field is not found in the map, an exception is thrown. This is useful because FEI classes/functions use integer ids for fields.
Definition at line 34 of file ImplDetails.cpp.
const stk_classic::mesh::FieldBase * stk_classic::linsys::impl::get_field | ( | const FieldIdMap & | field_id_map, |
int | field_id | ||
) |
Given an integer field_id, return a reference to the corresponding field. Throw an exception if field_id not found.
Definition at line 51 of file ImplDetails.cpp.
int stk_classic::linsys::impl::entitytype_to_int | ( | stk_classic::mesh::EntityRank | entity_rank | ) |
Given an EntityRank, return the value as an int. Throws an exception if id is too large to represent as an int. This is useful because FEI classes/functions use integer ids for entity-types.
Definition at line 70 of file ImplDetails.cpp.
int stk_classic::linsys::impl::entityid_to_int | ( | stk_classic::mesh::EntityId | id | ) |
Given an EntityId, return the value as an int. Throws an exception if id is too large to represent as an int. This is useful because FEI classes/functions use integer ids for entities.
Definition at line 79 of file ImplDetails.cpp.
void stk_classic::linsys::impl::verify_convertible_to_int | ( | T | id, |
const char * | caller | ||
) |
Determine whether 'id' can be converted to an int. If so, do nothing. If 'id' is too large to be represented as an int, throw an exception (std::runtime_error).
Definition at line 67 of file ImplDetails.hpp.