GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
idx_vector::idx_range_rep Class Reference
Inheritance diagram for idx_vector::idx_range_rep:
Inheritance graph
[legend]
Collaboration diagram for idx_vector::idx_range_rep:
Collaboration graph
[legend]

Public Member Functions

 idx_range_rep (octave_idx_type _start, octave_idx_type _len, octave_idx_type _step, direct)
 
 idx_range_rep (void)
 
 idx_range_rep (octave_idx_type _start, octave_idx_type _limit, octave_idx_type _step)
 
 idx_range_rep (const Range &)
 
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
 
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< intcount
 
bool err
 

Private Member Functions

 idx_range_rep (const idx_range_rep &idx)
 
idx_range_repoperator= (const idx_range_rep &idx)
 

Private Attributes

octave_idx_type len
 
octave_idx_type start
 
octave_idx_type step
 

Detailed Description

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

Constructor & Destructor Documentation

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

idx_vector::idx_range_rep::idx_range_rep ( void  )
inline

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

idx_vector::idx_range_rep::idx_range_rep ( octave_idx_type  _start,
octave_idx_type  _limit,
octave_idx_type  _step 
)
idx_vector::idx_range_rep::idx_range_rep ( const Range r)
idx_vector::idx_range_rep::idx_range_rep ( const idx_range_rep idx)
private

Member Function Documentation

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

Reimplemented from idx_vector::idx_base_rep.

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

References Array< T >::xelem().

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

Implements idx_vector::idx_base_rep.

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

References gripe_index_out_of_range().

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

Implements idx_vector::idx_base_rep.

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

References max().

octave_idx_type idx_vector::idx_range_rep::get_start ( void  ) const
inline
octave_idx_type idx_vector::idx_range_rep::get_step ( void  ) const
inline
idx_class_type idx_vector::idx_range_rep::idx_class ( void  ) const
inlinevirtual

Reimplemented from idx_vector::idx_base_rep.

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

References idx_vector::class_range.

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

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

Implements idx_vector::idx_base_rep.

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

Referenced by idx_vector::is_cont_range(), and idx_vector::maybe_reduce().

idx_range_rep& idx_vector::idx_range_rep::operator= ( const idx_range_rep idx)
private
dim_vector idx_vector::idx_range_rep::orig_dimensions ( void  ) const
inlinevirtual

Reimplemented from idx_vector::idx_base_rep.

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

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

Implements idx_vector::idx_base_rep.

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

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

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

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

References idx_vector::DIRECT.

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

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

Referenced by idx_vector::unconvert().

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

Implements idx_vector::idx_base_rep.

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

Member Data Documentation

octave_refcount<int> idx_vector::idx_base_rep::count
inherited

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

Referenced by idx_vector::operator=().

bool idx_vector::idx_base_rep::err
inherited
octave_idx_type idx_vector::idx_range_rep::len
private

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

Referenced by idx_range_rep().

octave_idx_type idx_vector::idx_range_rep::start
private

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

Referenced by idx_range_rep().

octave_idx_type idx_vector::idx_range_rep::step
private

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

Referenced by idx_range_rep().


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