TiledArray
0.7.0
|
#include <tiled_range1.h>
Public Types | |
typedef std::size_t | size_type |
typedef std::pair< size_type, size_type > | range_type |
typedef std::vector< range_type >::const_iterator | const_iterator |
Public Member Functions | |
TiledRange1 () | |
Default constructor, range of 0 tiles and elements. More... | |
template<typename RandIter , typename std::enable_if< detail::is_random_iterator< RandIter >::value >::type * = nullptr> | |
TiledRange1 (RandIter first, RandIter last) | |
TiledRange1 (const TiledRange1 &rng) | |
Copy constructor. More... | |
template<typename... _sizes> | |
TiledRange1 (const size_type &t0, const _sizes &... t_rest) | |
Construct a 1D tiled range. More... | |
TiledRange1 (const std::initializer_list< size_type > &list) | |
Construct a 1D tiled range. More... | |
TiledRange1 & | operator= (const TiledRange1 &rng) |
Assignment operator. More... | |
const_iterator | begin () const |
Returns an iterator to the first tile in the range. More... | |
const_iterator | end () const |
Returns an iterator to the end of the range. More... | |
const_iterator | find (const size_type &e) const |
Return tile iterator associated with ordinal_index. More... | |
DEPRECATED const range_type & | tiles () const |
const range_type & | tiles_range () const |
Tile range accessor. More... | |
const range_type & | elements () const |
const range_type & | elements_range () const |
Elements range accessor. More... | |
size_type | tile_extent () const |
Tile range extent accessor. More... | |
size_type | extent () const |
Elements range extent accessor. More... | |
const range_type & | tile (const size_type i) const |
Tile range accessor. More... | |
const size_type & | element_to_tile (const size_type &i) const |
DEPRECATED const size_type & | element2tile (const size_type &i) const |
void | swap (TiledRange1 &other) |
Friends | |
std::ostream & | operator<< (std::ostream &, const TiledRange1 &) |
TiledRange1 ostream operator. More... | |
TiledRange1 class defines a non-uniformly-tiled, contiguous, one-dimensional range. The tiling data is constructed with and stored in an array with the format {a0, a1, a2, ...}, where 0 <= a0 < a1 < a2 < ... Each tile is defined as [a0,a1), [a1,a2), ... The number of tiles in the range will be equal to one less than the number of elements in the array.
Definition at line 35 of file tiled_range1.h.
typedef std::vector<range_type>::const_iterator TiledArray::TiledRange1::const_iterator |
Definition at line 41 of file tiled_range1.h.
typedef std::pair<size_type, size_type> TiledArray::TiledRange1::range_type |
Definition at line 40 of file tiled_range1.h.
typedef std::size_t TiledArray::TiledRange1::size_type |
Definition at line 39 of file tiled_range1.h.
|
inline |
Default constructor, range of 0 tiles and elements.
Definition at line 44 of file tiled_range1.h.
|
inline |
Constructs a range with the boundaries provided by [first, last). Start_tile_index is the index of the first tile.
Definition at line 55 of file tiled_range1.h.
|
inline |
Copy constructor.
Definition at line 63 of file tiled_range1.h.
|
inlineexplicit |
Construct a 1D tiled range.
This will construct a 1D tiled range with tile boundaries {t0, t_rest} The number of tile boundaries is n + 1, where n is the number of tiles. Tiles are defined as [t0, t1), [t1, t2), [t2, t3), ...
t0 | The starting index of the first tile |
t_rest | The rest of tile boundaries |
Definition at line 76 of file tiled_range1.h.
|
inlineexplicit |
Construct a 1D tiled range.
This will construct a 1D tiled range with tile boundaries {t0, t_rest} The number of tile boundaries is n + 1, where n is the number of tiles. Tiles are defined as [t0, t1), [t1, t2), [t2, t3), ...
list | The list of tile boundaries in order from smallest to largest |
Definition at line 90 of file tiled_range1.h.
|
inline |
Returns an iterator to the first tile in the range.
Definition at line 103 of file tiled_range1.h.
|
inline |
|
inline |
Definition at line 126 of file tiled_range1.h.
|
inline |
Elements range accessor.
Definition at line 131 of file tiled_range1.h.
|
inline |
Returns an iterator to the end of the range.
Definition at line 106 of file tiled_range1.h.
|
inline |
Elements range extent accessor.
Definition at line 137 of file tiled_range1.h.
|
inline |
Return tile iterator associated with ordinal_index.
Definition at line 109 of file tiled_range1.h.
|
inline |
Assignment operator.
Definition at line 97 of file tiled_range1.h.
|
inline |
Definition at line 158 of file tiled_range1.h.
|
inline |
Tile range accessor.
i | The coordinate index for the tile range to be returned |
i
Definition at line 144 of file tiled_range1.h.
|
inline |
Tile range extent accessor.
Definition at line 134 of file tiled_range1.h.
|
inline |
Definition at line 118 of file tiled_range1.h.
|
inline |
Tile range accessor.
Definition at line 123 of file tiled_range1.h.
|
friend |
TiledRange1 ostream operator.
Definition at line 236 of file tiled_range1.h.