cisst-saw
Loading...
Searching...
No Matches
vctFixedSizeVectorTraits< _elementType, _size, _stride > Class Template Reference

Define common container related types based on the properties of a fixed size container. More...

#include <vctFixedSizeVectorTraits.h>

Public Types

enum  { SIZE = _size }
enum  { STRIDE = _stride }
typedef vctFixedStrideVectorIterator< _elementType, _stride > iterator
typedef vctFixedStrideVectorConstIterator< _elementType, _stride > const_iterator
typedef vctFixedStrideVectorIterator< _elementType, -_stride > reverse_iterator
typedef vctFixedStrideVectorConstIterator< _elementType, -_stride > const_reverse_iterator
typedef value_type array[SIZE]
typedef const value_type const_array[SIZE]

Public Member Functions

 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)

Detailed Description

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
class vctFixedSizeVectorTraits< _elementType, _size, _stride >

Define common container related types based on the properties of a fixed size container.

The types are declared according to the STL requirements for the types declared by a container object. This class is used as a trait to declare the actual containers.

In addition to the STL required types, we declare a few more types for completeness.

Member Typedef Documentation

◆ array

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
typedef value_type vctFixedSizeVectorTraits< _elementType, _size, _stride >::array[SIZE]

Declared for completeness.

◆ const_array

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
typedef const value_type vctFixedSizeVectorTraits< _elementType, _size, _stride >::const_array[SIZE]

Declared for completeness.

◆ const_iterator

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
typedef vctFixedStrideVectorConstIterator<_elementType, _stride> vctFixedSizeVectorTraits< _elementType, _size, _stride >::const_iterator

Const iterator, follows the STL naming convention.

◆ const_reverse_iterator

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
typedef vctFixedStrideVectorConstIterator<_elementType, -_stride> vctFixedSizeVectorTraits< _elementType, _size, _stride >::const_reverse_iterator

Const reverse iterator, follows the STL naming convention.

◆ iterator

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
typedef vctFixedStrideVectorIterator<_elementType, _stride> vctFixedSizeVectorTraits< _elementType, _size, _stride >::iterator

Iterator, follows the STL naming convention.

◆ reverse_iterator

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
typedef vctFixedStrideVectorIterator<_elementType, -_stride> vctFixedSizeVectorTraits< _elementType, _size, _stride >::reverse_iterator

Reverse iterator, follows the STL naming convention.

Member Enumeration Documentation

◆ anonymous enum

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
anonymous enum

Declared to enable inference of the size of the container.

Enumerator
SIZE 

◆ anonymous enum

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
anonymous enum

Declared to enable inference of the stride of the container.

Enumerator
STRIDE 

Member Function Documentation

◆ VCT_CONTAINER_TRAITS_TYPEDEFS()

template<class _elementType, vct::size_type _size, vct::stride_type _stride>
vctFixedSizeVectorTraits< _elementType, _size, _stride >::VCT_CONTAINER_TRAITS_TYPEDEFS ( _elementType )

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