SheafSystem
0.0.0.0
|
A bounded domain for binary_index objects. More...
#include <binary_index_space.h>
Public Member Functions | |
bool | invariant () const |
Class invariant. More... | |
binary_index_space () | |
Creates an instance with bound (0,0). More... | |
binary_index_space (unary_index xi_size, unary_index xj_size) | |
Creates an instance with bounds (xi_size, xj_size). More... | |
void | put_bounds (unary_index xi_size=0, unary_index xj_size=0) |
Sets i_size = xi_size and j_size = xj_size and recomputes size. More... | |
binary_index_space (unary_index xl) | |
Conversion from unary_index; interpreted as square. More... | |
binary_index_space | operator+ (const binary_index_space &xother) const |
Sum. More... | |
binary_index_space | operator* (const binary_index_space &xother) const |
Cartesian product. More... | |
bool | contains (const binary_index &xindex) const |
True if xindex is in this space. More... | |
bool | contains (const unary_index &xindex) const |
True if xindex is in this space. More... | |
unary_index | to_row_major_offset (const binary_index &xindex) const |
Converts xindex to a unary_index using row-major ordering. More... | |
unary_index | to_row_major_offset (const unary_index xi, const unary_index xj) const |
Converts (xi, xj) to a unary_index using row-major ordering. More... | |
binary_index | from_row_major_offset (const unary_index &xindex) const |
Converts xindex to a binary_index using row-major ordering. More... | |
ragged_array< unary_index > * | neighbor_list () const |
Create a ragged array containing the row major offsets of the neighbors of each index in the index space. More... | |
Public Attributes | |
unary_index | i_size |
Upper bound for the first index. More... | |
unary_index | j_size |
Upper bound for the second index. More... | |
unary_index | size |
Number in the space. More... | |
A bounded domain for binary_index objects.
Definition at line 41 of file binary_index_space.h.
|
inline |
Creates an instance with bound (0,0).
Definition at line 74 of file binary_index_space.h.
|
inline |
Creates an instance with bounds (xi_size, xj_size).
Definition at line 96 of file binary_index_space.h.
|
inline |
Conversion from unary_index; interpreted as square.
Definition at line 145 of file binary_index_space.h.
|
inline |
True if xindex is in this space.
Definition at line 211 of file binary_index_space.h.
References fiber_bundle::binary_index::i, and fiber_bundle::binary_index::j.
|
inline |
True if xindex is in this space.
Definition at line 235 of file binary_index_space.h.
|
inline |
Converts xindex to a binary_index using row-major ordering.
Definition at line 295 of file binary_index_space.h.
|
inline |
Class invariant.
Definition at line 62 of file binary_index_space.h.
sheaf::ragged_array< unary_index > * fiber_bundle::binary_index_space::neighbor_list | ( | ) | const |
Create a ragged array containing the row major offsets of the neighbors of each index in the index space.
Definition at line 33 of file binary_index_space.cc.
References fiber_bundle::binary_index::i, fiber_bundle::binary_index::j, sheaf::ragged_array< T >::new_back_row(), fiber_bundle::operator<<(), sheaf::ragged_array< T >::push_back(), and sheaf::ragged_array< T >::row_ct().
|
inline |
Cartesian product.
Definition at line 189 of file binary_index_space.h.
|
inline |
Sum.
Definition at line 167 of file binary_index_space.h.
|
inline |
Sets i_size = xi_size and j_size = xj_size and recomputes size.
Definition at line 121 of file binary_index_space.h.
|
inline |
Converts xindex to a unary_index using row-major ordering.
Definition at line 255 of file binary_index_space.h.
References fiber_bundle::binary_index::i, and fiber_bundle::binary_index::j.
Referenced by fiber_bundle::point_block_crg_interval::get_private_data().
|
inline |
Converts (xi, xj) to a unary_index using row-major ordering.
Definition at line 275 of file binary_index_space.h.
unary_index fiber_bundle::binary_index_space::i_size |
Upper bound for the first index.
Definition at line 47 of file binary_index_space.h.
Referenced by operator*(), operator+(), and fiber_bundle::operator<<().
unary_index fiber_bundle::binary_index_space::j_size |
Upper bound for the second index.
Definition at line 52 of file binary_index_space.h.
Referenced by operator*(), operator+(), and fiber_bundle::operator<<().
unary_index fiber_bundle::binary_index_space::size |
Number in the space.
Definition at line 57 of file binary_index_space.h.
Referenced by fiber_bundle::operator<<().