|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
Lightweight neighbor-range view for one target.
#include <Neighbors.hpp>
Public Types | |
Aliases | |
| using | neighbor_list_type = NeighborListType |
| using | size_type = typename neighbor_list_type::size_type |
| using | source_index_type = typename neighbor_list_type::source_index_type |
Public Member Functions | |
Constructors | |
| Neighbors ()=default | |
| Default constructor. | |
| Neighbors (const neighbor_list_type &list, size_type target_index) | |
| Construct a neighbor range for a target. | |
Accessors | |
| size_type | size () const |
| Get the number of neighbors for the target. | |
| stk::mesh::Entity | operator[] (size_type neighbor_ordinal) const |
| Get the neighbor entity for a neighbor ordinal. | |
| stk::mesh::Entity | operator() (size_type neighbor_ordinal) const |
| Get the neighbor entity for a neighbor ordinal. | |
| source_index_type | source_index (size_type neighbor_ordinal) const |
| Get the source ordinal for a neighbor ordinal. | |
| stk::mesh::Entity | target_entity () const |
| Get the target STK entity for this neighbor range. | |
| size_type | target_index () const noexcept |
| Get the dense target ordinal associated with this range. | |
| const neighbor_list_type & | list () const noexcept |
| Get the underlying concrete neighbor list. | |
| using mundy::search::Neighbors< NeighborListType >::neighbor_list_type = NeighborListType |
| using mundy::search::Neighbors< NeighborListType >::size_type = typename neighbor_list_type::size_type |
| using mundy::search::Neighbors< NeighborListType >::source_index_type = typename neighbor_list_type::source_index_type |
|
default |
|
inline |
| list | [in] Concrete neighbor list to view. |
| target_index | [in] Dense target ordinal. |
|
inline |
|
inline |
| neighbor_ordinal | [in] Ordinal in [0, size()). |
|
inline |
| neighbor_ordinal | [in] Ordinal in [0, size()). |
|
inline |
| neighbor_ordinal | [in] Ordinal in [0, size()). |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Use this escape hatch when you need type-specific behavior not provided by the common Neighbors surface, such as reading image shifts directly from a periodic list type.