GNU Octave  8.1.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< octave::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_typem_cdim
 
octave_idx_typem_dim
 
octave::idx_vectorm_idx
 
int m_n
 
int m_top
 

Detailed Description

Definition at line 526 of file Array-base.cc.

Constructor & Destructor Documentation

◆ rec_index_helper() [1/2]

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

Definition at line 529 of file Array-base.cc.

References m_cdim, m_dim, m_idx, m_n, m_top, max(), and dim_vector::ndims().

◆ 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 564 of file Array-base.cc.

References m_dim, and m_idx.

Member Function Documentation

◆ assign()

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

Definition at line 570 of file Array-base.cc.

References do_assign(), and m_top.

Referenced by Array< T, Alloc >::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 601 of file Array-base.cc.

References d, m_cdim, m_dim, m_idx, and nn.

Referenced by assign().

◆ do_fill()

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

Definition at line 618 of file Array-base.cc.

References m_dim, m_idx, and nn.

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 584 of file Array-base.cc.

Referenced by index().

◆ fill()

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

Definition at line 573 of file Array-base.cc.

References do_fill(), and m_top.

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

◆ index()

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

Definition at line 567 of file Array-base.cc.

References do_index(), and m_top.

Referenced by Array< octave_value * >::cat().

◆ is_cont_range()

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

Definition at line 575 of file Array-base.cc.

References m_dim, m_idx, and m_top.

Referenced by Array< octave_value * >::cat().

◆ operator=()

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

Member Data Documentation

◆ m_cdim

octave_idx_type* rec_index_helper::m_cdim
private

Definition at line 639 of file Array-base.cc.

Referenced by rec_index_helper(), and do_assign().

◆ m_dim

octave_idx_type* rec_index_helper::m_dim
private

Definition at line 638 of file Array-base.cc.

Referenced by rec_index_helper(), ~rec_index_helper(), do_assign(), do_fill(), and is_cont_range().

◆ m_idx

octave::idx_vector* rec_index_helper::m_idx
private

Definition at line 640 of file Array-base.cc.

Referenced by rec_index_helper(), ~rec_index_helper(), do_assign(), do_fill(), and is_cont_range().

◆ m_n

int rec_index_helper::m_n
private

Definition at line 636 of file Array-base.cc.

Referenced by rec_index_helper().

◆ m_top

int rec_index_helper::m_top
private

Definition at line 637 of file Array-base.cc.

Referenced by rec_index_helper(), assign(), fill(), index(), and is_cont_range().


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