GNU Octave  6.2.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
 
 idx_range_rep (const Range &)
 
 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
 
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
 
std::ostream & print (std::ostream &os) const
 
idx_base_repsort_idx (Array< octave_idx_type > &)
 
idx_base_repsort_uniq_clone (bool uniq=false)
 
Range unconvert (void) const
 
octave_idx_type xelem (octave_idx_type i) const
 

Public Attributes

octave::refcount< octave_idx_typecount
 
bool err
 

Private Attributes

octave_idx_type len
 
octave_idx_type start
 
octave_idx_type step
 

Detailed Description

Definition at line 162 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 168 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 118 of file idx-vector.cc.

References octave::err_invalid_index(), err_invalid_range(), len, start, and step.

◆ idx_range_rep() [4/5]

idx_vector::idx_range_rep::idx_range_rep ( const Range r)

◆ 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 218 of file idx-vector.cc.

References len, retval, and Array< T >::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 163 of file idx-vector.cc.

References err_index_out_of_range(), and len.

◆ 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 191 of file idx-vector.h.

References len, max(), and n.

◆ get_start()

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

Definition at line 209 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 211 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 197 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 203 of file idx-vector.h.

References len, and 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 189 of file idx-vector.h.

References len.

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 206 of file idx-vector.h.

References len.

◆ print()

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

Implements idx_vector::idx_base_rep.

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

References len.

◆ sort_idx()

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

Implements idx_vector::idx_base_rep.

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

References Array< T >::clear(), idx_vector::DIRECT, len, and Array< T >::xelem().

◆ 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 172 of file idx-vector.cc.

References idx_vector::DIRECT, and len.

◆ unconvert()

Range idx_vector::idx_range_rep::unconvert ( void  ) const

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

References len.

◆ 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 184 of file idx-vector.h.

Member Data Documentation

◆ count

octave::refcount<octave_idx_type> idx_vector::idx_base_rep::count
inherited

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

Referenced by idx_vector::operator=().

◆ err

◆ len

octave_idx_type idx_vector::idx_range_rep::len
private

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

Referenced by idx_range_rep().

◆ start

octave_idx_type idx_vector::idx_range_rep::start
private

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

Referenced by idx_range_rep().

◆ step

octave_idx_type idx_vector::idx_range_rep::step
private

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

Referenced by idx_range_rep().


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