1.4.0
CCC
 
VectorT< T > Class Template Reference

#include <VectorT.hpp>

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

Public Types

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

 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 VectorT< T >::const_iterator

◆ const_reverse_iterator

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

◆ iterator

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

◆ reverse_iterator

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

◆ size_type

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

◆ value_type

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

◆ Vector

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

Constructor & Destructor Documentation

◆ VectorT() [1/7]

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

◆ VectorT() [2/7]

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

◆ VectorT() [3/7]

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

◆ VectorT() [4/7]

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

◆ VectorT() [5/7]

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

◆ VectorT() [6/7]

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

◆ VectorT() [7/7]

template<typename T >
VectorT< T >::VectorT ( VectorT< T > &&  other)
inlinenoexcept

◆ ~VectorT()

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

Member Function Documentation

◆ assign()

template<typename T >
template<class InputIt >
void VectorT< T >::assign ( InputIt  first,
InputIt  last 
)
inline

◆ at() [1/2]

template<typename T >
T & VectorT< T >::at ( size_type  pos)
inline

◆ at() [2/2]

template<typename T >
const T & VectorT< T >::at ( size_type  pos) const
inline

◆ back() [1/2]

template<typename T >
T& VectorT< T >::back ( )
inline

◆ back() [2/2]

template<typename T >
const T& VectorT< T >::back ( ) const
inline

◆ begin() [1/2]

template<typename T >
iterator VectorT< T >::begin ( )
inline

◆ begin() [2/2]

template<typename T >
const_iterator VectorT< T >::begin ( ) const
inline

◆ capacity()

template<typename T >
size_type VectorT< T >::capacity ( ) const
inline

◆ cbegin()

template<typename T >
const_iterator VectorT< T >::cbegin ( ) const
inline

◆ cend()

template<typename T >
const_iterator VectorT< T >::cend ( ) const
inline

◆ clear()

template<typename T >
void VectorT< T >::clear ( )
inline

◆ constData()

template<typename T >
const T* VectorT< T >::constData ( ) const
inline

◆ contains()

template<typename T >
bool VectorT< T >::contains ( const T value) const
inline

◆ crbegin()

template<typename T >
const_reverse_iterator VectorT< T >::crbegin ( ) const
inline

◆ crend()

template<typename T >
const_reverse_iterator VectorT< T >::crend ( ) const
inline

◆ data() [1/2]

template<typename T >
T* VectorT< T >::data ( )
inline

◆ data() [2/2]

template<typename T >
const T* VectorT< T >::data ( ) const
inline

◆ display()

template<typename T >
void VectorT< T >::display ( const AStringFormat strfmt = nullptr) const
inline

◆ empty()

template<typename T >
bool VectorT< T >::empty ( ) const
inline

◆ end() [1/2]

template<typename T >
iterator VectorT< T >::end ( )
inline

◆ end() [2/2]

template<typename T >
const_iterator VectorT< T >::end ( ) const
inline

◆ erase() [1/2]

template<typename T >
iterator VectorT< T >::erase ( const_iterator  first,
const_iterator  last 
)
inline

◆ erase() [2/2]

template<typename T >
iterator VectorT< T >::erase ( const_iterator  pos)
inline

◆ fill()

template<typename T >
void VectorT< T >::fill ( const T value,
size_type  size = 0 
)
inline

◆ front() [1/2]

template<typename T >
T& VectorT< T >::front ( )
inline

◆ front() [2/2]

template<typename T >
const T& VectorT< T >::front ( ) const
inline

◆ getAt()

template<typename T >
const T & VectorT< T >::getAt ( int  pos) const
inline

◆ getVector()

template<typename T >
Vector& VectorT< T >::getVector ( ) const
inline

◆ getVectorPtr()

template<typename T >
Vector* VectorT< T >::getVectorPtr ( ) const
inline

◆ insert() [1/3]

template<typename T >
iterator VectorT< T >::insert ( const_iterator  pos,
const_iterator  first,
const_iterator  last 
)
inline

◆ insert() [2/3]

