GNU Octave  8.1.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
 
OCTAVE_API 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
 
OCTAVE_API Array< octave_idx_typeas_array (void)
 
OCTAVE_API 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
 
OCTAVE_API std::ostream & print (std::ostream &os) const
 
OCTAVE_API idx_base_repsort_idx (Array< octave_idx_type > &)
 
idx_base_repsort_uniq_clone (bool=false)
 
OCTAVE_API double unconvert (void) const
 
octave_idx_type xelem (octave_idx_type) const
 

Public Attributes

refcount< octave_idx_typem_count
 

Private Attributes

octave_idx_type m_data
 

Detailed Description

Definition at line 227 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 233 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 252 of file idx-vector.cc.

References err_invalid_index(), and m_data.

◆ idx_scalar_rep() [5/5]

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

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

References convert_index(), m_data, 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 287 of file idx-vector.cc.

◆ 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 260 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 253 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 268 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 256 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 263 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 251 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 266 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 277 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 269 of file idx-vector.cc.

References Array< T, Alloc >::clear(), and Array< T, Alloc >::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 258 of file idx-vector.h.

◆ unconvert()

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

Definition at line 282 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 247 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_data

octave_idx_type idx_vector::idx_scalar_rep::m_data
private

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

Referenced by idx_scalar_rep().


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