PLaSK library
Loading...
Searching...
No Matches
TNT::Vector< T > Class Template Reference

[Deprecatred] Value-based vector class from pre-1.0 TNT version. More...

#include <solvers/gain/wasiak/wzmocnienie/tnt/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.

Definition at line 42 of file tnt_vec.h.

Member Typedef Documentation

◆ const_iterator

template<class T >
typedef const T* TNT::Vector< T >::const_iterator

Definition at line 54 of file tnt_vec.h.

◆ const_reference

template<class T >
typedef const T& TNT::Vector< T >::const_reference

Definition at line 55 of file tnt_vec.h.

◆ element_type

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

Definition at line 50 of file tnt_vec.h.

◆ iterator

template<class T >
typedef T* TNT::Vector< T >::iterator

Definition at line 52 of file tnt_vec.h.

◆ pointer

template<class T >
typedef T* TNT::Vector< T >::pointer

Definition at line 51 of file tnt_vec.h.

◆ reference

template<class T >
typedef T& TNT::Vector< T >::reference

Definition at line 53 of file tnt_vec.h.

◆ size_type

template<class T >
typedef Subscript TNT::Vector< T >::size_type

Definition at line 48 of file tnt_vec.h.

◆ value_type

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

Definition at line 49 of file tnt_vec.h.

Constructor & Destructor Documentation

◆ ~Vector()

template<class T >
TNT::Vector< T >::~Vector ( )
inline

Definition at line 158 of file tnt_vec.h.

◆ Vector() [1/5]

template<class T >
TNT::Vector< T >::Vector ( )
inline

Definition at line 165 of file tnt_vec.h.

◆ Vector() [2/5]

template<class T >
TNT::Vector< T >::Vector ( const Vector< T > &  A)
inline

Definition at line 167 of file tnt_vec.h.

◆ Vector() [3/5]

template<class T >
TNT::Vector< T >::Vector ( Subscript  N,
const T &  value = T() 
)
inline

Definition at line 173 of file tnt_vec.h.

◆ Vector() [4/5]

template<class T >
TNT::Vector< T >::Vector ( Subscript  N,
const T *  v 
)
inline

Definition at line 179 of file tnt_vec.h.

◆ Vector() [5/5]

template<class T >
TNT::Vector< T >::Vector ( Subscript  N,
char *  s 
)
inline

Definition at line 185 of file tnt_vec.h.

Member Function Documentation

◆ begin() [1/2]

template<class T >
iterator TNT::Vector< T >::begin ( )
inline

Definition at line 151 of file tnt_vec.h.

◆ begin() [2/2]

template<class T >
const iterator TNT::Vector< T >::begin ( ) const
inline

Definition at line 153 of file tnt_vec.h.

◆ copy()

template<class T >
void TNT::Vector< T >::copy ( const T *  v)
inlineprotected

Definition at line 79 of file tnt_vec.h.

◆ destroy()

template<class T >
void TNT::Vector< T >::destroy ( )
inlineprotected

Definition at line 134 of file tnt_vec.h.

◆ dim()

template<class T >
Subscript TNT::Vector< T >::dim ( ) const
inline

Definition at line 236 of file tnt_vec.h.

◆ end() [1/2]

template<class T >
iterator TNT::Vector< T >::end ( )
inline

Definition at line 152 of file tnt_vec.h.

◆ end() [2/2]

template<class T >
const iterator TNT::Vector< T >::end ( ) const
inline

Definition at line 154 of file tnt_vec.h.

◆ initialize()

template<class T >
void TNT::Vector< T >::initialize ( Subscript  N)
inlineprotected

Definition at line 67 of file tnt_vec.h.

◆ lbound()

template<class T >
Subscript TNT::Vector< T >::lbound ( ) const
inline

Definition at line 57 of file tnt_vec.h.

◆ newsize()

template<class T >
Vector< T > & TNT::Vector< T >::newsize ( Subscript  N)
inline

Definition at line 199 of file tnt_vec.h.

◆ operator()() [1/2]

template<class T >
reference TNT::Vector< T >::operator() ( Subscript  i)
inline

Definition at line 247 of file tnt_vec.h.

◆ operator()() [2/2]

template<class T >
const_reference TNT::Vector< T >::operator() ( Subscript  i) const
inline

Definition at line 256 of file tnt_vec.h.

◆ operator=() [1/2]

template<class T >
Vector< T > & TNT::Vector< T >::operator= ( const T &  scalar)
inline

Definition at line 230 of file tnt_vec.h.

◆ operator=() [2/2]

template<class T >
Vector< T > & TNT::Vector< T >::operator= ( const Vector< T > &  A)
inline

Definition at line 212 of file tnt_vec.h.

◆ operator[]() [1/2]

template<class T >
reference TNT::Vector< T >::operator[] ( Subscript  i)
inline

Definition at line 265 of file tnt_vec.h.

◆ operator[]() [2/2]

template<class T >
const_reference TNT::Vector< T >::operator[] ( Subscript  i) const
inline

Definition at line 274 of file tnt_vec.h.

◆ set()

template<class T >
void TNT::Vector< T >::set ( const T &  val)
inlineprotected

Definition at line 105 of file tnt_vec.h.

◆ size()

template<class T >
Subscript TNT::Vector< T >::size ( ) const
inline

Definition at line 241 of file tnt_vec.h.

Member Data Documentation

◆ n_

template<class T >
Subscript TNT::Vector< T >::n_
protected

Definition at line 62 of file tnt_vec.h.

◆ v_

template<class T >
T* TNT::Vector< T >::v_
protected

Definition at line 60 of file tnt_vec.h.

◆ vm1_

template<class T >
T* TNT::Vector< T >::vm1_
protected

Definition at line 61 of file tnt_vec.h.


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