1.4.0
CCC
 
VectorNumT< T > Class Template Reference

#include <VectorNumT.hpp>

Inheritance diagram for VectorNumT< T >:
VectorT< T >

Public Types

typedef VectorT< TParent
 
typedef std::vector< TVector
 
typedef Vector::value_type value_type
 
typedef Vector::size_type size_type
 
typedef Vector::iterator iterator
 
typedef Vector::const_iterator const_iterator
 
typedef Vector::reverse_iterator reverse_iterator
 
typedef Vector::const_reverse_iterator const_reverse_iterator
 
- Public Types inherited from VectorT< T >
typedef std::vector< TVector
 
typedef Vector::value_type value_type
 
typedef Vector::size_type size_type
 
typedef Vector::iterator iterator
 
typedef Vector::const_iterator const_iterator
 
typedef Vector::reverse_iterator reverse_iterator
 
typedef Vector::const_reverse_iterator const_reverse_iterator
 

Public Member Functions

 VectorNumT ()
 
 VectorNumT (const Vector &vec)
 
 VectorNumT (size_type count, const T &value=T())
 
template<class InputIt >
 VectorNumT (InputIt first, InputIt last)
 
 VectorNumT (const VectorNumT &other)=default
 
 VectorNumT (std::initializer_list< T > init)
 
 ~VectorNumT ()=default
 
bool isSame (const VectorNumT &other, double eps=1.e-10) const
 
T sum () const
 
T minimum () const
 
T maximum () const
 
double mean () const
 
double norm () const
 
double innerProduct (const VectorNumT< T > &v) const
 
const VectorNumT< T > & add (const VectorNumT< T > &v)
 
const VectorNumT< T > & subtract (const VectorNumT< T > &v)
 
const VectorNumT< T > & multiply (const VectorNumT< T > &v)
 
const VectorNumT< T > & divide (const VectorNumT< T > &v)
 
const VectorNumT< T > & add (const T &v)
 
const VectorNumT< T > & subtract (const T &v)
 
const VectorNumT< T > & multiply (const T &v)
 
const VectorNumT< T > & divide (const T &v)
 
- Public Member Functions inherited from VectorT< T >
 VectorT ()
 
 VectorT (const Vector &vec)
 
 VectorT (size_type count, const T &value=T())
 
template<class InputIt >
 VectorT (InputIt first, InputIt last)
 
 VectorT (const VectorT &other)=default
 
 VectorT (std::initializer_list< T > init)
 
 VectorT (VectorT &&other) noexcept
 
 ~VectorT ()=default
 
 operator const Vector & () const
 
VectorgetVector () const
 
VectorgetVectorPtr () const
 
VectorToperator= (const Vector &vec)
 
VectorToperator= (const VectorT &other)
 
VectorToperator= (VectorT &&other) noexcept
 
VectorToperator= (std::initializer_list< T > init)
 
bool operator== (const VectorT &other) const
 
bool operator!= (const VectorT &other) const
 
bool operator< (const VectorT &other) const
 
bool operator<= (const VectorT &other) const
 
bool operator> (const VectorT &other) const
 
bool operator>= (const VectorT &other) const
 
const TgetAt (int pos) const
 
void setAt (int pos, const T &v)
 
int length () const
 
const Tat (size_type pos) const
 
Tat (size_type pos)
 
const Toperator[] (size_type pos) const
 
Toperator[] (size_type pos)
 
Tfront ()
 
const Tfront () const
 
Tback ()
 
const Tback () const
 
Tdata ()
 
const Tdata () const
 
const TconstData () const
 
Tsubdata (size_type i=0)
 
const Tsubdata (size_type i=0) const
 
bool empty () const
 
size_type size () const
 
void reserve (size_type new_cap)
 
size_type capacity () const
 
void clear ()
 
void insert (size_type i, const T &value)
 
void insert (size_type i, size_type count, const T &value)
 
iterator insert (const_iterator pos, const_iterator first, const_iterator last)
 
void remove (size_type i)
 
void remove (size_type i, size_type count)
 
