Scopira
20080306
|
#include <narray.h>
Public Member Functions | |
nindex (size_t _x, size_t _y, size_t _z=0) | |
ctor | |
nindex (size_t v=0) | |
ctor (implicit) | |
nindex (const this_type &rhs) | |
copy ctor | |
void | clear (size_t v=0) |
clear | |
size_t | product (void) const |
gets it multed | |
size_t | offset (const this_type &c) const |
calc ofset, using this as the size | |
this_type | strides (void) const |
stride offset array | |
nindex< 2 > | shrink (void) const |
returns the same, but one less | |
bool | operator< (const this_type &rhs) const |
comparison | |
bool | operator== (const this_type &rhs) const |
equality | |
size_t | operator* (const this_type &rhs) const |
mult | |
const this_type & | operator= (const this_type &rhs) |
assignment | |
size_t & | x (void) |
ref access | |
size_t | x (void) const |
ref access | |
size_t & | y (void) |
ref access | |
size_t | y (void) const |
ref access | |
size_t & | z (void) |
ref access | |
size_t | z (void) const |
ref access | |
Public Member Functions inherited from scopira::tool::fixed_array< size_t, 3 > | |
size_t * | array (void) |
const size_t * | array (void) const |
size_t * | c_array (void) |
const size_t * | c_array (void) const |
iterator | begin (void) |
const_iterator | begin (void) const |
iterator | end (void) |
const_iterator | end (void) const |
void | clear_zero (void) |
size_t | size (void) const |
bool | empty (void) const |
void | set (size_t idx, const size_t &v) |
const size_t & | get (size_t idx) const |
size_t & | get (size_t idx) |
const size_t & | operator[] (size_t idx) const |
size_t & | operator[] (size_t idx) |
Static Public Member Functions | |
static this_type | steps (void) |
returns [0,1,2] | |
Additional Inherited Members | |
Public Types inherited from scopira::tool::fixed_array< size_t, 3 > | |
enum | |
typedef size_t | data_type |
typedef size_t * | iterator |
typedef const size_t * | const_iterator |
Protected Attributes inherited from scopira::tool::fixed_array< size_t, 3 > | |
size_t | dm_ary [N] |
a 3d coord (specialization)