xmscore  1.0
vector.h File Reference

Vector types for convenience. More...

#include <iostream>
#include <vector>
#include <xmscore/points/pt.h>

Go to the source code of this file.

Typedefs

typedef std::vector< bool > xms::VecBool
 short rename
 
typedef std::vector< char > xms::VecChar
 short rename
 
typedef std::vector< unsigned char > xms::VecUchar
 short rename
 
typedef std::vector< double > xms::VecDbl
 short rename
 
typedef std::vector< float > xms::VecFlt
 short rename
 
typedef std::vector< int > xms::VecInt
 short rename
 
typedef std::vector< unsigned int > xms::VecUint
 short rename
 
typedef std::vector< short > xms::VecShort
 short rename
 
typedef std::vector< std::string > xms::VecStr
 short rename
 
typedef std::vector< void * > xms::VecVoid
 short rename
 
typedef std::vector< std::size_t > xms::VecSizet
 short rename
 
typedef std::vector< VecFlt > xms::VecFlt2d
 short rename
 
typedef std::vector< VecInt > xms::VecInt2d
 short rename
 
typedef std::vector< VecDbl > xms::VecDbl2d
 short rename
 
typedef std::vector< VecStr > xms::VecStr2d
 short rename
 
typedef std::vector< VecSizet > xms::VecSizet2d
 short rename
 
typedef std::vector< VecFlt2d > xms::VecFlt3d
 short rename
 
typedef std::vector< VecInt2d > xms::VecInt3d
 short rename
 
typedef std::vector< VecDbl2d > xms::VecDbl3d
 short rename
 
typedef std::vector< VecStr2d > xms::VecStr3d
 short rename
 
typedef std::vector< VecDbl3d > xms::VecDbl4d
 short rename
 
typedef std::vector< VecFlt3d > xms::VecFlt4d
 short rename
 
typedef std::vector< Pt4d > xms::VecPt4d
 short rename
 
typedef std::vector< Pt3d > xms::VecPt3d
 short rename
 
typedef std::vector< Pt3f > xms::VecPt3f
 short rename
 
typedef std::vector< Pt2d > xms::VecPt2d
 short rename
 
typedef std::vector< Pt2f > xms::VecPt2f
 short rename
 
typedef std::vector< Pt2i > xms::VecPt2i
 short rename
 
typedef std::vector< VecPt2d > xms::VecPt2d2d
 short rename
 
typedef std::vector< VecPt2f > xms::VecPt2f2d
 short rename
 
typedef std::vector< VecPt3d > xms::VecPt3d2d
 short rename
 
typedef std::vector< VecPt3f > xms::VecPt3f2d
 short rename
 
typedef std::vector< VecPt3d2d > xms::VecPt3d3d
 short rename
 

Functions

template<class _T >
std::ostream & xms::operator<< (std::ostream &a_output, const std::vector< _T > &a_value)
 Streams a vector to a_output. More...
 
template<class T >
void xms::stShrinkCapacity (std::vector< T > &v)
 removes any excess capacity in a vector (size() will equal capacity()) More...
 

Detailed Description

Vector types for convenience.

Definition in file vector.h.

Function Documentation

◆ operator<<()

template<class _T >
std::ostream& xms::operator<< ( std::ostream &  a_output,
const std::vector< _T > &  a_value 
)

Streams a vector to a_output.

Parameters
a_outputThe stream.
a_valueThe vector.
Returns
stream reference.

Definition at line 76 of file vector.h.

◆ stShrinkCapacity()

template<class T >
void xms::stShrinkCapacity ( std::vector< T > &  v)

removes any excess capacity in a vector (size() will equal capacity())

Parameters
vA vector

Definition at line 90 of file vector.h.

References xms::stShrinkCapacity().

Referenced by xms::stShrinkCapacity().