cisst-saw
|
#include <vctDynamicMatrixOwner.h>
Public Types | |
enum | { DIMENSION = 2 } |
typedef vctDynamicMatrixOwner < value_type > | ThisType |
typedef vctVarStrideMatrixConstIterator < value_type > | const_iterator |
typedef vctVarStrideMatrixConstIterator < value_type > | const_reverse_iterator |
typedef vctVarStrideMatrixIterator < value_type > | iterator |
typedef vctVarStrideMatrixIterator < value_type > | reverse_iterator |
Public Member Functions | |
VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) | |
VCT_NARRAY_TRAITS_TYPEDEFS (DIMENSION) | |
vctDynamicMatrixOwner () | |
vctDynamicMatrixOwner (const nsize_type &newSizes, bool rowMajor=VCT_DEFAULT_STORAGE) | |
vctDynamicMatrixOwner (size_type rows, size_type cols, bool rowMajor=VCT_DEFAULT_STORAGE) | |
~vctDynamicMatrixOwner () | |
size_type | size (void) const |
const nsize_type & | sizes (void) const |
size_type | rows (void) const |
size_type | cols (void) const |
const nstride_type & | strides (void) const |
difference_type | row_stride (void) const |
difference_type | col_stride (void) const |
pointer | Pointer (index_type rowIndex, index_type colIndex) |
pointer | Pointer (void) |
const_pointer | Pointer (index_type rowIndex, index_type colIndex) const |
const_pointer | Pointer (void) const |
const_iterator | begin (void) const |
const_iterator | end (void) const |
iterator | begin (void) |
iterator | end (void) |
const_reverse_iterator | rbegin (void) const |
const_reverse_iterator | rend (void) const |
reverse_iterator | rbegin (void) |
reverse_iterator | rend (void) |
pointer | Release () |
void | Disown (void) |
bool | IsColMajor (void) const |
bool | IsRowMajor (void) const |
bool | IsCompact (void) const |
bool | StorageOrder (void) const |
void | SetSize (size_type rows, size_type cols, bool rowMajor) |
void | SetSize (const nsize_type &newSizes, bool rowMajor) |
pointer | Own (size_type rows, size_type cols, bool rowMajor, pointer data) |
pointer | Own (const nsize_type &newSizes, bool rowMajor, pointer data) |
Protected Attributes | |
nsize_type | SizesMember |
nstride_type | StridesMember |
bool | RowMajor |
value_type * | Data |
This templated class owns a dynamically allocated array, but does not provide any other operations
typedef vctVarStrideMatrixConstIterator<value_type> vctDynamicMatrixOwner< _elementType >::const_iterator |
typedef vctVarStrideMatrixConstIterator<value_type> vctDynamicMatrixOwner< _elementType >::const_reverse_iterator |
typedef vctVarStrideMatrixIterator<value_type> vctDynamicMatrixOwner< _elementType >::iterator |
typedef vctVarStrideMatrixIterator<value_type> vctDynamicMatrixOwner< _elementType >::reverse_iterator |
typedef vctDynamicMatrixOwner<value_type> vctDynamicMatrixOwner< _elementType >::ThisType |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Free the memory allocated for the data pointer. Reset data pointer and size to zero.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Have this owner take ownership of a new data pointer. Return the old data pointer without freeing memory.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Release the currently owned data pointer from being owned. Reset this owner's data pointer and size to zero. Return the old data pointer without freeing memory.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Non-preserving resize operation. This method discards of all the current data of the dynamic array and allocates new space in the requested size.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
vctDynamicMatrixOwner< _elementType >::VCT_CONTAINER_TRAITS_TYPEDEFS | ( | _elementType | ) |
vctDynamicMatrixOwner< _elementType >::VCT_NARRAY_TRAITS_TYPEDEFS | ( | DIMENSION | ) |
|
protected |
|
protected |
|
protected |
|
protected |