cisst-saw
Loading...
Searching...
No Matches
vctDynamicMatrixRefOwner< _elementType > Class Template Reference

#include <vctDynamicMatrixRefOwner.h>

Public Types

enum  { DIMENSION = 2 }
typedef vctDynamicMatrixRefOwner< value_typeThisType
typedef vctVarStrideMatrixConstIterator< value_typeconst_iterator
typedef vctVarStrideMatrixConstIterator< value_typeconst_reverse_iterator
typedef vctVarStrideMatrixIterator< value_typeiterator
typedef vctVarStrideMatrixIterator< value_typereverse_iterator

Public Member Functions

 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 VCT_NARRAY_TRAITS_TYPEDEFS (DIMENSION)
 vctDynamicMatrixRefOwner ()
 vctDynamicMatrixRefOwner (size_type rows, size_type cols, stride_type rowStride, stride_type colStride, pointer data)
void SetRef (size_type rows, size_type cols, pointer dataPointer, bool storageOrder)
void SetRef (const nsize_type &sizes, pointer dataPointer, bool storageOrder)
void SetRef (size_type rows, size_type cols, stride_type rowStride, stride_type colStride, pointer data)
void SetRef (const nsize_type &sizes, stride_type rowStride, stride_type colStride, pointer data)
void SetRef (const nsize_type &sizes, const nstride_type &strides, pointer data)
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)
bool IsColMajor (void) const
bool IsRowMajor (void) const
bool IsCompact (void) const
bool StorageOrder (void) const

Protected Member Functions

void UpdateCachedData (void)

Protected Attributes

nsize_type SizesMember
nstride_type StridesMember
bool IsCompactMember
value_typeData

Detailed Description

template<class _elementType>
class vctDynamicMatrixRefOwner< _elementType >

This templated class stores a pointer, a size, and a stride, and allows element access, but does not provide any other operations, and does not own the data

Member Typedef Documentation

◆ const_iterator

template<class _elementType>
typedef vctVarStrideMatrixConstIterator<value_type> vctDynamicMatrixRefOwner< _elementType >::const_iterator

◆ const_reverse_iterator

◆ iterator

template<class _elementType>
typedef vctVarStrideMatrixIterator<value_type> vctDynamicMatrixRefOwner< _elementType >::iterator

◆ reverse_iterator

template<class _elementType>
typedef vctVarStrideMatrixIterator<value_type> vctDynamicMatrixRefOwner< _elementType >::reverse_iterator

◆ ThisType

template<class _elementType>
typedef vctDynamicMatrixRefOwner<value_type> vctDynamicMatrixRefOwner< _elementType >::ThisType

Member Enumeration Documentation

◆ anonymous enum

template<class _elementType>
anonymous enum
Enumerator
DIMENSION 

Constructor & Destructor Documentation

◆ vctDynamicMatrixRefOwner() [1/2]

template<class _elementType>
vctDynamicMatrixRefOwner< _elementType >::vctDynamicMatrixRefOwner ( )
inline

◆ vctDynamicMatrixRefOwner() [2/2]

template<class _elementType>
vctDynamicMatrixRefOwner< _elementType >::vctDynamicMatrixRefOwner ( size_type rows,
size_type cols,
stride_type rowStride,
stride_type colStride,
pointer data )
inline

Member Function Documentation

◆ begin() [1/2]

template<class _elementType>
iterator vctDynamicMatrixRefOwner< _elementType >::begin ( void )
inline

◆ begin() [2/2]

template<class _elementType>
const_iterator vctDynamicMatrixRefOwner< _elementType >::begin ( void ) const
inline

◆ col_stride()

template<class _elementType>
difference_type vctDynamicMatrixRefOwner< _elementType >::col_stride ( void ) const
inline

◆ cols()

template<class _elementType>
size_type vctDynamicMatrixRefOwner< _elementType >::cols ( void ) const
inline

◆ end() [1/2]

template<class _elementType>
iterator vctDynamicMatrixRefOwner< _elementType >::end ( void )
inline

◆ end() [2/2]

template<class _elementType>
const_iterator vctDynamicMatrixRefOwner< _elementType >::end ( void ) const
inline

◆ IsColMajor()

template<class _elementType>
bool vctDynamicMatrixRefOwner< _elementType >::IsColMajor ( void ) const
inline

◆ IsCompact()

template<class _elementType>
bool vctDynamicMatrixRefOwner< _elementType >::IsCompact ( void ) const
inline

◆ IsRowMajor()

template<class _elementType>
bool vctDynamicMatrixRefOwner< _elementType >::IsRowMajor ( void ) const
inline

