Core¶
-
namespace
Cubism::Core¶ Namespace for Cubism core components.
Typedefs
-
using
Index= std::ptrdiff_t¶
-
using
MultiIndex= typename IndexRange<DIM>::PointType¶ Alias for a multi-dimensional index.
- Template Parameters
DIM: Dimension of associated index space
Functions
-
template<typename
T, size_tDIM>
voidswap(Vector<T, DIM> &va, Vector<T, DIM> &vb) noexcept¶ Non-STL swap function for vectors.
-
template<size_t
DIM>
classEntityIterator: public Cubism::Core::MultiIndexIterator<DIM>¶
-
template<size_t
DIM>
structIndexConverter¶ - #include <Index.h>
Converts indices from and to one dimensional and multi-dimensional, respectively.
- Template Parameters
DIM: Dimension of the index space
-
template<>
structIndexConverter<1>¶
-
template<>
structIndexConverter<2>¶
-
template<>
structIndexConverter<3>¶
-
template<size_t
DIM>
classIndexRange: public Cubism::Core::Range<Index, DIM> - #include <Index.h>
Rectangular index range.
Defines a simple consecutive index space.
- Template Parameters
DIM: Dimension of the index space
-
template<size_t
DIM>
structMIIForward¶
-
template<>
structMIIForward<1>¶
-
template<>
structMIIForward<2>¶
-
template<>
structMIIForward<3>¶
-
template<size_t
DIM>
classMultiIndexIterator¶ Subclassed by Cubism::Core::EntityIterator< DIM >
-
template<typename
T, size_tDIM>
classRange - #include <Range.h>
Rectangular range.
- Template Parameters
T: Data type that describes coordinates in the rangeDIM: Dimension
-
template<size_t
DIM>
classStencil - #include <Stencil.h>
Describes a stencil.
- Template Parameters
DIM: Stencil dimensionality
-
template<typename
T, size_tDIM>
classVector - #include <Vector.h>
Vector class with support for common operations.
Wraps around
std::array. The data typeTmust follow the rules of aggregate initialization. The vector dimensionDIMshould be low-dimensional when used for automatic variables on the stack.- Template Parameters
T: Data typeDIM: Dimension
-
using