SLIP
1.4
|
This a three-dimensional static and generic container. This container statisfies the BidirectionnalContainer concepts of the STL. It is also an 3d extension of the RandomAccessContainer concept. That is to say the bracket element access is replaced by the triple bracket element access. More...
#include <Block3d.hpp>
Public Types | |
typedef T | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef ptrdiff_t | difference_type |
typedef std::size_t | size_type |
typedef pointer | iterator |
typedef const_pointer | const_iterator |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef std::random_access_iterator3d_tag | iterator_category |
Public Member Functions | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
void | fill (const T &val) |
Init the block3d filled it with val value. More... | |
void | fill (const T *val) |
Init the block3d filled it with values contained by val array. More... | |
std::string | name () const |
Returns the name of the class. More... | |
void | swap (block3d< T, NP, NR, NC > &M) |
Swaps the contents of two block3d. More... | |
Static Public Member Functions | |
static std::size_t | dim () |
Returns the dimension of the block3d. More... | |
static std::size_t | dim1 () |
Returns the first dimension of the block3d (number of plans) More... | |
static std::size_t | dim2 () |
Returns the second dimension of the block3d (number of rows) More... | |
static std::size_t | dim3 () |
Returns the third dimension of the block3d (number of columns) More... | |
static std::size_t | size () |
Returns the size (number of elements) of the block3d. More... | |
static std::size_t | size_max () |
Returns the maximal size (number of elements) of the block3d. More... | |
static bool | empty () |
Returns true if the block3d size is 0. More... | |
Public Attributes | |
slip::block2d< T, NR, NC > | data [NP] |
Prints the elements of the block3d on the standard output. More... | |
Static Public Attributes | |
static const std::size_t | SIZE = NP * NR * NC |
static const std::size_t | DIM = 3 |
Friends | |
class | boost::serialization::access |
Operators | |
std::ostream & | operator<< (std::ostream &out, const slip::block3d< T, NP, NR, NC > &b) |
Write the block2d to ab ouput stream. More... | |
bool | operator== (const slip::block3d< T, NP, NR, NC > &x, const slip::block3d< T, NP, NR, NC > &y) |
Equality Compare operator. More... | |
bool | operator!= (const slip::block3d< T, NP, NR, NC > &x, const slip::block3d< T, NP, NR, NC > &y) |
Equality Compare operator. More... | |
bool | operator< (const slip::block3d< T, NP, NR, NC > &x, const slip::block3d< T, NP, NR, NC > &y) |
LessThan Compare operator. More... | |
bool | operator> (const slip::block3d< T, NP, NR, NC > &x, const slip::block3d< T, NP, NR, NC > &y) |
MoreThan Compare operator. More... | |
bool | operator<= (const slip::block3d< T, NP, NR, NC > &x, const slip::block3d< T, NP, NR, NC > &y) |
LessThan Compare operator. More... | |
bool | operator>= (const slip::block3d< T, NP, NR, NC > &x, const slip::block3d< T, NP, NR, NC > &y) |
MoreThan Compare operator. More... | |
slip::block2d< T, NR, NC > & | operator[] (const std::size_t i) |
Returns a pointer to the i'th plan of the block3d. More... | |
const slip::block2d< T, NR, NC > & | operator[] (const std::size_t i) const |
Returns a const pointer to the i'th plan of the block3d. More... | |
T * | operator() (const std::size_t i, const std::size_t j) |
Returns a reference to the element at the i'th plan, the j'th row and the k'th column. More... | |
const T * | operator() (const std::size_t i, const std::size_t j) const |
Returns a reference to the element at the i'th plan, the j'th row. More... | |
T & | operator() (const std::size_t i, const std::size_t j, const std::size_t k) |
Returns a reference to the element at the i'th plan, the j'th row and the k'th column. More... | |
const T & | operator() (const std::size_t i, const std::size_t j, const std::size_t k) const |
Returns a reference to the element at the i'th plan, the j'th row and the k'th column. More... | |
This a three-dimensional static and generic container. This container statisfies the BidirectionnalContainer concepts of the STL. It is also an 3d extension of the RandomAccessContainer concept. That is to say the bracket element access is replaced by the triple bracket element access.
T | Type of object in the block3d |
NP | number of plan of the block3d |
NR | number of row of the block3d |
NC | number of column of the block3d |
Definition at line 96 of file Block3d.hpp.
typedef const_pointer slip::block3d< T, NP, NR, NC >::const_iterator |
Definition at line 151 of file Block3d.hpp.
typedef const value_type* slip::block3d< T, NP, NR, NC >::const_pointer |
Definition at line 143 of file Block3d.hpp.
typedef const value_type& slip::block3d< T, NP, NR, NC >::const_reference |
Definition at line 145 of file Block3d.hpp.
typedef std::reverse_iterator<const_iterator> slip::block3d< T, NP, NR, NC >::const_reverse_iterator |
Definition at line 154 of file Block3d.hpp.
typedef ptrdiff_t slip::block3d< T, NP, NR, NC >::difference_type |
Definition at line 147 of file Block3d.hpp.
typedef pointer slip::block3d< T, NP, NR, NC >::iterator |
Definition at line 150 of file Block3d.hpp.
typedef std::random_access_iterator3d_tag slip::block3d< T, NP, NR, NC >::iterator_category |
Definition at line 157 of file Block3d.hpp.
typedef value_type* slip::block3d< T, NP, NR, NC >::pointer |
Definition at line 142 of file Block3d.hpp.
typedef value_type& slip::block3d< T, NP, NR, NC >::reference |
Definition at line 144 of file Block3d.hpp.
typedef std::reverse_iterator<iterator> slip::block3d< T, NP, NR, NC >::reverse_iterator |
Definition at line 153 of file Block3d.hpp.
typedef std::size_t slip::block3d< T, NP, NR, NC >::size_type |
Definition at line 148 of file Block3d.hpp.
typedef T slip::block3d< T, NP, NR, NC >::value_type |
Definition at line 141 of file Block3d.hpp.
|
inline |
Definition at line 385 of file Block3d.hpp.
|
inline |
Definition at line 399 of file Block3d.hpp.
|
inlinestatic |
Returns the dimension of the block3d.
Definition at line 338 of file Block3d.hpp.
|
inlinestatic |
Returns the first dimension of the block3d (number of plans)
Definition at line 340 of file Block3d.hpp.
|
inlinestatic |
Returns the second dimension of the block3d (number of rows)
Definition at line 342 of file Block3d.hpp.
|
inlinestatic |
Returns the third dimension of the block3d (number of columns)
Definition at line 344 of file Block3d.hpp.
|
inlinestatic |
Returns true if the block3d size is 0.
Definition at line 350 of file Block3d.hpp.
|
inline |
Definition at line 392 of file Block3d.hpp.
|
inline |
Definition at line 406 of file Block3d.hpp.
|
inline |
Init the block3d filled it with val value.
val | init value |
Definition at line 603 of file Block3d.hpp.
|
inline |
Init the block3d filled it with values contained by val array.
val | init array value |
Definition at line 613 of file Block3d.hpp.
|
inline |
Returns the name of the class.
Definition at line 335 of file Block3d.hpp.
|
inline |
Returns a reference to the element at the i'th plan, the j'th row and the k'th column.
i | index of the plan |
j | index of the row |
Definition at line 558 of file Block3d.hpp.
|
inline |
Returns a reference to the element at the i'th plan, the j'th row.
i | index of the plan |
j | index of the row |
Definition at line 568 of file Block3d.hpp.
|
inline |
Returns a reference to the element at the i'th plan, the j'th row and the k'th column.
i | index of the plan |
j | index of the row |
k | index of the column |
Definition at line 579 of file Block3d.hpp.
|
inline |
Returns a reference to the element at the i'th plan, the j'th row and the k'th column.
i | index of the plan |
j | index of the row |
k | index of the column |
Definition at line 591 of file Block3d.hpp.
|
inline |
Returns a pointer to the i'th plan of the block3d.
i | index of the plan to return |
Definition at line 442 of file Block3d.hpp.
|
inline |
Returns a const pointer to the i'th plan of the block3d.
i | index of the plan to return |
Definition at line 450 of file Block3d.hpp.
|
inline |
Definition at line 414 of file Block3d.hpp.
|
inline |
Definition at line 428 of file Block3d.hpp.
|
inline |
Definition at line 421 of file Block3d.hpp.
|
inline |
Definition at line 435 of file Block3d.hpp.
|
inlinestatic |
Returns the size (number of elements) of the block3d.
Definition at line 346 of file Block3d.hpp.
|
inlinestatic |
Returns the maximal size (number of elements) of the block3d.
Definition at line 348 of file Block3d.hpp.
|
inline |
Swaps the contents of two block3d.
M | block3d to swap with |
Definition at line 623 of file Block3d.hpp.
|
friend |
Definition at line 365 of file Block3d.hpp.
|
friend |
Equality Compare operator.
Definition at line 488 of file Block3d.hpp.
|
friend |
LessThan Compare operator.
Definition at line 503 of file Block3d.hpp.
|
friend |
Write the block2d to ab ouput stream.
out | output stream |
b | block3d to write to an output stream |
Definition at line 459 of file Block3d.hpp.
|
friend |
LessThan Compare operator.
Definition at line 531 of file Block3d.hpp.
|
friend |
Equality Compare operator.
Definition at line 474 of file Block3d.hpp.
|
friend |
MoreThan Compare operator.
Definition at line 517 of file Block3d.hpp.
|
friend |
MoreThan Compare operator.
Definition at line 545 of file Block3d.hpp.
slip::block2d<T,NR, NC> slip::block3d< T, NP, NR, NC >::data[NP] |
Prints the elements of the block3d on the standard output.
Definition at line 361 of file Block3d.hpp.
|
static |
Definition at line 161 of file Block3d.hpp.
|
static |
Definition at line 160 of file Block3d.hpp.