Template Numerical Library version\ main:f17d0c8
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
TNL::Containers::Block< D, idx_ > Struct Template Reference

Minimal class representing a block of an equidistant D-dimensional lattice. More...

#include <TNL/Containers/Block.h>

Collaboration diagram for TNL::Containers::Block< D, idx_ >:
Collaboration graph
[legend]

Public Types

using CoordinatesType = StaticVector< D, idx >
 
using idx = idx_
 

Public Member Functions

 Block ()=default
 Default constructor.
 
 Block (const CoordinatesType &begin, const CoordinatesType &end)
 Constructs a block from the given begin and end.
 

Public Attributes

CoordinatesType begin = 0
 Offset of the block on the global lattice.
 
CoordinatesType end = 0
 Ending point of the block on the global lattice. The ending point is not included in the block, i.e., the block spans the multidimensional interval [begin, end).
 

Static Public Attributes

static constexpr int dimension = D
 Dimension of the lattice.
 

Detailed Description

template<int D = 3, typename idx_ = int>
struct TNL::Containers::Block< D, idx_ >

Minimal class representing a block of an equidistant D-dimensional lattice.


The documentation for this struct was generated from the following file: