101 template<
typename T_NestedPosition>
149 stream <<
"[" << pos.
data <<
", " << pos.
inner <<
"]";
165 template<
typename T_NestedPosition>
213 stream <<
"[" << pos.
chunk <<
", " << pos.
data <<
", " << pos.
inner <<
"]";
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
void CODI_UNUSED(Args const &...)
Disable unused warnings for an arbitrary number of arguments.
Definition macros.hpp:46
Position with one index for e.g. array access.
Definition position.hpp:102
ArrayPosition(size_t const &data, NestedPosition const &inner)
Constructor.
Definition position.hpp:115
ArrayPosition()
Constructor.
Definition position.hpp:112
friend std::ostream & operator<<(std::ostream &stream, ArrayPosition const &pos)
Stream output.
Definition position.hpp:148
size_t data
Array position index.
Definition position.hpp:107
bool operator<=(ArrayPosition const &o) const
Operator <= also compares with nested data.
Definition position.hpp:133
bool operator<(ArrayPosition const &o) const
Operator < also compares with nested data.
Definition position.hpp:128
NestedPosition inner
Position of nested data.
Definition position.hpp:109
T_NestedPosition NestedPosition
See ArrayPosition.
Definition position.hpp:105
bool operator!=(ArrayPosition const &o) const
Operator != also compares with nested data.
Definition position.hpp:118
bool operator>=(ArrayPosition const &o) const
Operator >= also compares with nested data.
Definition position.hpp:143
bool operator>(ArrayPosition const &o) const
Operator > also compares with nested data.
Definition position.hpp:138
bool operator==(ArrayPosition const &o) const
Operator == also compares with nested data.
Definition position.hpp:123
Position with two indices for e.g. chunked data access.
Definition position.hpp:166
ChunkPosition(size_t const &chunk, size_t const &data, NestedPosition const &inner)
Constructor.
Definition position.hpp:178
bool operator<=(ChunkPosition const &o) const
Operator <= also compares with nested data.
Definition position.hpp:197
bool operator>=(ChunkPosition const &o) const
Operator >= also compares with nested data.
Definition position.hpp:207
bool operator==(ChunkPosition const &o) const
Operator == also compares with nested data.
Definition position.hpp:187
bool operator<(ChunkPosition const &o) const
Operator < also compares with nested data.
Definition position.hpp:192
size_t chunk
Chunk position index.
Definition position.hpp:172
bool operator!=(ChunkPosition const &o) const
Operator != also compares with nested data.
Definition position.hpp:182
ChunkPosition()
Constructor.
Definition position.hpp:175
T_NestedPosition NestedPosition
See ChunkPosition.
Definition position.hpp:169
friend std::ostream & operator<<(std::ostream &stream, ChunkPosition const &pos)
Stream output.
Definition position.hpp:212
bool operator>(ChunkPosition const &o) const
Operator > also compares with nested data.
Definition position.hpp:202
Empty Position with no nested data.
Definition position.hpp:47
bool operator!=(EmptyPosition const &o) const
Always false.
Definition position.hpp:51
bool operator>(EmptyPosition const &o) const
Always false.
Definition position.hpp:75
friend std::ostream & operator<<(std::ostream &stream, EmptyPosition const &pos)
Stream output.
Definition position.hpp:87
bool operator<=(EmptyPosition const &o) const
Always true.
Definition position.hpp:69
bool operator<(EmptyPosition const &o) const
Always false.
Definition position.hpp:63
bool operator==(EmptyPosition const &o) const
Always true.
Definition position.hpp:57
bool operator>=(EmptyPosition const &o) const
Always true.
Definition position.hpp:81