1.2.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 &v, 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)
 
 ~VectorT ()=default
 
 operator const Vector & () const
 
VectorgetVector () const
 
VectorgetVectorPtr () const
 
VectorToperator= (const Vector &vec)
 
VectorToperator= (const VectorT &other)
 
VectorToperator= (VectorT &&other)
 
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
 

Member Typedef Documentation

template<typename T>
typedef Vector::const_iterator VectorNumT< T >::const_iterator
template<typename T>
typedef Vector::const_reverse_iterator VectorNumT< T >::const_reverse_iterator
template<typename T>
typedef Vector::iterator VectorNumT< T >::iterator
template<typename T>
typedef VectorT<T> VectorNumT< T >::Parent
template<typename T>
typedef Vector::reverse_iterator VectorNumT< T >::reverse_iterator
template<typename T>
typedef Vector::size_type VectorNumT< T >::size_type
template<typename T>
typedef Vector::value_type VectorNumT< T >::value_type
template<typename T>
typedef std::vector<T> VectorNumT< T >::Vector

Constructor & Destructor Documentation

template<typename T>
VectorNumT< T >::VectorNumT ( )
inline
template<typename T>
VectorNumT< T >::VectorNumT ( const Vector vec)
inline
template<typename T>
VectorNumT< T >::VectorNumT ( size_type  count,
const T value = T() 
)
inline
template<typename T>
template<class InputIt >
VectorNumT< T >::VectorNumT ( InputIt  first,
InputIt  last 
)
inline
template<typename T>
VectorNumT< T >::VectorNumT ( const VectorNumT< T > &  other)
inlinedefault
template<typename T>
VectorNumT< T >::VectorNumT ( std::initializer_list< T init)
inline
template<typename T>
VectorNumT< T >::~VectorNumT ( )
inlinedefault

Member Function Documentation

template<typename T>
const VectorNumT< T > & VectorNumT< T >::add ( const VectorNumT< T > &  v)
inline
template<typename T>
const VectorNumT< T > & VectorNumT< T >::add ( const T v)
inline
template<typename T>
const VectorNumT< T > & VectorNumT< T >::divide ( const VectorNumT< T > &  v)
inline
template<typename T>
const VectorNumT< T > & VectorNumT< T >::divide ( const T v)
inline
template<typename T>
double VectorNumT< T >::innerProduct ( const VectorNumT< T > &  v) const
inline
template<typename T >
bool VectorNumT< T >::isSame ( const VectorNumT< T > &  v,
double  eps = 1.e-10 
) const
inline
template<typename T >
T VectorNumT< T >::maximum ( ) const
inline
template<typename T >
double VectorNumT< T >::mean ( ) const
inline
template<typename T >
T VectorNumT< T >::minimum ( ) const
inline
template<typename T>
const VectorNumT< T > & VectorNumT< T >::multiply ( const VectorNumT< T > &  v)
inline
template<typename T>
const VectorNumT< T > & VectorNumT< T >::multiply ( const T v)
inline
template<typename T >
double VectorNumT< T >::norm ( ) const
inline
template<typename T>
const VectorNumT< T > & VectorNumT< T >::subtract ( const VectorNumT< T > &  v)
inline
template<typename T>
const VectorNumT< T > & VectorNumT< T >::subtract ( const T v)
inline
template<typename T >
T VectorNumT< T >::sum ( ) const
inline

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