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

#include <Vector.hpp>

+ Inheritance diagram for CDPL::Math::ScalarVector< 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< ScalarVector< T > >
typedef ScalarVector< 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

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

Friends

void swap (ScalarVector &v1, ScalarVector &v2)
 

Additional Inherited Members

- Protected Member Functions inherited from CDPL::Math::VectorContainer< ScalarVector< 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::ScalarVector< T >::ValueType

◆ Reference

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

◆ ConstReference

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

◆ SizeType

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

◆ DifferenceType

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

◆ ClosureType

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

◆ ConstClosureType

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

◆ VectorTemporaryType

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

Constructor & Destructor Documentation

◆ ScalarVector() [1/3]

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

◆ ScalarVector() [2/3]

template<typename T >
CDPL::Math::ScalarVector< T >::ScalarVector ( SizeType  n,
const ValueType v = ValueType() 
)
inline

◆ ScalarVector() [3/3]

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

Member Function Documentation

◆ operator[]()

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

◆ operator()()

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

◆ isEmpty()

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

◆ getSize()

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

◆ getMaxSize()

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

◆ operator=()

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

◆ resize()

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

◆ swap()

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

Friends And Related Function Documentation

◆ swap

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

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