|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
This class extends the ShapeTraits with object state so it can represent a zone. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/bump/views/Shapes.hpp>
Inherits ShapeTraits.
Public Types | |
| using | ConnectivityStorage = ConnStorage |
| using | ConnectivityStorageRef = ConnStorage & |
| using | ConnectivityStorageConstRef = const ConnStorage & |
| using | ConnectivityType = typename ConnStorage::value_type |
| using | ConnectivityView = axom::ArrayView< ConnectivityType > |
Public Member Functions | |
| AXOM_HOST_DEVICE | Shape () |
| Construct a shape. More... | |
| AXOM_HOST_DEVICE | Shape (ConnectivityStorageConstRef ids) |
| Construct a shape. More... | |
| AXOM_HOST_DEVICE ConnectivityType | getId (size_t index) const |
| Get a specific id that makes up this shape. More... | |
| AXOM_HOST_DEVICE ConnectivityStorageRef | getIdsStorage () |
| Get the storage for the ids that make up this shape. More... | |
| AXOM_HOST_DEVICE ConnectivityStorageConstRef | getIdsStorage () const |
| Get the storage for the ids that make up this shape. More... | |
| AXOM_HOST_DEVICE ConnectivityView | getIds () const |
| Get the ids that make up this shape as a view. More... | |
| AXOM_HOST_DEVICE ConnectivityStorageConstRef | getUniqueIds () const |
| Get the unique ids that make up this shape. For basic shapes, assume they are unique. More... | |
| template<int _ndims = ShapeTraits::dimension()> | |
| AXOM_HOST_DEVICE std::enable_if<(_ndims==2), void >::type | getFace (axom::IndexType AXOM_UNUSED_PARAM(faceIndex), ConnectivityType *ids, axom::IndexType &numIds) const |
| Get the ids for the requested face. More... | |
| template<int _ndims = ShapeTraits::dimension()> | |
| AXOM_HOST_DEVICE std::enable_if< _ndims !=2, void >::type | getFace (axom::IndexType faceIndex, ConnectivityType *ids, axom::IndexType &numIds) const |
This class extends the ShapeTraits with object state so it can represent a zone.
| ShapeTraits | A shape traits class from which to inherit. |
| ConnStorage | A view or container that contains connectivity. |
| using axom::bump::views::Shape< ShapeTraits, ConnStorage >::ConnectivityStorage = ConnStorage |
| using axom::bump::views::Shape< ShapeTraits, ConnStorage >::ConnectivityStorageRef = ConnStorage & |
| using axom::bump::views::Shape< ShapeTraits, ConnStorage >::ConnectivityStorageConstRef = const ConnStorage & |
| using axom::bump::views::Shape< ShapeTraits, ConnStorage >::ConnectivityType = typename ConnStorage::value_type |
| using axom::bump::views::Shape< ShapeTraits, ConnStorage >::ConnectivityView = axom::ArrayView<ConnectivityType> |
|
inline |
Construct a shape.
|
inline |
Construct a shape.
| ids | A reference to connectivity storage for this shape. |
References SLIC_ASSERT.
|
inline |
Get a specific id that makes up this shape.
References SLIC_ASSERT.
|
inline |
Get the storage for the ids that make up this shape.
|
inline |
Get the storage for the ids that make up this shape.
|
inline |
Get the ids that make up this shape as a view.
|
inline |
Get the unique ids that make up this shape. For basic shapes, assume they are unique.
|
inline |
Get the ids for the requested face.
| faceIndex | The index of the desired face. | |
| [out] | ids | A buffer that will contain the ids. The buffer must be large enough to accommodate the largest number of ids that could be returned, which can be obtained in most cases from the maxNodesInFace() method. |
| [out] | numIds | The number of ids returned for the face. |
|
inline |