Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

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]

List of all members.

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 (const Range &)
 idx_range_rep (octave_idx_type _start, octave_idx_type _limit, octave_idx_type _step)
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

DECLARE_OCTAVE_ALLOCATOR 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 160 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 163 of file idx-vector.h.

idx_vector::idx_range_rep::idx_range_rep ( void   )  [inline]

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

Referenced by sort_idx(), and sort_uniq_clone().

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  ) 
DECLARE_OCTAVE_ALLOCATOR 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 212 of file idx-vector.cc.

References len, start, step, and 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 154 of file idx-vector.cc.

References gripe_index_out_of_range(), len, start, and step.

octave_idx_type idx_vector::idx_range_rep::extent ( octave_idx_type  n  )  const [inline, virtual]

Implements idx_vector::idx_base_rep.

Definition at line 183 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 [inline, virtual]

Reimplemented from idx_vector::idx_base_rep.

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

bool idx_vector::idx_range_rep::is_colon_equiv ( octave_idx_type  n  )  const [inline, virtual]

Reimplemented from idx_vector::idx_base_rep.

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

octave_idx_type idx_vector::idx_range_rep::length ( octave_idx_type   )  const [inline, virtual]

Implements idx_vector::idx_base_rep.

Definition at line 181 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 [inline, virtual]

Reimplemented from idx_vector::idx_base_rep.

Definition at line 195 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 198 of file idx-vector.cc.

References len, start, and step.

idx_vector::idx_base_rep * idx_vector::idx_range_rep::sort_idx ( Array< octave_idx_type > &  idx  )  [virtual]
idx_vector::idx_base_rep * idx_vector::idx_range_rep::sort_uniq_clone ( bool  uniq = false  )  [virtual]
Range idx_vector::idx_range_rep::unconvert ( void   )  const

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

References len, start, and step.

Referenced by idx_vector::unconvert().

octave_idx_type idx_vector::idx_range_rep::xelem ( octave_idx_type  i  )  const [inline, virtual]

Implements idx_vector::idx_base_rep.

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


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines