stk::linsys::impl Namespace Reference


Detailed Description

Implementation Details -- not generally of interest for the public API.


Functions

int map_field_to_int (FieldIdMap &field_id_map, const stk::mesh::FieldBase &field)
 Given a map and a Field, return the int id that the field is mapped to.
int query_field_to_int_mapping (const FieldIdMap &field_id_map, const stk::mesh::FieldBase &field)
 Given a map and a Field, return the int id that the field is mapped to.
const stk::mesh::FieldBaseget_field (const FieldIdMap &field_id_map, int field_id)
 Given an integer field_id, return a reference to the corresponding field.
int entitytype_to_int (stk::mesh::EntityType entity_type)
 Given an EntityType, return the value as an int.
int entityid_to_int (stk::mesh::EntityId id)
 Given an EntityId, return the value as an int.
template<typename T>
void verify_convertible_to_int (T id, const char *caller)
 Determine whether 'id' can be converted to an int.


Function Documentation

int stk::linsys::impl::map_field_to_int ( FieldIdMap &  field_id_map,
const stk::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.

Definition at line 21 of file ImplDetails.cpp.

int stk::linsys::impl::query_field_to_int_mapping ( const FieldIdMap &  field_id_map,
const stk::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.

Definition at line 34 of file ImplDetails.cpp.

const stk::mesh::FieldBase * stk::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::linsys::impl::entitytype_to_int ( stk::mesh::EntityType  entity_type  ) 

Given an EntityType, return the value as an int.

Throws an exception if id is too large to represent as an int.

Definition at line 70 of file ImplDetails.cpp.

int stk::linsys::impl::entityid_to_int ( stk::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.

Definition at line 79 of file ImplDetails.cpp.

template<typename T>
void stk::linsys::impl::verify_convertible_to_int ( 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 63 of file ImplDetails.hpp.


Generated on Tue Jul 13 09:27:33 2010 for Sierra Toolkit by  doxygen 1.4.7