GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
idx_vector::idx_range_rep Class Reference
Inheritance diagram for idx_vector::idx_range_rep:
Collaboration diagram for idx_vector::idx_range_rep:

Public Member Functions

 idx_range_rep (const idx_range_rep &idx)=delete
 
OCTAVE_API idx_range_rep (const range< double > &)
 
 idx_range_rep (octave_idx_type start, octave_idx_type len, octave_idx_type step, direct)
 
 idx_range_rep (octave_idx_type start, octave_idx_type limit, octave_idx_type step)
 
 idx_range_rep (void)=delete
 
OCTAVE_API Array< octave_idx_typeas_array (void)
 
octave_idx_type checkelem (octave_idx_type i) const
 
octave_idx_type extent (octave_idx_type n) const
 
octave_idx_type get_start (void) const
 
octave_idx_type get_step (void) const
 
idx_class_type idx_class (void) const
 
bool is_colon_equiv (octave_idx_type n) const
 
octave_idx_type length (octave_idx_type) const
 
idx_range_repoperator= (const idx_range_rep &idx)=delete
 
dim_vector orig_dimensions (void) const
 
OCTAVE_API std::ostream & print (std::ostream &os) const
 
OCTAVE_API idx_base_repsort_idx (Array< octave_idx_type > &)
 
OCTAVE_API idx_base_repsort_uniq_clone (bool uniq=false)
 
OCTAVE_API range< double > unconvert (void) const
 
octave_idx_type xelem (octave_idx_type i) const
 

Public Attributes

refcount< octave_idx_typem_count
 

Private Attributes

octave_idx_type m_len
 
octave_idx_type m_start
 
octave_idx_type m_step
 

Detailed Description

Definition at line 164 of file idx-vector.h.

Constructor & Destructor Documentation

◆ idx_range_rep() [1/5]

idx_vector::idx_range_rep::idx_range_rep ( void  )
delete

◆ idx_range_rep() [2/5]

idx_vector::idx_range_rep::idx_range_rep ( octave_idx_type  start,
octave_idx_type  len,
octave_idx_type  step,
direct   
)
inline

Definition at line 170 of file idx-vector.h.

◆ idx_range_rep() [3/5]

idx_vector::idx_range_rep::idx_range_rep ( octave_idx_type  start,
octave_idx_type  limit,
octave_idx_type  step 
)

Definition at line 102 of file idx-vector.cc.

References err_invalid_index(), err_invalid_range(), m_len, m_start, and m_step.

◆ idx_range_rep() [4/5]

idx_vector::idx_range_rep::idx_range_rep ( const range< double > &  r)

Definition at line 121 of file idx-vector.cc.

References err_invalid_index(), err_invalid_range(), m_len, m_start, m_step, r, and trunc().

◆ idx_range_rep() [5/5]

idx_vector::idx_range_rep::idx_range_rep ( const idx_range_rep idx)
delete

Member Function Documentation

◆ as_array()

Array< octave_idx_type > idx_vector::idx_range_rep::as_array ( void  )
virtual

Reimplemented from idx_vector::idx_base_rep.

Definition at line 200 of file idx-vector.cc.

References Array< T, Alloc >::xelem().

◆ checkelem()

octave_idx_type idx_vector::idx_range_rep::checkelem ( octave_idx_type  i) const
virtual

Implements idx_vector::idx_base_rep.

Definition at line 149 of file idx-vector.cc.

References err_index_out_of_range().

◆ extent()

octave_idx_type idx_vector::idx_range_rep::extent ( octave_idx_type  n) const
inlinevirtual

Implements idx_vector::idx_base_rep.

Definition at line 194 of file idx-vector.h.

References max(), and n.

◆ get_start()

octave_idx_type idx_vector::idx_range_rep::get_start ( void  ) const
inline

Definition at line 211 of file idx-vector.h.

Referenced by idx_vector::maybe_reduce().

◆ get_step()

octave_idx_type idx_vector::idx_range_rep::get_step ( void  ) const
inline

Definition at line 213 of file idx-vector.h.

Referenced by idx_vector::maybe_reduce().

◆ idx_class()

idx_class_type idx_vector::idx_range_rep::idx_class ( void  ) const
inlinevirtual

Reimplemented from idx_vector::idx_base_rep.

Definition at line 199 of file idx-vector.h.

◆ is_colon_equiv()

bool idx_vector::idx_range_rep::is_colon_equiv ( octave_idx_type  n) const
inlinevirtual

Reimplemented from idx_vector::idx_base_rep.

Definition at line 205 of file idx-vector.h.

References n.

◆ length()

octave_idx_type idx_vector::idx_range_rep::length ( octave_idx_type  ) const
inlinevirtual

Implements idx_vector::idx_base_rep.

Definition at line 192 of file idx-vector.h.

Referenced by idx_vector::maybe_reduce().

◆ operator=()

idx_range_rep& idx_vector::idx_range_rep::operator= ( const idx_range_rep idx)
delete

◆ orig_dimensions()

dim_vector idx_vector::idx_range_rep::orig_dimensions ( void  ) const
inlinevirtual

Reimplemented from idx_vector::idx_base_rep.

Definition at line 208 of file idx-vector.h.

◆ print()

std::ostream & idx_vector::idx_range_rep::print ( std::ostream &  os) const
virtual

Implements idx_vector::idx_base_rep.

Definition at line 188 of file idx-vector.cc.

◆ sort_idx()

idx_vector::idx_base_rep * idx_vector::idx_range_rep::sort_idx ( Array< octave_idx_type > &  idx)
virtual

◆ sort_uniq_clone()

idx_vector::idx_base_rep * idx_vector::idx_range_rep::sort_uniq_clone ( bool  uniq = false)
virtual

Implements idx_vector::idx_base_rep.

Definition at line 157 of file idx-vector.cc.

References idx_vector::DIRECT.

◆ unconvert()

range< double > idx_vector::idx_range_rep::unconvert ( void  ) const

Definition at line 194 of file idx-vector.cc.

◆ xelem()

octave_idx_type idx_vector::idx_range_rep::xelem ( octave_idx_type  i) const
inlinevirtual

Implements idx_vector::idx_base_rep.

Definition at line 187 of file idx-vector.h.

Member Data Documentation

◆ m_count

refcount<octave_idx_type> idx_vector::idx_base_rep::m_count
inherited

Definition at line 122 of file idx-vector.h.

Referenced by idx_vector::operator=().

◆ m_len

octave_idx_type idx_vector::idx_range_rep::m_len
private

Definition at line 223 of file idx-vector.h.

Referenced by idx_range_rep().

◆ m_start

octave_idx_type idx_vector::idx_range_rep::m_start
private

Definition at line 223 of file idx-vector.h.

Referenced by idx_range_rep().

◆ m_step

octave_idx_type idx_vector::idx_range_rep::m_step
private

Definition at line 223 of file idx-vector.h.

Referenced by idx_range_rep().


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