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

Public Member Functions

 idx_scalar_rep (const idx_scalar_rep &idx)=delete
 
 idx_scalar_rep (octave_idx_type i)
 
 idx_scalar_rep (octave_idx_type i, direct)
 
template<typename T >
 idx_scalar_rep (T x)
 
 idx_scalar_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_data (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_scalar_repoperator= (const idx_scalar_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=false)
 
double unconvert (void) const
 
octave_idx_type xelem (octave_idx_type) const
 

Public Attributes

octave::refcount< octave_idx_typecount
 
bool err
 

Private Attributes

octave_idx_type data
 

Detailed Description

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

Constructor & Destructor Documentation

◆ idx_scalar_rep() [1/5]

idx_vector::idx_scalar_rep::idx_scalar_rep ( void  )
delete

◆ idx_scalar_rep() [2/5]

idx_vector::idx_scalar_rep::idx_scalar_rep ( octave_idx_type  i,
direct   
)
inline

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

◆ idx_scalar_rep() [3/5]

idx_vector::idx_scalar_rep::idx_scalar_rep ( const idx_scalar_rep idx)
delete

◆ idx_scalar_rep() [4/5]

idx_vector::idx_scalar_rep::idx_scalar_rep ( octave_idx_type  i)

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

References data, and octave::err_invalid_index().

◆ idx_scalar_rep() [5/5]

template<typename T >
idx_vector::idx_scalar_rep::idx_scalar_rep ( x)

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

References convert_index(), data, idx_vector::idx_base_rep::err, and x.

Member Function Documentation

◆ as_array()

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

Reimplemented from idx_vector::idx_base_rep.

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

References Array< octave_idx_type >.

◆ checkelem()

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

Implements idx_vector::idx_base_rep.

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

References err_index_out_of_range().

◆ extent()

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

Implements idx_vector::idx_base_rep.

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

References max(), and n.

◆ get_data()

octave_idx_type idx_vector::idx_scalar_rep::get_data ( void  ) const
inline

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

Referenced by idx_vector::maybe_reduce().

◆ idx_class()

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

Reimplemented from idx_vector::idx_base_rep.

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

◆ is_colon_equiv()

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

Reimplemented from idx_vector::idx_base_rep.

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

References n.

◆ length()

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

Implements idx_vector::idx_base_rep.

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

◆ operator=()

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

◆ orig_dimensions()

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

Reimplemented from idx_vector::idx_base_rep.

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

◆ print()

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

Implements idx_vector::idx_base_rep.

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

◆ sort_idx()

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

Implements idx_vector::idx_base_rep.

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

References Array< T >::clear(), and Array< T >::fill().

◆ sort_uniq_clone()

idx_base_rep* idx_vector::idx_scalar_rep::sort_uniq_clone ( bool  = false)
inlinevirtual

Implements idx_vector::idx_base_rep.

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

◆ unconvert()

double idx_vector::idx_scalar_rep::unconvert ( void  ) const

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

◆ xelem()

octave_idx_type idx_vector::idx_scalar_rep::xelem ( octave_idx_type  ) const
inlinevirtual

Implements idx_vector::idx_base_rep.

Definition at line 246 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=().

◆ data

octave_idx_type idx_vector::idx_scalar_rep::data
private

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

Referenced by idx_scalar_rep().

◆ err


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