|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Given a shape value, we can get the Shape::id() that is used internally. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/bump/views/UnstructuredTopologyMixedShapeView.hpp>
Public Member Functions | |
| AXOM_HOST_DEVICE | ShapeMap () |
| Constructor. More... | |
| AXOM_HOST_DEVICE | ShapeMap (const axom::ArrayView< IndexType > &shape_values, const axom::ArrayView< IndexType > &shape_ids) |
| Constructor. More... | |
| AXOM_HOST_DEVICE IndexType | size () const |
| Return the size of the shape map. More... | |
| AXOM_HOST_DEVICE bool | empty () const |
| Return whether the shape map is empty. More... | |
| AXOM_HOST_DEVICE IndexType | operator[] (IndexType value) const |
| Given a shape value (as in the Conduit shapes array), return the shape id. More... | |
Given a shape value, we can get the Shape::id() that is used internally.
|
inline |
Constructor.
|
inline |
Constructor.
| shape_values | A view of sorted values used in the Conduit data. |
| shape_ids | A view of shape ids that correspond to the values from Conduit. |
|
inline |
Return the size of the shape map.
References axom::ArrayView< T, DIM, SPACE >::size().
|
inline |
Return whether the shape map is empty.
References axom::ArrayView< T, DIM, SPACE >::empty().
|
inline |
Given a shape value (as in the Conduit shapes array), return the shape id.
| value | A value from the shapes array that we want to map to a shape id. |
References axom::utilities::binary_search().