GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
rec_index_helper Class Reference
Collaboration diagram for rec_index_helper:

Public Member Functions

 rec_index_helper (const dim_vector &dv, const Array< idx_vector > &ia)
 
 rec_index_helper (const rec_index_helper &)=delete
 
 ~rec_index_helper (void)
 
template<typename T >
void assign (const T *src, T *dest) const
 
template<typename T >
void fill (const T &val, T *dest) const
 
template<typename T >
void index (const T *src, T *dest) const
 
bool is_cont_range (octave_idx_type &l, octave_idx_type &u) const
 
rec_index_helperoperator= (const rec_index_helper &)=delete
 

Private Member Functions

template<typename T >
const T * do_assign (const T *src, T *dest, int lev) const
 
template<typename T >
void do_fill (const T &val, T *dest, int lev) const
 
template<typename T >
T * do_index (const T *src, T *dest, int lev) const
 

Private Attributes

octave_idx_typecdim
 
octave_idx_typedim
 
idx_vectoridx
 
int n
 
int top
 

Detailed Description

Definition at line 504 of file Array.cc.

Constructor & Destructor Documentation

◆ rec_index_helper() [1/2]

rec_index_helper::rec_index_helper ( const dim_vector dv,
const Array< idx_vector > &  ia 
)
inline

Definition at line 516 of file Array.cc.

◆ rec_index_helper() [2/2]

rec_index_helper::rec_index_helper ( const rec_index_helper )
delete

◆ ~rec_index_helper()

rec_index_helper::~rec_index_helper ( void  )
inline

Definition at line 551 of file Array.cc.

References dim, and idx.

Member Function Documentation

◆ assign()

template<typename T >
void rec_index_helper::assign ( const T *  src,
T *  dest 
) const
inline

Definition at line 610 of file Array.cc.

References do_assign(), and top.

Referenced by Array< T >::assign().

◆ do_assign()

template<typename T >
const T* rec_index_helper::do_assign ( const T *  src,
T *  dest,
int  lev 
) const
inlineprivate

Definition at line 574 of file Array.cc.

References idx_vector::assign(), dim, and idx.

Referenced by assign(), and Array< octave_value * >::hermitian().

◆ do_fill()

template<typename T >
void rec_index_helper::do_fill ( const T &  val,
T *  dest,
int  lev 
) const
inlineprivate

Definition at line 591 of file Array.cc.

Referenced by fill().

◆ do_index()

template<typename T >
T* rec_index_helper::do_index ( const T *  src,
T *  dest,
int  lev 
) const
inlineprivate

Definition at line 557 of file Array.cc.

Referenced by index().

◆ fill()

template<typename T >
void rec_index_helper::fill ( const T &  val,
T *  dest 
) const
inline

Definition at line 613 of file Array.cc.

References do_fill(), and top.

Referenced by Array< T >::assign().

◆ index()

template<typename T >
void rec_index_helper::index ( const T *  src,
T *  dest 
) const
inline

Definition at line 607 of file Array.cc.

References do_index(), and top.

◆ is_cont_range()

bool rec_index_helper::is_cont_range ( octave_idx_type l,
octave_idx_type u 
) const
inline

Definition at line 615 of file Array.cc.

References dim, idx, idx_vector::is_cont_range(), and top.

◆ operator=()

rec_index_helper& rec_index_helper::operator= ( const rec_index_helper )
delete

Member Data Documentation

◆ cdim

◆ dim

◆ idx

◆ n

int rec_index_helper::n
private

Definition at line 509 of file Array.cc.

◆ top

int rec_index_helper::top
private

Definition at line 510 of file Array.cc.

Referenced by assign(), Array< octave_value * >::checkelem(), fill(), index(), and is_cont_range().


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