◆ Pointer() [1/4]

template<class _elementType>
pointer vctDynamicMatrixRefOwner< _elementType >::Pointer ( index_type rowIndex,
index_type colIndex )
inline

◆ Pointer() [2/4]

template<class _elementType>
const_pointer vctDynamicMatrixRefOwner< _elementType >::Pointer ( index_type rowIndex,
index_type colIndex ) const
inline

◆ Pointer() [3/4]

template<class _elementType>
pointer vctDynamicMatrixRefOwner< _elementType >::Pointer ( void )
inline

◆ Pointer() [4/4]

template<class _elementType>
const_pointer vctDynamicMatrixRefOwner< _elementType >::Pointer ( void ) const
inline

◆ rbegin() [1/2]

template<class _elementType>
reverse_iterator vctDynamicMatrixRefOwner< _elementType >::rbegin ( void )
inline

◆ rbegin() [2/2]

template<class _elementType>
const_reverse_iterator vctDynamicMatrixRefOwner< _elementType >::rbegin ( void ) const
inline

◆ rend() [1/2]

template<class _elementType>
reverse_iterator vctDynamicMatrixRefOwner< _elementType >::rend ( void )
inline

◆ rend() [2/2]

template<class _elementType>
const_reverse_iterator vctDynamicMatrixRefOwner< _elementType >::rend ( void ) const
inline

◆ row_stride()

template<class _elementType>
difference_type vctDynamicMatrixRefOwner< _elementType >::row_stride ( void ) const
inline

◆ rows()

template<class _elementType>
size_type vctDynamicMatrixRefOwner< _elementType >::rows ( void ) const
inline

◆ SetRef() [1/5]

template<class _elementType>
void vctDynamicMatrixRefOwner< _elementType >::SetRef ( const nsize_type & sizes,
const nstride_type & strides,
pointer data )
inline

◆ SetRef() [2/5]

template<class _elementType>
void vctDynamicMatrixRefOwner< _elementType >::SetRef ( const nsize_type & sizes,
pointer dataPointer,
bool storageOrder )
inline

◆ SetRef() [3/5]

template<class _elementType>
void vctDynamicMatrixRefOwner< _elementType >::SetRef ( const nsize_type & sizes,
stride_type rowStride,
stride_type colStride,
pointer data )
inline

◆ SetRef() [4/5]

template<class _elementType>
void vctDynamicMatrixRefOwner< _elementType >::SetRef ( size_type rows,
size_type cols,
pointer dataPointer,
bool storageOrder )
inline

◆ SetRef() [5/5]

template<class _elementType>
void vctDynamicMatrixRefOwner< _elementType >::SetRef ( size_type rows,
size_type cols,
stride_type rowStride,
stride_type colStride,
pointer data )
inline

◆ size()

template<class _elementType>
size_type vctDynamicMatrixRefOwner< _elementType >::size ( void ) const
inline

◆ sizes()

template<class _elementType>
const nsize_type & vctDynamicMatrixRefOwner< _elementType >::sizes ( void ) const
inline

◆ StorageOrder()

template<class _elementType>
bool vctDynamicMatrixRefOwner< _elementType >::StorageOrder ( void ) const
inline

◆ strides()

template<class _elementType>
const nstride_type & vctDynamicMatrixRefOwner< _elementType >::strides ( void ) const
inline

◆ UpdateCachedData()

template<class _elementType>
void vctDynamicMatrixRefOwner< _elementType >::UpdateCachedData ( void )
inlineprotected

◆ VCT_CONTAINER_TRAITS_TYPEDEFS()

template<class _elementType>
vctDynamicMatrixRefOwner< _elementType >::VCT_CONTAINER_TRAITS_TYPEDEFS ( _elementType )

◆ VCT_NARRAY_TRAITS_TYPEDEFS()

template<class _elementType>
vctDynamicMatrixRefOwner< _elementType >::VCT_NARRAY_TRAITS_TYPEDEFS ( DIMENSION )

Member Data Documentation

◆ Data

template<class _elementType>
value_type* vctDynamicMatrixRefOwner< _elementType >::Data
protected

◆ IsCompactMember

template<class _elementType>
bool vctDynamicMatrixRefOwner< _elementType >::IsCompactMember
protected

◆ SizesMember

template<class _elementType>
nsize_type vctDynamicMatrixRefOwner< _elementType >::SizesMember
protected

◆ StridesMember

template<class _elementType>
nstride_type vctDynamicMatrixRefOwner< _elementType >::StridesMember
protected

The documentation for this class was generated from the following file: