Essentia  2.1-beta5-dev
Array1D< T > Class Template Reference

#include <tnt_array1d.h>

Public Types

typedef T value_type
 

Public Member Functions

 Array1D ()
 
 Array1D (int n)
 
 Array1D (int n, const T &a)
 
 Array1D (int n, T *a)
 
 Array1D (const Array1D &A)
 
 operator T* ()
 
 operator const T * ()
 
Array1Doperator= (const T &a)
 
Array1Doperator= (const Array1D &A)
 
Array1Dref (const Array1D &A)
 
Array1D copy () const
 
Array1Dinject (const Array1D &A)
 
T & operator[] (int i)
 
const T & operator[] (int i) const
 
int dim1 () const
 
int dim () const
 
 ~Array1D ()
 
int ref_count () const
 
Array1D< T > subarray (int i0, int i1)
 

Private Member Functions

void copy_ (T *p, const T *q, int len) const
 
void set_ (T *begin, T *end, const T &val)
 

Private Attributes

i_refvec< T > v_
 
int n_
 
T * data_
 

Member Typedef Documentation

◆ value_type

typedef T value_type

Constructor & Destructor Documentation

◆ Array1D() [1/5]

Array1D ( )

◆ Array1D() [2/5]

Array1D ( int  n)
explicit

◆ Array1D() [3/5]

Array1D ( int  n,
const T &  a 
)

◆ Array1D() [4/5]

Array1D ( int  n,
T *  a 
)

◆ Array1D() [5/5]

Array1D ( const Array1D< T > &  A)
inline

◆ ~Array1D()

~Array1D ( )

Member Function Documentation

◆ copy()

Array1D< T > copy ( ) const

◆ copy_()

void copy_ ( T *  p,
const T *  q,
int  len 
) const
private

◆ dim()

int dim ( ) const
inline

◆ dim1()

◆ inject()

Array1D< T > & inject ( const Array1D< T > &  A)

◆ operator const T *()

operator const T * ( )
inline

◆ operator T*()

operator T* ( )
inline

◆ operator=() [1/2]

Array1D< T > & operator= ( const T &  a)
inline

◆ operator=() [2/2]

Array1D& operator= ( const Array1D< T > &  A)
inline

◆ operator[]() [1/2]

T & operator[] ( int  i)
inline

◆ operator[]() [2/2]

const T & operator[] ( int  i) const
inline

◆ ref()

Array1D< T > & ref ( const Array1D< T > &  A)
inline

◆ ref_count()

int ref_count ( ) const
inline

◆ set_()

void set_ ( T *  begin,
T *  end,
const T &  val 
)
private

◆ subarray()

Array1D< T > subarray ( int  i0,
int  i1 
)
inline

Member Data Documentation

◆ data_

◆ n_

◆ v_

i_refvec<T> v_
private

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