Essentia  2.1-beta6-dev
Vector< T > Class Template Reference

#include <tnt_vec.h>

Public Types

typedef Subscript size_type
 
typedef T value_type
 
typedef T element_type
 
typedef T * pointer
 
typedef T * iterator
 
typedef T & reference
 
typedef const T * const_iterator
 
typedef const T & const_reference
 

Public Member Functions

Subscript lbound () const
 
iterator begin ()
 
iterator end ()
 
const iterator begin () const
 
const iterator end () const
 
 ~Vector ()
 
 Vector ()
 
 Vector (const Vector< T > &A)
 
 Vector (Subscript N, const T &value=T())
 
 Vector (Subscript N, const T *v)
 
 Vector (Subscript N, char *s)
 
Vector< T > & newsize (Subscript N)
 
Vector< T > & operator= (const Vector< T > &A)
 
Vector< T > & operator= (const T &scalar)
 
Subscript dim () const
 
Subscript size () const
 
reference operator() (Subscript i)
 
const_reference operator() (Subscript i) const
 
reference operator[] (Subscript i)
 
const_reference operator[] (Subscript i) const
 

Protected Member Functions

void initialize (Subscript N)
 
void copy (const T *v)
 
void set (const T &val)
 
void destroy ()
 

Protected Attributes

T * v_
 
T * vm1_
 
Subscript n_
 

Detailed Description

template<class T>
class TNT::Vector< T >

[Deprecatred] Value-based vector class from pre-1.0 TNT version. Kept here for backward compatiblity, but should use the newer TNT::Array1D classes instead.

Member Typedef Documentation

◆ const_iterator

typedef const T* const_iterator

◆ const_reference

typedef const T& const_reference

◆ element_type

typedef T element_type

◆ iterator

typedef T* iterator

◆ pointer

typedef T* pointer

◆ reference

typedef T& reference

◆ size_type

◆ value_type

typedef T value_type

Constructor & Destructor Documentation

◆ ~Vector()

~Vector ( )
inline

◆ Vector() [1/5]

Vector ( )
inline

◆ Vector() [2/5]

◆ Vector() [3/5]

Vector ( Subscript  N,
const T &  value = T() 
)
inline

◆ Vector() [4/5]

Vector ( Subscript  N,
const T *  v 
)
inline

◆ Vector() [5/5]

Vector ( Subscript  N,
char *  s 
)
inline

Member Function Documentation

◆ begin() [1/2]

iterator begin ( )
inline

References Vector< T >::v_.

◆ begin() [2/2]

const iterator begin ( ) const
inline

References Vector< T >::v_.

◆ copy()

void copy ( const T *  v)
inlineprotected

◆ destroy()

void destroy ( )
inlineprotected

◆ dim()

◆ end() [1/2]

iterator end ( )
inline

References Vector< T >::n_, and Vector< T >::v_.

◆ end() [2/2]

const iterator end ( ) const
inline

References Vector< T >::n_, and Vector< T >::v_.

◆ initialize()

void initialize ( Subscript  N)
inlineprotected

◆ lbound()

Subscript lbound ( ) const
inline

◆ newsize()

Vector<T>& newsize ( Subscript  N)
inline

◆ operator()() [1/2]

reference operator() ( Subscript  i)
inline

◆ operator()() [2/2]

const_reference operator() ( Subscript  i) const
inline

◆ operator=() [1/2]

Vector<T>& operator= ( const T &  scalar)
inline

References Vector< T >::set().

◆ operator=() [2/2]

◆ operator[]() [1/2]

reference operator[] ( Subscript  i)
inline

References Vector< T >::n_, and Vector< T >::v_.

◆ operator[]() [2/2]

const_reference operator[] ( Subscript  i) const
inline

References Vector< T >::n_, and Vector< T >::v_.

◆ set()

void set ( const T &  val)
inlineprotected

◆ size()

Subscript size ( ) const
inline

References Vector< T >::n_.

Referenced by TNT::operator>>().

Member Data Documentation

◆ n_

◆ v_

◆ vm1_


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