Chemical Data Processing Library C++ API - Version 1.2.0
Public Types | Public Member Functions | Friends | List of all members
CDPL::Math::UnitVector< T > Class Template Reference

#include <Vector.hpp>

+ Inheritance diagram for CDPL::Math::UnitVector< T >:

Public Types

typedef T ValueType
 
typedef const T & Reference
 
typedef const T & ConstReference
 
typedef std::size_t SizeType
 
typedef std::ptrdiff_t DifferenceType
 
typedef VectorReference< SelfTypeClosureType
 
typedef const VectorReference< const SelfTypeConstClosureType
 
typedef Vector< T > VectorTemporaryType
 
- Public Types inherited from CDPL::Math::VectorContainer< UnitVector< T > >
typedef UnitVector< T > ContainerType
 
- Public Types inherited from CDPL::Math::VectorExpression< E >
typedef E ExpressionType
 
- Public Types inherited from CDPL::Math::Expression< E >
typedef E ExpressionType
 

Public Member Functions

 UnitVector ()
 
 UnitVector (SizeType n, SizeType i)
 
 UnitVector (const UnitVector &v)
 
ConstReference operator[] (SizeType i) const
 
ConstReference operator() (SizeType i) const
 
bool isEmpty () const
 
SizeType getSize () const
 
SizeType getIndex () const
 
SizeType getMaxSize () const
 
UnitVectoroperator= (const UnitVector &v)
 
void resize (SizeType n)
 
void swap (UnitVector &v)
 
- Public Member Functions inherited from CDPL::Math::VectorContainer< UnitVector< T > >
const ContainerTypeoperator() () const
 
ContainerTypeoperator() ()
 
- Public Member Functions inherited from CDPL::Math::VectorExpression< E >
const ExpressionTypeoperator() () const
 
ExpressionTypeoperator() ()
 

Friends

void swap (UnitVector &v1, UnitVector &v2)
 

Additional Inherited Members

- Protected Member Functions inherited from CDPL::Math::VectorContainer< UnitVector< T > >
 VectorContainer ()
 
 ~VectorContainer ()
 
- Protected Member Functions inherited from CDPL::Math::VectorExpression< E >
 VectorExpression ()
 
 ~VectorExpression ()
 
- Protected Member Functions inherited from CDPL::Math::Expression< E >
 Expression ()
 
 ~Expression ()
 

Member Typedef Documentation

◆ ValueType

template<typename T >
typedef T CDPL::Math::UnitVector< T >::ValueType

◆ Reference

template<typename T >
typedef const T& CDPL::Math::UnitVector< T >::Reference

◆ ConstReference

template<typename T >
typedef const T& CDPL::Math::UnitVector< T >::ConstReference

◆ SizeType

template<typename T >
typedef std::size_t CDPL::Math::UnitVector< T >::SizeType

◆ DifferenceType

template<typename T >
typedef std::ptrdiff_t CDPL::Math::UnitVector< T >::DifferenceType

◆ ClosureType

template<typename T >
typedef VectorReference<SelfType> CDPL::Math::UnitVector< T >::ClosureType

◆ ConstClosureType

template<typename T >
typedef const VectorReference<const SelfType> CDPL::Math::UnitVector< T >::ConstClosureType

◆ VectorTemporaryType

template<typename T >
typedef Vector<T> CDPL::Math::UnitVector< T >::VectorTemporaryType

Constructor & Destructor Documentation

◆ UnitVector() [1/3]

template<typename T >
CDPL::Math::UnitVector< T >::UnitVector ( )
inline

◆ UnitVector() [2/3]

template<typename T >
CDPL::Math::UnitVector< T >::UnitVector ( SizeType  n,
SizeType  i 
)
inline

◆ UnitVector() [3/3]

template<typename T >
CDPL::Math::UnitVector< T >::UnitVector ( const UnitVector< T > &  v)
inline

Member Function Documentation

◆ operator[]()

template<typename T >
ConstReference CDPL::Math::UnitVector< T >::operator[] ( SizeType  i) const
inline

◆ operator()()

template<typename T >
ConstReference CDPL::Math::UnitVector< T >::operator() ( SizeType  i) const
inline

◆ isEmpty()

template<typename T >
bool CDPL::Math::UnitVector< T >::isEmpty ( ) const
inline

◆ getSize()

template<typename T >
SizeType CDPL::Math::UnitVector< T >::getSize ( ) const
inline

◆ getIndex()

template<typename T >
SizeType CDPL::Math::UnitVector< T >::getIndex ( ) const
inline

◆ getMaxSize()

template<typename T >
SizeType CDPL::Math::UnitVector< T >::getMaxSize ( ) const
inline

◆ operator=()

template<typename T >
UnitVector& CDPL::Math::UnitVector< T >::operator= ( const UnitVector< T > &  v)
inline

◆ resize()

template<typename T >
void CDPL::Math::UnitVector< T >::resize ( SizeType  n)
inline

◆ swap()

template<typename T >
void CDPL::Math::UnitVector< T >::swap ( UnitVector< T > &  v)
inline

Friends And Related Function Documentation

◆ swap

template<typename T >
void swap ( UnitVector< T > &  v1,
UnitVector< T > &  v2 
)
friend

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