GNU Octave 7.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 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< octave::idx_vector > &  ia 
)
inline

Definition at line 507 of file Array.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 542 of file Array.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 548 of file Array.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 579 of file Array.cc.

References octave::idx_vector::assign(), d, octave::idx_vector::length(), 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 596 of file Array.cc.

References octave::idx_vector::fill(), m_dim, and m_idx.

Referenced by fill(), and Array< octave_value >::permute().

◆ do_index()

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

Definition at line 562 of file Array.cc.

Referenced by Array< octave_value >::checkelem(), and index().

◆ fill()

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

Definition at line 551 of file Array.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 545 of file Array.cc.

References do_index(), and m_top.

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

◆ is_cont_range()

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

Definition at line 553 of file Array.cc.

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

◆ 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

◆ m_dim

◆ m_idx

◆ m_n

int rec_index_helper::m_n
private

Definition at line 614 of file Array.cc.

Referenced by rec_index_helper().

◆ m_top

int rec_index_helper::m_top
private

Definition at line 615 of file Array.cc.

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


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