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

#include <tnt_i_refvec.h>

Public Member Functions

 i_refvec ()
 
 i_refvec (int n)
 
 i_refvec (T *data)
 
 i_refvec (const i_refvec &v)
 
T * begin ()
 
const T * begin () const
 
T & operator[] (int i)
 
const T & operator[] (int i) const
 
i_refvec< T > & operator= (const i_refvec< T > &V)
 
void copy_ (T *p, const T *q, const T *e)
 
void set_ (T *p, const T *b, const T *e)
 
int ref_count () const
 
int is_null () const
 
void destroy ()
 
 ~i_refvec ()
 

Private Attributes

T * data_
 
int * ref_count_
 

Constructor & Destructor Documentation

◆ i_refvec() [1/4]

◆ i_refvec() [2/4]

i_refvec ( int  n)
explicit

In case n is 0 or negative, it does NOT call new.

References i_refvec< T >::data_, and i_refvec< T >::ref_count_.

◆ i_refvec() [3/4]

i_refvec ( T *  data)
inline

◆ i_refvec() [4/4]

i_refvec ( const i_refvec< T > &  v)
inline

◆ ~i_refvec()

References NULL.

Member Function Documentation

◆ begin() [1/2]

T * begin
inline

◆ begin() [2/2]

const T * begin
inline

◆ copy_()

void copy_ ( T *  p,
const T *  q,
const T *  e 
)

◆ destroy()

void destroy
inline

References NULL.

◆ is_null()

int is_null
inline

References NULL.

◆ operator=()

i_refvec< T > & operator= ( const i_refvec< T > &  V)
inline

◆ operator[]() [1/2]

T & operator[] ( int  i)
inline

◆ operator[]() [2/2]

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

◆ ref_count()

int ref_count
inline

References NULL.

◆ set_()

void set_ ( T *  p,
const T *  b,
const T *  e 
)

Member Data Documentation

◆ data_

T* data_
private

◆ ref_count_

int* ref_count_
private

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