iterator erase (const_iterator pos)
 
iterator erase (const_iterator first, const_iterator last)
 
void push_back (const T &value)
 
void push_front (const T &value)
 
void push_back (const T &&value)
 
void push_front (const T &&value)
 
void resize (size_type count)
 
void resize (size_type count, const T &value)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator crend () const
 
VectorToperator<< (const T &value)
 
VectorToperator<< (const VectorT< T > &v)
 
void swap (VectorT &other)
 
bool contains (const T &value) const
 
void fill (const T &value, size_type size=0)
 
template<class InputIt >
void assign (InputIt first, InputIt last)
 
String toString (const AStringFormat *strfmt=nullptr) const
 
void display (const AStringFormat *strfmt=nullptr) const
 

Member Typedef Documentation

◆ const_iterator

template<typename T >
typedef Vector::const_iterator VectorNumT< T >::const_iterator

◆ const_reverse_iterator

template<typename T >
typedef Vector::const_reverse_iterator VectorNumT< T >::const_reverse_iterator

◆ iterator

template<typename T >
typedef Vector::iterator VectorNumT< T >::iterator

◆ Parent

template<typename T >
typedef VectorT<T> VectorNumT< T >::Parent

◆ reverse_iterator

template<typename T >
typedef Vector::reverse_iterator VectorNumT< T >::reverse_iterator

◆ size_type

template<typename T >
typedef Vector::size_type VectorNumT< T >::size_type

◆ value_type

template<typename T >
typedef Vector::value_type VectorNumT< T >::value_type

◆ Vector

template<typename T >
typedef std::vector<T> VectorNumT< T >::Vector

Constructor & Destructor Documentation

◆ VectorNumT() [1/6]

template<typename T >
VectorNumT< T >::VectorNumT ( )
inline

◆ VectorNumT() [2/6]

template<typename T >
VectorNumT< T >::VectorNumT ( const Vector vec)
inline

◆ VectorNumT() [3/6]

template<typename T >
VectorNumT< T >::VectorNumT ( size_type  count,
const T value = T() 
)
inline

◆ VectorNumT() [4/6]

template<typename T >
template<class InputIt >
VectorNumT< T >::VectorNumT ( InputIt  first,
InputIt  last 
)
inline

◆ VectorNumT() [5/6]

template<typename T >
VectorNumT< T >::VectorNumT ( const VectorNumT< T > &  other)
inlinedefault

◆ VectorNumT() [6/6]

template<typename T >
VectorNumT< T >::VectorNumT ( std::initializer_list< T init)
inline

◆ ~VectorNumT()

template<typename T >
VectorNumT< T >::~VectorNumT ( )
inlinedefault

Member Function Documentation

◆ add() [1/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::add ( const T v)
inline

◆ add() [2/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::add ( const VectorNumT< T > &  v)
inline

◆ divide() [1/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::divide ( const T v)
inline

◆ divide() [2/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::divide ( const VectorNumT< T > &  v)
inline

◆ innerProduct()

template<typename T >
double VectorNumT< T >::innerProduct ( const VectorNumT< T > &  v) const
inline

◆ isSame()

template<typename T >
bool VectorNumT< T >::isSame ( const VectorNumT< T > &  other,
double  eps = 1.e-10 
) const
inline

◆ maximum()

template<typename T >
T VectorNumT< T >::maximum
inline

◆ mean()

template<typename T >
double VectorNumT< T >::mean
inline

◆ minimum()

template<typename T >
T VectorNumT< T >::minimum
inline

◆ multiply() [1/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::multiply ( const T v)
inline

◆ multiply() [2/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::multiply ( const VectorNumT< T > &  v)
inline

◆ norm()

template<typename T >
double VectorNumT< T >::norm
inline

◆ subtract() [1/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::subtract ( const T v)
inline

◆ subtract() [2/2]

template<typename T >
const VectorNumT< T > & VectorNumT< T >::subtract ( const VectorNumT< T > &  v)
inline

◆ sum()

template<typename T >
T VectorNumT< T >::sum
inline

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