template<typename T >
void VectorT< T >::insert ( size_type  i,
const T value 
)
inline

◆ insert() [3/3]

template<typename T >
void VectorT< T >::insert ( size_type  i,
size_type  count,
const T value 
)
inline

◆ length()

template<typename T >
int VectorT< T >::length
inline

◆ operator const Vector &()

template<typename T >
VectorT< T >::operator const Vector & ( ) const
inline

◆ operator!=()

template<typename T >
bool VectorT< T >::operator!= ( const VectorT< T > &  other) const
inline

◆ operator<()

template<typename T >
bool VectorT< T >::operator< ( const VectorT< T > &  other) const
inline

◆ operator<<() [1/2]

template<typename T >
VectorT< T > & VectorT< T >::operator<< ( const T value)
inline

◆ operator<<() [2/2]

template<typename T >
VectorT< T > & VectorT< T >::operator<< ( const VectorT< T > &  v)
inline

◆ operator<=()

template<typename T >
bool VectorT< T >::operator<= ( const VectorT< T > &  other) const
inline

◆ operator=() [1/4]

template<typename T >
VectorT& VectorT< T >::operator= ( const Vector vec)
inline

◆ operator=() [2/4]

template<typename T >
VectorT& VectorT< T >::operator= ( const VectorT< T > &  other)
inline

◆ operator=() [3/4]

template<typename T >
VectorT& VectorT< T >::operator= ( std::initializer_list< T init)
inline

◆ operator=() [4/4]

template<typename T >
VectorT& VectorT< T >::operator= ( VectorT< T > &&  other)
inlinenoexcept

◆ operator==()

template<typename T >
bool VectorT< T >::operator== ( const VectorT< T > &  other) const
inline

◆ operator>()

template<typename T >
bool VectorT< T >::operator> ( const VectorT< T > &  other) const
inline

◆ operator>=()

template<typename T >
bool VectorT< T >::operator>= ( const VectorT< T > &  other) const
inline

◆ operator[]() [1/2]

template<typename T >
T & VectorT< T >::operator[] ( size_type  pos)
inline

◆ operator[]() [2/2]

template<typename T >
const T & VectorT< T >::operator[] ( size_type  pos) const
inline

◆ push_back() [1/2]

template<typename T >
void VectorT< T >::push_back ( const T &&  value)
inline

◆ push_back() [2/2]

template<typename T >
void VectorT< T >::push_back ( const T value)
inline

◆ push_front() [1/2]

template<typename T >
void VectorT< T >::push_front ( const T &&  value)
inline

◆ push_front() [2/2]

template<typename T >
void VectorT< T >::push_front ( const T value)
inline

◆ rbegin()

template<typename T >
reverse_iterator VectorT< T >::rbegin ( )
inline

◆ remove() [1/2]

template<typename T >
void VectorT< T >::remove ( size_type  i)
inline

◆ remove() [2/2]

template<typename T >
void VectorT< T >::remove ( size_type  i,
size_type  count 
)
inline

◆ rend()

template<typename T >
reverse_iterator VectorT< T >::rend ( )
inline

◆ reserve()

template<typename T >
void VectorT< T >::reserve ( size_type  new_cap)
inline

◆ resize() [1/2]

template<typename T >
void VectorT< T >::resize ( size_type  count)
inline

◆ resize() [2/2]

template<typename T >
void VectorT< T >::resize ( size_type  count,
const T value 
)
inline

◆ setAt()

template<typename T >
void VectorT< T >::setAt ( int  pos,
const T v 
)
inline

◆ size()

template<typename T >
size_type VectorT< T >::size ( ) const
inline

◆ subdata() [1/2]

template<typename T >
T* VectorT< T >::subdata ( size_type  i = 0)
inline

◆ subdata() [2/2]

template<typename T >
const T* VectorT< T >::subdata ( size_type  i = 0) const
inline

◆ swap()

template<typename T >
void VectorT< T >::swap ( VectorT< T > &  other)
inline

◆ toString()

template<typename T >
String VectorT< T >::toString ( const AStringFormat strfmt = nullptr) const
inline

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