20 #ifndef BINARY_INDEX_BLOCK_H 21 #define BINARY_INDEX_BLOCK_H 23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 28 #include "SheafSystem/block.h" 122 T&
item(
int xi,
int xj);
127 const T&
item(
int xi,
int xj)
const;
145 void force_item(
int xi,
int xj,
const T& xitem);
152 void reserve(
int xi_ub,
int xj_ub);
159 void set_ct(
int xi_ct,
int xj_ct);
165 void put_item(
int xi,
int xj,
const T& xitem);
170 void assign(
const T& xitem);
206 operator << (std::ostream& xos, const binary_index_block<T>& xblk);
211 #endif // ifndef BINARY_INDEX_BLOCK_H
void put_item(int xi, int xj, const T &xitem)
Sets the item xitem at index xi, xj to xitem, but will not resize.
int i_ct() const
The number of i index values currently in use.
void push_back(const binary_index_block &xother)
Appends xother to the back of this.
T * operator[](int xi) const
The address of the first item in row xi. /.
void reserve(int xi_ub, int xj_ub)
Makes i_ub() at least xi_ub and j_ub() at least xj_ub.
int j_ub() const
The upper bound for the second index.
void assign(const T &xitem)
Sets the values of all items to xitem.
int j_ct() const
The number of j index values currently in use.
int _j_ub
The upper bound for the second index.
int _i_ub
The upper bound for the first index.
void set_ct(int xi_ct, int xj_ct)
Sets i_ct() == xi_ct and j_ct() == xj_ct.
A block which can be accessed using two indices, similarly to a two index array.
void force_item(int xi, int xj, const T &xitem)
Puts the item xitem at index xi,xj, resizing if necessary.
int _i_ct
The number of i index values currently in use.
int i_ub() const
The upper bound for the first index.
Namespace for the sheaves component of the sheaf system.
~binary_index_block()
Destructor.
binary_index_block & operator=(const binary_index_block &xother)
Sets the contents of this to the contents of xother.
T & item(int xi, int xj)
The item at index xi, xj (mutable version).
An auto_block with a no-initialization initialization policy.
int _j_ct
The number of j index values currently in use.
binary_index_block(int xi_ub=0, int xj_ub=0)
Default constructor.