SLIP
1.4
|
This is a two-dimensional static and generic container. This container statisfies the BidirectionnalContainer concepts of the STL. It is also an 2d extension of the RandomAccessContainer concept. That is to say the bracket element access is replaced by the double bracket element access. More...
#include <Block2d.hpp>
Public Member Functions | |
std::string | name () const |
Returns the name of the class. More... | |
void | swap (block2d< T, NR, NC > &x) |
Swaps data with another block. More... | |
iterators | |
iterator | begin () |
Returns a read/write iterator that points to the first element in the block2d. Iteration is done in ordinary element order. More... | |
const_iterator | begin () const |
Returns a read-only (constant) iterator that points to the first element in the block2d. Iteration is done in ordinary element order. More... | |
iterator | end () |
Returns a read/write iterator that points one past the last element in the block2d. Iteration is done in ordinary element order. More... | |
const_iterator | end () const |
Returns a read-only (constant) iterator that points one past the last element in the block2d. Iteration is done in ordinary element order. More... | |
reverse_iterator | rbegin () |
Returns a read/write reverse iterator that points to the last element in the block2d. Iteration is done in reverse element order. More... | |
const_reverse_iterator | rbegin () const |
Returns a read-only (constant) reverse iterator that points to the last element in the block2d. Iteration is done in reverse element order. More... | |
reverse_iterator | rend () |
Returns a read/write reverse iterator that points to one before the first element in the block2d. Iteration is done in reverse element order. More... | |
const_reverse_iterator | rend () const |
Returns a read-only (constant) reverse iterator that points to one before the first element in the block2d. Iteration is done in reverse element order. More... | |
row_iterator | row_begin (const size_type row) |
Returns a read/write iterator that points to the first element of the row row in the block2d. Iteration is done in ordinary element order. More... | |
const_row_iterator | row_begin (const size_type row) const |
Returns a read-only iterator that points to the first element of the row row in the block2d. Iteration is done in ordinary element order. More... | |
col_iterator | col_begin (const size_type col) |
Returns a read/write iterator that points to the first element of the column column in the block2d. Iteration is done modulo the number of columns. More... | |
const_col_iterator | col_begin (const size_type col) const |
Returns a read-only iterator that points to the first element of the column column in the block2d. Iteration is done modulo the number of columns. More... | |
row_iterator | row_end (const size_type row) |
Returns a read/write iterator that points one past the end element of the row row in the block2d. Iteration is done in ordinary element order. More... | |
const_row_iterator | row_end (const size_type row) const |
Returns a read-only iterator that points one past the end element of the row row in the block2d. Iteration is done in ordinary element order. More... | |
col_iterator | col_end (const size_type col) |
Returns a read/write iterator that points one past the end element of the column column in the block2d. Iteration is done modulo the number of columns. More... | |
const_col_iterator | col_end (const size_type col) const |
Returns a read-only iterator that points one past the end element of the column column in the block2d. Iteration is done modulo the number of columns. More... | |
row_range_iterator | row_begin (const size_type row, const slip::Range< int > &range) |
Returns a read/write iterator that points to the first element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
row_range_iterator | row_end (const size_type row, const slip::Range< int > &range) |
Returns a read/write iterator that points one past the end element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
const_row_range_iterator | row_begin (const size_type row, const slip::Range< int > &range) const |
Returns a read-only iterator that points to the first element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
const_row_range_iterator | row_end (const size_type row, const slip::Range< int > &range) const |
Returns a read_only iterator that points one past the last element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
col_range_iterator | col_begin (const size_type col, const slip::Range< int > &range) |
Returns a read-write iterator that points to the first element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
col_range_iterator | col_end (const size_type col, const slip::Range< int > &range) |
Returns a read-write iterator that points to the past the end element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
const_col_range_iterator | col_begin (const size_type col, const slip::Range< int > &range) const |
Returns a read-only iterator that points to the first element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
const_col_range_iterator | col_end (const size_type col, const slip::Range< int > &range) const |
Returns a read-only iterator that points to the past the end element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range. More... | |
reverse_row_iterator | row_rbegin (const size_type row) |
Returns a read/write reverse iterator that points to the last element of the row row in the block2d. Iteration is done in the reverse element order. More... | |
const_reverse_row_iterator | row_rbegin (const size_type row) const |
Returns a read-only reverse iterator that points to the last element of the row row in the block2d. Iteration is done in the reverse element order. More... | |
reverse_col_iterator | col_rbegin (const size_type col) |
Returns a read/write reverse iterator that points to the last element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order. More... | |
const_reverse_col_iterator | col_rbegin (const size_type col) const |
Returns a read-only reverse iterator that points to the last element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order. More... | |
reverse_row_iterator | row_rend (const size_type row) |
Returns a read/write reverse iterator that points one past the first element of the row row in the block2d. Iteration is done in the reverse element order. More... | |
const_reverse_row_iterator | row_rend (const size_type row) const |
Returns a read-only reverse iterator that points one past the first element of the row row in the block2d. Iteration is done in the reverse element order. More... | |
reverse_col_iterator | col_rend (const size_type col) |
Returns a read/write reverse iterator that points one past the first element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order. More... | |
const_reverse_col_iterator | col_rend (const size_type col) const |
Returns a read-only reverse iterator that points one past the first element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order. More... | |
reverse_row_range_iterator | row_rbegin (const size_type row, const slip::Range< int > &range) |
Returns a read-write iterator that points to the last element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
reverse_row_range_iterator | row_rend (const size_type row, const slip::Range< int > &range) |
Returns a read-write iterator that points one before the first element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
const_reverse_row_range_iterator | row_rbegin (const size_type row, const slip::Range< int > &range) const |
Returns a read-only iterator that points to the last element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
const_reverse_row_range_iterator | row_rend (const size_type row, const slip::Range< int > &range) const |
Returns a read-only iterator that points one before the first element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
reverse_col_range_iterator | col_rbegin (const size_type col, const slip::Range< int > &range) |
Returns a read-write iterator that points to the last element of the Range range of the col col in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
reverse_col_range_iterator | col_rend (const size_type col, const slip::Range< int > &range) |
Returns a read-write iterator that points to one before the first element of the Range range of the col col in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
const_reverse_col_range_iterator | col_rbegin (const size_type col, const slip::Range< int > &range) const |
Returns a read_only iterator that points to the last element of the Range & range of the col col in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
const_reverse_col_range_iterator | col_rend (const size_type col, const slip::Range< int > &range) const |
Returns a read-only iterator that points to the first element of the Range range of the col col in the block2d. Iteration is done in the reverse element order according to the Range. More... | |
iterator2d | upper_left () |
Returns a read/write iterator2d that points to the first element of the block2d. It points to the upper left element of the block2d. More... | |
const_iterator2d | upper_left () const |
Returns a read-only iterator2d that points to the first element of the block2d. It points to the upper left element of the block2d. More... | |
iterator2d | bottom_right () |
Returns a read/write iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the block2d. More... | |
const_iterator2d | bottom_right () const |
Returns a read-only iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the block2d. More... | |
iterator2d | upper_left (const Box2d< int > &box) |
Returns a read/write iterator2d that points to the first element of the block2d. It points to the upper left element of the Box2d associated to the block2d. More... | |
const_iterator2d | upper_left (const Box2d< int > &box) const |
Returns a read only iterator2d that points to the first element of the block2d. It points to the upper left element of the Box2d associated to the block2d. More... | |
iterator2d | bottom_right (const Box2d< int > &box) |
Returns a read/write iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the Box2d associated to the block2d. More... | |
const_iterator2d | bottom_right (const Box2d< int > &box) const |
Returns a read only iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the Box2d associated to the block2d. More... | |
iterator2d_range | upper_left (const Range< int > &row_range, const Range< int > &col_range) |
Returns a read/write iterator2d_range that points to the upper left element of the ranges row_range and col_range associated to the block2d. More... | |
iterator2d_range | bottom_right (const Range< int > &row_range, const Range< int > &col_range) |
Returns a read/write iterator2d_range that points to the past the end bottom right element of the ranges row_range and col_range associated to the block2d. More... | |
const_iterator2d_range | upper_left (const Range< int > &row_range, const Range< int > &col_range) const |
Returns a read-only iterator2d_range that points to the to the upper left element of the ranges row_range and col_range associated to the block2d. More... | |
const_iterator2d_range | bottom_right (const Range< int > &row_range, const Range< int > &col_range) const |
Returns a read-only iterator2d_range that points to the past the end bottom right element of the ranges row_range and col_range associated to the block2d. More... | |
iterator2d_range | upper_left (const Range< int > &range) |
Returns a read/write iterator2d_range that points to the upper left element of the Range range associated to the block2d. The same range is applied for rows and cols. More... | |
iterator2d_range | bottom_right (const Range< int > &range) |
Returns a read/write iterator2d_range that points to the past the end bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols. More... | |
const_iterator2d_range | upper_left (const Range< int > &range) const |
Returns a read-only iterator2d_range that points to the to the upper left element of the Range range associated to the block2d. More... | |
const_iterator2d_range | bottom_right (const Range< int > &range) const |
Returns a read-only const_iterator2d_range that points to the past the end bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols. More... | |
reverse_iterator2d | rupper_left () |
Returns a read/write reverse iterator2d. It points to the bottom right element of the block2d. Iteration is done within the block2d in the reverse order. More... | |
reverse_iterator2d | rbottom_right () |
Returns a read/write reverse iterator2d. It points to past the upper left element of the block2d. Iteration is done in the reverse order. More... | |
const_reverse_iterator2d | rupper_left () const |
Returns a read only reverse iterator2d that points. It points to the bottom right element of the block2d. Iteration is done within the block2d in the reverse order. More... | |
const_reverse_iterator2d | rbottom_right () const |
Returns a read only reverse iterator2d. It points to past the upper left element of the block2d. Iteration is done in the reverse order. More... | |
reverse_iterator2d | rupper_left (const Box2d< int > &box) |
Returns a read/write reverse iterator2d. It points to the bottom right element of the Box2d associated to the block2d. Iteration is done in the reverse order. More... | |
reverse_iterator2d | rbottom_right (const Box2d< int > &box) |
Returns a read/write reverse iterator2d. It points to one before the upper left element of the Box2d box associated to the block2d. More... | |
const_reverse_iterator2d | rupper_left (const Box2d< int > &box) const |
Returns a read only reverse iterator2d. It points to the bottom right element of the Box2d box associated to the block2d. Iteration is done in the reverse order. More... | |
const_reverse_iterator2d | rbottom_right (const Box2d< int > &box) const |
Returns a read-only reverse iterator2d. It points to one before the element of the bottom right element of the Box2d box associated to the block2d. More... | |
reverse_iterator2d_range | rupper_left (const Range< int > &row_range, const Range< int > &col_range) |
Returns a read/write reverse_iterator2d_range that points to the past the bottom right element of the ranges row_range and col_range associated to the block2d. Iteration is done in the reverse order. More... | |
reverse_iterator2d_range | rbottom_right (const Range< int > &row_range, const Range< int > &col_range) |
Returns a read/write reverse_iterator2d_range that points to one before the upper left element of the ranges row_range and col_range associated to the block2d. Iteration is done in the reverse order. More... | |
const_reverse_iterator2d_range | rupper_left (const Range< int > &row_range, const Range< int > &col_range) const |
Returns a read-only reverse_iterator2d_range that points to the past the bottom right element of the ranges row_range and col_range associated to the block2d. Iteration is done in the reverse order. More... | |
const_reverse_iterator2d_range | rbottom_right (const Range< int > &row_range, const Range< int > &col_range) const |
Returns a read-only reverse_iterator2d_range that points to one before the upper left element of the ranges row_range and col_range associated to the block2d.Iteration is done in the reverse order. More... | |
reverse_iterator2d_range | rupper_left (const Range< int > &range) |
Returns a read/write reverse_iterator2d_range that points to the bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order. More... | |
reverse_iterator2d_range | rbottom_right (const Range< int > &range) |
Returns a read/write reverse_iterator2d_range that points to one before the upper left element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order. More... | |
const_reverse_iterator2d_range | rupper_left (const Range< int > &range) const |
Returns a read-only reverse_iterator2d_range that points to the to the bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order. More... | |
const_reverse_iterator2d_range | rbottom_right (const Range< int > &range) const |
Returns a read_only reverse_iterator2d_range that points to one before the upper left element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order. More... | |
Assignment methods | |
void | fill (const T &value) |
Fills the container range [begin(),begin()+SIZE) with copies of value. More... | |
void | fill (const T *value) |
Fills the container range [begin(),begin()+SIZE) with a copy of the value array. More... | |
template<typename InputIterator > | |
void | fill (InputIterator first, InputIterator last) |
Fills the container range [begin(),begin()+SIZE) with a copy of the range [first,last) More... | |
self & | operator= (const T &value) |
Assign all the elments of the block2d by value. More... | |
Element access operators | |
pointer | operator[] (const size_type i) |
Subscript access to the row datas contained in the block2d. More... | |
const_pointer | operator[] (const size_type i) const |
Subscript access to the row datas contained in the block2d. More... | |
reference | operator() (const size_type i, const size_type j) |
Subscript access to the data contained in the block2d. More... | |
const_reference | operator() (const size_type i, const size_type j) const |
Subscript access to the data contained in the block2d. More... | |
reference | operator() (const Point2d< size_type > &point2d) |
Subscript access to the data contained in the block2d. More... | |
const_reference | operator() (const Point2d< size_type > &point2d) const |
Subscript access to the data contained in the block2d. More... | |
Static Public Member Functions | |
static size_type | dim1 () |
Returns the number of rows (first dimension size) in the block2d. More... | |
static size_type | rows () |
Returns the number of rows (first dimension size) in the block2d. More... | |
static size_type | dim2 () |
Returns the number of columns (second dimension size) in the block2d. More... | |
static size_type | columns () |
Returns the number of columns (second dimension size) in the block2d. More... | |
static size_type | cols () |
Returns the number of columns (second dimension size) in the block2d. More... | |
static size_type | size () |
Returns the number of elements in the block2d. More... | |
static size_type | max_size () |
Returns the maximal size (number of elements) in the block2d. More... | |
static bool | empty () |
Returns true if the block is empty. (Thus size == 0) More... | |
Public Attributes | |
T | data [SIZE] |
Data array storage of the block2d. More... | |
Static Public Attributes | |
static const std::size_t | SIZE = NR * NC |
Size of the block2d. More... | |
static const std::size_t | DIM = 2 |
Friends | |
class | boost::serialization::access |
i/o operators | |
std::ostream & | operator<< (std::ostream &out, const block2d< T, NR, NC > &b) |
Write the block2d to an ouput stream. More... | |
Comparison operators | |
bool | operator== (const block2d< T, NR, NC > &x, const block2d< T, NR, NC > &y) |
Block2d equality comparison. More... | |
bool | operator!= (const block2d< T, NR, NC > &x, const block2d< T, NR, NC > &y) |
Block2d inequality comparison. More... | |
bool | operator< (const block2d< T, NR, NC > &x, const block2d< T, NR, NC > &y) |
Less than comparison operator (block2d ordering relation) More... | |
bool | operator> (const block2d< T, NR, NC > &x, const block2d< T, NR, NC > &y) |
More than comparison operator. More... | |
bool | operator<= (const block2d< T, NR, NC > &x, const block2d< T, NR, NC > &y) |
Less than equal comparison operator. More... | |
bool | operator>= (const block2d< T, NR, NC > &x, const block2d< T, NR, NC > &y) |
More than equal comparison operator. More... | |
This is a two-dimensional static and generic container. This container statisfies the BidirectionnalContainer concepts of the STL. It is also an 2d extension of the RandomAccessContainer concept. That is to say the bracket element access is replaced by the double bracket element access.
T | Type of object in the block2d |
NR | number of row of the block2d |
NC | number of column of the block2d |
Definition at line 124 of file Block2d.hpp.
typedef slip::kstride_iterator<pointer,NC> slip::block2d< T, NR, NC >::col_iterator |
Definition at line 198 of file Block2d.hpp.
typedef slip::stride_iterator<col_iterator> slip::block2d< T, NR, NC >::col_range_iterator |
Definition at line 208 of file Block2d.hpp.
typedef slip::kstride_iterator<const_pointer,NC> slip::block2d< T, NR, NC >::const_col_iterator |
Definition at line 199 of file Block2d.hpp.
typedef slip::stride_iterator<const_col_iterator> slip::block2d< T, NR, NC >::const_col_range_iterator |
Definition at line 209 of file Block2d.hpp.
typedef const_iterator2d slip::block2d< T, NR, NC >::const_default_iterator |
Definition at line 230 of file Block2d.hpp.
typedef const_pointer slip::block2d< T, NR, NC >::const_iterator |
Definition at line 190 of file Block2d.hpp.
typedef slip::const_iterator2d_box<const_self> slip::block2d< T, NR, NC >::const_iterator2d |
Definition at line 204 of file Block2d.hpp.
typedef slip::const_iterator2d_range<const_self> slip::block2d< T, NR, NC >::const_iterator2d_range |
Definition at line 211 of file Block2d.hpp.
typedef const value_type* slip::block2d< T, NR, NC >::const_pointer |
Definition at line 182 of file Block2d.hpp.
typedef const value_type& slip::block2d< T, NR, NC >::const_reference |
Definition at line 184 of file Block2d.hpp.
typedef std::reverse_iterator<const_col_iterator> slip::block2d< T, NR, NC >::const_reverse_col_iterator |
Definition at line 217 of file Block2d.hpp.
typedef std::reverse_iterator<const_col_range_iterator> slip::block2d< T, NR, NC >::const_reverse_col_range_iterator |
Definition at line 223 of file Block2d.hpp.
typedef std::reverse_iterator<const_iterator> slip::block2d< T, NR, NC >::const_reverse_iterator |
Definition at line 193 of file Block2d.hpp.
typedef std::reverse_iterator<const_iterator2d> slip::block2d< T, NR, NC >::const_reverse_iterator2d |
Definition at line 219 of file Block2d.hpp.
typedef std::reverse_iterator<const_iterator2d_range> slip::block2d< T, NR, NC >::const_reverse_iterator2d_range |
Definition at line 225 of file Block2d.hpp.
typedef std::reverse_iterator<const_iterator> slip::block2d< T, NR, NC >::const_reverse_row_iterator |
Definition at line 215 of file Block2d.hpp.
typedef std::reverse_iterator<const_row_range_iterator> slip::block2d< T, NR, NC >::const_reverse_row_range_iterator |
Definition at line 221 of file Block2d.hpp.
typedef const_pointer slip::block2d< T, NR, NC >::const_row_iterator |
Definition at line 197 of file Block2d.hpp.
typedef slip::stride_iterator<const_pointer> slip::block2d< T, NR, NC >::const_row_range_iterator |
Definition at line 207 of file Block2d.hpp.
typedef const block2d<T,NR,NC> slip::block2d< T, NR, NC >::const_self |
Definition at line 179 of file Block2d.hpp.
typedef iterator2d slip::block2d< T, NR, NC >::default_iterator |
Definition at line 229 of file Block2d.hpp.
typedef ptrdiff_t slip::block2d< T, NR, NC >::difference_type |
Definition at line 186 of file Block2d.hpp.
typedef pointer slip::block2d< T, NR, NC >::iterator |
Definition at line 189 of file Block2d.hpp.
typedef slip::iterator2d_box<self> slip::block2d< T, NR, NC >::iterator2d |
Definition at line 203 of file Block2d.hpp.
typedef slip::iterator2d_range<self> slip::block2d< T, NR, NC >::iterator2d_range |
Definition at line 210 of file Block2d.hpp.
typedef value_type* slip::block2d< T, NR, NC >::pointer |
Definition at line 181 of file Block2d.hpp.
typedef value_type& slip::block2d< T, NR, NC >::reference |
Definition at line 183 of file Block2d.hpp.
typedef std::reverse_iterator<col_iterator> slip::block2d< T, NR, NC >::reverse_col_iterator |
Definition at line 216 of file Block2d.hpp.
typedef std::reverse_iterator<col_range_iterator> slip::block2d< T, NR, NC >::reverse_col_range_iterator |
Definition at line 222 of file Block2d.hpp.
typedef std::reverse_iterator<iterator> slip::block2d< T, NR, NC >::reverse_iterator |
Definition at line 192 of file Block2d.hpp.
typedef std::reverse_iterator<iterator2d> slip::block2d< T, NR, NC >::reverse_iterator2d |
Definition at line 218 of file Block2d.hpp.
typedef std::reverse_iterator<iterator2d_range> slip::block2d< T, NR, NC >::reverse_iterator2d_range |
Definition at line 224 of file Block2d.hpp.
typedef std::reverse_iterator<iterator> slip::block2d< T, NR, NC >::reverse_row_iterator |
Definition at line 214 of file Block2d.hpp.
typedef std::reverse_iterator<row_range_iterator> slip::block2d< T, NR, NC >::reverse_row_range_iterator |
Definition at line 220 of file Block2d.hpp.
typedef pointer slip::block2d< T, NR, NC >::row_iterator |
Definition at line 196 of file Block2d.hpp.
typedef slip::stride_iterator<pointer> slip::block2d< T, NR, NC >::row_range_iterator |
Definition at line 206 of file Block2d.hpp.
typedef block2d<T,NR,NC> slip::block2d< T, NR, NC >::self |
Definition at line 178 of file Block2d.hpp.
typedef std::size_t slip::block2d< T, NR, NC >::size_type |
Definition at line 187 of file Block2d.hpp.
typedef T slip::block2d< T, NR, NC >::value_type |
Definition at line 177 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points to the first element in the block2d. Iteration is done in ordinary element order.
Definition at line 262 of file Block2d.hpp.
|
inline |
Returns a read-only (constant) iterator that points to the first element in the block2d. Iteration is done in ordinary element order.
Definition at line 286 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the block2d.
Definition at line 1275 of file Block2d.hpp.
|
inline |
Returns a read-only iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the block2d.
Definition at line 1299 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the Box2d associated to the block2d.
box | a Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1388 of file Block2d.hpp.
|
inline |
Returns a read only iterator2d that points to the past the end element of the block2d. It points to past the end element of the bottom right element of the Box2d associated to the block2d.
box | a Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1419 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d_range that points to the past the end bottom right element of the ranges row_range and col_range associated to the block2d.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1487 of file Block2d.hpp.
|
inline |
Returns a read-only iterator2d_range that points to the past the end bottom right element of the ranges row_range and col_range associated to the block2d.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1556 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d_range that points to the past the end bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols.
range | The range of the rows and the cols. |
Definition at line 1623 of file Block2d.hpp.
|
inline |
Returns a read-only const_iterator2d_range that points to the past the end bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols.
range | The range of the rows and the cols. |
Definition at line 1687 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points to the first element of the column column in the block2d. Iteration is done modulo the number of columns.
col | The index of the column to iterate. |
Definition at line 493 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points to the first element of the column column in the block2d. Iteration is done modulo the number of columns.
col | The index of the column to iterate. |
Definition at line 518 of file Block2d.hpp.
|
inline |
Returns a read-write iterator that points to the first element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate |
Definition at line 787 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points to the first element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate. |
Definition at line 860 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points one past the end element of the column column in the block2d. Iteration is done modulo the number of columns.
col | The index of the column to iterate. |
Definition at line 591 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points one past the end element of the column column in the block2d. Iteration is done modulo the number of columns.
col | The index of the column |
Definition at line 616 of file Block2d.hpp.
|
inline |
Returns a read-write iterator that points to the past the end element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate. |
Definition at line 824 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points to the past the end element of the Range range of the col col in the block2d. Iteration is done in ordinary element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate |
Definition at line 898 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator that points to the last element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order.
col | The index of the column to iterate. |
Definition at line 954 of file Block2d.hpp.
|
inline |
Returns a read-only reverse iterator that points to the last element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order.
col | The index of the column to iterate. |
Definition at line 971 of file Block2d.hpp.
|
inline |
Returns a read-write iterator that points to the last element of the Range range of the col col in the block2d. Iteration is done in the reverse element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate. |
Definition at line 1142 of file Block2d.hpp.
|
inline |
Returns a read_only iterator that points to the last element of the Range & range of the col col in the block2d. Iteration is done in the reverse element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate. |
Definition at line 1185 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator that points one past the first element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order.
col | The index of the column to iterate. |
Definition at line 1020 of file Block2d.hpp.
|
inline |
Returns a read-only reverse iterator that points one past the first element of the column column in the block2d. Iteration is done modulo the number of columns and in the reverse element order.
col | The index of the column to iterate. |
Definition at line 1037 of file Block2d.hpp.
|
inline |
Returns a read-write iterator that points to one before the first element of the Range range of the col col in the block2d. Iteration is done in the reverse element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate. |
Definition at line 1163 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points to the first element of the Range range of the col col in the block2d. Iteration is done in the reverse element order according to the Range.
col | The index of the column to iterate. |
range | Range of the column to iterate. |
Definition at line 1206 of file Block2d.hpp.
|
inlinestatic |
Returns the number of columns (second dimension size) in the block2d.
Definition at line 2303 of file Block2d.hpp.
|
inlinestatic |
Returns the number of columns (second dimension size) in the block2d.
Definition at line 2297 of file Block2d.hpp.
|
inlinestatic |
Returns the number of rows (first dimension size) in the block2d.
Definition at line 2282 of file Block2d.hpp.
|
inlinestatic |
Returns the number of columns (second dimension size) in the block2d.
Definition at line 2292 of file Block2d.hpp.
|
inlinestatic |
Returns true if the block is empty. (Thus size == 0)
Definition at line 2318 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points one past the last element in the block2d. Iteration is done in ordinary element order.
Definition at line 308 of file Block2d.hpp.
|
inline |
Returns a read-only (constant) iterator that points one past the last element in the block2d. Iteration is done in ordinary element order.
Definition at line 330 of file Block2d.hpp.
|
inline |
Fills the container range [begin(),begin()+SIZE) with copies of value.
value | A reference-to-const of arbitrary type. |
Definition at line 2045 of file Block2d.hpp.
|
inline |
Fills the container range [begin(),begin()+SIZE) with a copy of the value array.
value | A pointer of arbitrary type. |
Definition at line 2055 of file Block2d.hpp.
|
inline |
Fills the container range [begin(),begin()+SIZE) with a copy of the range [first,last)
first | An input iterator. |
last | An input iterator. |
Definition at line 2069 of file Block2d.hpp.
|
inlinestatic |
Returns the maximal size (number of elements) in the block2d.
Definition at line 2313 of file Block2d.hpp.
|
inline |
Returns the name of the class.
Definition at line 2276 of file Block2d.hpp.
|
inline |
Subscript access to the data contained in the block2d.
i | The index of the row for which the data should be accessed. |
j | The index of the columns for which the data should be accessed. |
This operator allows for easy, 2d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 2201 of file Block2d.hpp.
|
inline |
Subscript access to the data contained in the block2d.
i | The index of the row for which the data should be accessed. |
j | The index of the columns for which the data should be accessed. |
This operator allows for easy, 2d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 2221 of file Block2d.hpp.
|
inline |
Subscript access to the data contained in the block2d.
point2d | A Point2d which indicate the subscripts of the data to access. |
This operator allows for easy, 2d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 2240 of file Block2d.hpp.
|
inline |
Subscript access to the data contained in the block2d.
point2d | A Point2d which indicate the subscripts of the data to access. |
This operator allows for easy, 2d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 2259 of file Block2d.hpp.
|
inline |
Assign all the elments of the block2d by value.
value | A reference-to-const of arbitrary type. |
Definition at line 2082 of file Block2d.hpp.
|
inline |
Subscript access to the row datas contained in the block2d.
i | The index of the row for which data should be accessed. |
This operator allows for easy, 2d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 2166 of file Block2d.hpp.
|
inline |
Subscript access to the row datas contained in the block2d.
i | The index of the row for which data should be accessed. |
This operator allows for easy, 2d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
Definition at line 2182 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator that points to the last element in the block2d. Iteration is done in reverse element order.
Definition at line 353 of file Block2d.hpp.
|
inline |
Returns a read-only (constant) reverse iterator that points to the last element in the block2d. Iteration is done in reverse element order.
Definition at line 375 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator2d. It points to past the upper left element of the block2d. Iteration is done in the reverse order.
Definition at line 1717 of file Block2d.hpp.
|
inline |
Returns a read only reverse iterator2d. It points to past the upper left element of the block2d. Iteration is done in the reverse order.
Definition at line 1747 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator2d. It points to one before the upper left element of the Box2d box associated to the block2d.
box | A Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1787 of file Block2d.hpp.
|
inline |
Returns a read-only reverse iterator2d. It points to one before the element of the bottom right element of the Box2d box associated to the block2d.
box | A Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1827 of file Block2d.hpp.
|
inline |
Returns a read/write reverse_iterator2d_range that points to one before the upper left element of the ranges row_range and col_range associated to the block2d. Iteration is done in the reverse order.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1874 of file Block2d.hpp.
|
inline |
Returns a read-only reverse_iterator2d_range that points to one before the upper left element of the ranges row_range and col_range associated to the block2d.Iteration is done in the reverse order.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1921 of file Block2d.hpp.
|
inline |
Returns a read/write reverse_iterator2d_range that points to one before the upper left element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order.
range | The range of the rows and the cols. |
Definition at line 1967 of file Block2d.hpp.
|
inline |
Returns a read_only reverse_iterator2d_range that points to one before the upper left element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order.
range | The range of the rows and the cols. |
Definition at line 2012 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator that points to one before the first element in the block2d. Iteration is done in reverse element order.
Definition at line 397 of file Block2d.hpp.
|
inline |
Returns a read-only (constant) reverse iterator that points to one before the first element in the block2d. Iteration is done in reverse element order.
Definition at line 420 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points to the first element of the row row in the block2d. Iteration is done in ordinary element order.
row | The index of the row to iterate. |
Definition at line 443 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points to the first element of the row row in the block2d. Iteration is done in ordinary element order.
row | The index of the row to iterate. |
Definition at line 468 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points to the first element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range.
row | The index of the row to iterate. |
range | Range of the row to iterate. |
Definition at line 647 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points to the first element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range.
row | The index of the row to iterate. |
range | Range of the row to iterate. |
Definition at line 716 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points one past the end element of the row row in the block2d. Iteration is done in ordinary element order.
row | The index of the row to iterate. |
Definition at line 542 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points one past the end element of the row row in the block2d. Iteration is done in ordinary element order.
row | The index of the row to iterate. |
Definition at line 567 of file Block2d.hpp.
|
inline |
Returns a read/write iterator that points one past the end element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range.
row | The index of the row to iterate. |
range | Range of the row to iterate. |
Definition at line 683 of file Block2d.hpp.
|
inline |
Returns a read_only iterator that points one past the last element of the Range range of the row row in the block2d. Iteration is done in ordinary element order according to the Range.
row | Row to iterate. |
range | Range of the row to iterate |
Definition at line 753 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator that points to the last element of the row row in the block2d. Iteration is done in the reverse element order.
row | The index of the row to iterate. |
Definition at line 920 of file Block2d.hpp.
|
inline |
Returns a read-only reverse iterator that points to the last element of the row row in the block2d. Iteration is done in the reverse element order.
row | The index of the row to iterate. |
Definition at line 937 of file Block2d.hpp.
|
inline |
Returns a read-write iterator that points to the last element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range.
row | The index of the row to iterate. |
range | Range of the row to iterate. |
Definition at line 1056 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points to the last element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range.
row | The index of the row to iterate. |
range | Range of the row to iterate |
Definition at line 1098 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator that points one past the first element of the row row in the block2d. Iteration is done in the reverse element order.
row | The index of the row to iterate. |
Definition at line 987 of file Block2d.hpp.
|
inline |
Returns a read-only reverse iterator that points one past the first element of the row row in the block2d. Iteration is done in the reverse element order.
row | The index of the row to iterate. |
Definition at line 1003 of file Block2d.hpp.
|
inline |
Returns a read-write iterator that points one before the first element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range.
row | The index of the row to iterate. |
range | Range of the row to iterate. |
Definition at line 1078 of file Block2d.hpp.
|
inline |
Returns a read-only iterator that points one before the first element of the Range range of the row row in the block2d. Iteration is done in the reverse element order according to the Range.
row | The index of the row to iterate. |
range | Range of the row to iterate |
Definition at line 1119 of file Block2d.hpp.
|
inlinestatic |
Returns the number of rows (first dimension size) in the block2d.
Definition at line 2287 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator2d. It points to the bottom right element of the block2d. Iteration is done within the block2d in the reverse order.
Definition at line 1702 of file Block2d.hpp.
|
inline |
Returns a read only reverse iterator2d that points. It points to the bottom right element of the block2d. Iteration is done within the block2d in the reverse order.
Definition at line 1731 of file Block2d.hpp.
|
inline |
Returns a read/write reverse iterator2d. It points to the bottom right element of the Box2d associated to the block2d. Iteration is done in the reverse order.
box | a Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1767 of file Block2d.hpp.
|
inline |
Returns a read only reverse iterator2d. It points to the bottom right element of the Box2d box associated to the block2d. Iteration is done in the reverse order.
box | A Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1806 of file Block2d.hpp.
|
inline |
Returns a read/write reverse_iterator2d_range that points to the past the bottom right element of the ranges row_range and col_range associated to the block2d. Iteration is done in the reverse order.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1849 of file Block2d.hpp.
|
inline |
Returns a read-only reverse_iterator2d_range that points to the past the bottom right element of the ranges row_range and col_range associated to the block2d. Iteration is done in the reverse order.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1898 of file Block2d.hpp.
|
inline |
Returns a read/write reverse_iterator2d_range that points to the bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order.
range | The range of the rows and the cols. |
Definition at line 1944 of file Block2d.hpp.
|
inline |
Returns a read-only reverse_iterator2d_range that points to the to the bottom right element of the Range range associated to the block2d. The same range is applied for rows and cols. Iteration is done in the reverse order.
range | The range of the rows and the cols. |
Definition at line 1990 of file Block2d.hpp.
|
inlinestatic |
Returns the number of elements in the block2d.
Definition at line 2308 of file Block2d.hpp.
|
inline |
Swaps data with another block.
x | A block of the same element type |
Definition at line 2324 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d that points to the first element of the block2d. It points to the upper left element of the block2d.
Definition at line 1231 of file Block2d.hpp.
|
inline |
Returns a read-only iterator2d that points to the first element of the block2d. It points to the upper left element of the block2d.
Definition at line 1253 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d that points to the first element of the block2d. It points to the upper left element of the Box2d associated to the block2d.
box | A Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1330 of file Block2d.hpp.
|
inline |
Returns a read only iterator2d that points to the first element of the block2d. It points to the upper left element of the Box2d associated to the block2d.
box | a Box2d defining the range of indices to iterate within the block2d. |
Definition at line 1359 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d_range that points to the upper left element of the ranges row_range and col_range associated to the block2d.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1454 of file Block2d.hpp.
|
inline |
Returns a read-only iterator2d_range that points to the to the upper left element of the ranges row_range and col_range associated to the block2d.
row_range | The range of the rows. |
col_range | The range of the columns. |
Definition at line 1522 of file Block2d.hpp.
|
inline |
Returns a read/write iterator2d_range that points to the upper left element of the Range range associated to the block2d. The same range is applied for rows and cols.
range | The range of the rows and the cols. |
Definition at line 1592 of file Block2d.hpp.
|
inline |
Returns a read-only iterator2d_range that points to the to the upper left element of the Range range associated to the block2d.
range | The range of the rows and the cols. |
Definition at line 1655 of file Block2d.hpp.
|
friend |
Definition at line 2332 of file Block2d.hpp.
|
friend |
Block2d inequality comparison.
x | A block2d |
y | A block2d of the same type of x |
Definition at line 2384 of file Block2d.hpp.
|
friend |
Less than comparison operator (block2d ordering relation)
x | A block2d |
y | A block2d of the same type of x |
Definition at line 2396 of file Block2d.hpp.
|
friend |
Write the block2d to an ouput stream.
out | output std::ostream |
b | block2d to write to an output stream |
Definition at line 2356 of file Block2d.hpp.
|
friend |
Less than equal comparison operator.
x | A block2d |
y | A block2d of the same type of x |
Definition at line 2413 of file Block2d.hpp.
|
friend |
Block2d equality comparison.
x | A block2d |
y | A block2d of the same type of x |
Definition at line 2375 of file Block2d.hpp.
|
friend |
More than comparison operator.
x | A block2d |
y | A block2d of the same type of x |
Definition at line 2405 of file Block2d.hpp.
|
friend |
More than equal comparison operator.
x | A block2d |
y | A block2d of the same type of x |
Definition at line 2421 of file Block2d.hpp.
T slip::block2d< T, NR, NC >::data[SIZE] |
Data array storage of the block2d.
Definition at line 2330 of file Block2d.hpp.
|
static |
Definition at line 235 of file Block2d.hpp.
|
static |
Size of the block2d.
Definition at line 233 of file Block2d.hpp.