cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Typedefs
vctContainerTraits.h File Reference

Basic traits for the cisstVector containers. More...

#include <cstddef>

Go to the source code of this file.

Namespaces

 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

#define _vctContainerTraits_h
#define VCT_CONTAINER_TRAITS_TYPEDEFS (   type)
Value:
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
size_t index_type
Definition: vctContainerTraits.h:36
size_t size_type
Definition: vctContainerTraits.h:35
ptrdiff_t difference_type
Definition: vctContainerTraits.h:38
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.
#define VCT_NARRAY_TRAITS_TYPEDEFS (   dimension)
Value:
typedef size_type dimension_type; \
size_t size_type
Definition: vctContainerTraits.h:35
Implementation of a fixed-size vector using template metaprogramming.
Definition: vctFixedSizeVector.h:52

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