|
SIRIUS 7.5.0
Electronic structure library and applications
|
Index descriptor of mdarray. More...
#include <memory.hpp>
Public Types | |
| using | index_type = int64_t |
Public Member Functions | |
| mdarray_index_descriptor () | |
| Constructor of empty descriptor. More... | |
| mdarray_index_descriptor (size_t const size__) | |
| Constructor for index range [0, size). More... | |
| mdarray_index_descriptor (index_type const begin__, index_type const end__) | |
| Constructor for index range [begin, end]. More... | |
| mdarray_index_descriptor (std::pair< int, int > const range__) | |
| Constructor for index range [begin, end]. More... | |
| index_type | begin () const |
| Return first index value. More... | |
| index_type | end () const |
| Return last index value. More... | |
| size_t | size () const |
| Return index size. More... | |
| bool | check_range (index_type i__) const |
Private Attributes | |
| index_type | begin_ {0} |
| Beginning of index. More... | |
| index_type | end_ {-1} |
| End of index. More... | |
| size_t | size_ {0} |
| Size of index. More... | |
Index descriptor of mdarray.
Definition at line 553 of file memory.hpp.
| using sirius::sddk::mdarray_index_descriptor::index_type = int64_t |
Definition at line 556 of file memory.hpp.
|
inline |
Constructor of empty descriptor.
Definition at line 570 of file memory.hpp.
|
inline |
Constructor for index range [0, size).
Definition at line 575 of file memory.hpp.
|
inline |
Constructor for index range [begin, end].
Definition at line 582 of file memory.hpp.
|
inline |
Constructor for index range [begin, end].
Definition at line 591 of file memory.hpp.
|
inline |
Return first index value.
Definition at line 600 of file memory.hpp.
|
inline |
Return last index value.
Definition at line 606 of file memory.hpp.
|
inline |
Return index size.
Definition at line 612 of file memory.hpp.
|
inline |
Definition at line 617 of file memory.hpp.
|
private |
Beginning of index.
Definition at line 560 of file memory.hpp.
|
private |
End of index.
Definition at line 563 of file memory.hpp.
|
private |
Size of index.
Definition at line 566 of file memory.hpp.