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

#include <tnt_fortran_array1d.h>

Public Types

typedef T value_type
 

Public Member Functions

 Fortran_Array1D ()
 
 Fortran_Array1D (int n)
 
 Fortran_Array1D (int n, const T &a)
 
 Fortran_Array1D (int n, T *a)
 
 Fortran_Array1D (const Fortran_Array1D &A)
 
Fortran_Array1Doperator= (const T &a)
 
Fortran_Array1Doperator= (const Fortran_Array1D &A)
 
Fortran_Array1Dref (const Fortran_Array1D &A)
 
Fortran_Array1D copy () const
 
Fortran_Array1Dinject (const Fortran_Array1D &A)
 
T & operator() (int i)
 
const T & operator() (int i) const
 
int dim1 () const
 
int dim () const
 
 ~Fortran_Array1D ()
 
int ref_count () const
 
Fortran_Array1D< T > subarray (int i0, int i1)
 

Private Member Functions

void initialize_ (int n)
 
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

◆ Fortran_Array1D() [1/5]

◆ Fortran_Array1D() [2/5]

Fortran_Array1D ( int  n)
explicit

◆ Fortran_Array1D() [3/5]

Fortran_Array1D ( int  n,
const T &  a 
)

◆ Fortran_Array1D() [4/5]

Fortran_Array1D ( int  n,
T *  a 
)

◆ Fortran_Array1D() [5/5]

Fortran_Array1D ( const Fortran_Array1D< T > &  A)
inline

◆ ~Fortran_Array1D()

Member Function Documentation

◆ copy()

◆ copy_()

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

◆ dim()

int dim
inline

◆ dim1()

◆ initialize_()

void initialize_ ( int  n)
private

◆ inject()

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

◆ operator()() [1/2]

T & operator() ( int  i)
inline

◆ operator()() [2/2]

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ ref()

◆ ref_count()

int ref_count
inline

◆ set_()

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

◆ subarray()

Fortran_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: