cisst-saw
Loading...
Searching...
No Matches
vctContainerTraits.h File Reference

Basic traits for the cisstVector containers. More...

#include <cstddef>

Go to the source code of this file.

Namespaces

namespace  vct

Macros

#define _vctContainerTraits_h
#define VCT_CONTAINER_TRAITS_TYPEDEFS(type)
#define VCT_NARRAY_TRAITS_TYPEDEFS(dimension)

Typedefs

typedef size_t vct::size_type
typedef size_t vct::index_type
typedef ptrdiff_t vct::stride_type
typedef ptrdiff_t vct::difference_type

Detailed Description

Basic traits for the cisstVector containers.

Macro Definition Documentation

◆ _vctContainerTraits_h

#define _vctContainerTraits_h

◆ VCT_CONTAINER_TRAITS_TYPEDEFS

#define VCT_CONTAINER_TRAITS_TYPEDEFS ( type)
Value:
typedef vct::size_type size_type; \
typedef vct::index_type index_type; \
typedef vct::difference_type difference_type; \
typedef vct::stride_type stride_type; \
typedef type value_type; \
typedef value_type & reference; \
typedef const value_type & const_reference; \
typedef value_type * pointer; \
typedef const value_type * const_pointer; \
typedef double NormType; \
typedef double AngleType
ptrdiff_t difference_type
Definition vctContainerTraits.h:38
size_t size_type
Definition vctContainerTraits.h:35
size_t index_type
Definition vctContainerTraits.h:36
ptrdiff_t stride_type
Definition vctContainerTraits.h:37

Macro used to define multiple types based on the type of elements. This will define size_type, index_type, difference_type, stride_type, value_type, reference, const_reference, pointer, const_pointer, NormType (double) and AngleType (double). Most of these types are introduced and named for STL compatibility.

Parameters
typeType of element, e.g. double, float, char.

◆ VCT_NARRAY_TRAITS_TYPEDEFS

#define VCT_NARRAY_TRAITS_TYPEDEFS ( dimension)
Value:
typedef size_type dimension_type; \
Implementation of a fixed-size vector using template metaprogramming.
Definition vctFixedSizeVector.h:54

Macro used to define nArray-specific types based on the type of elements. This will define nsize_type, nstride_type, and dimension_type.