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

Public Member Functions

OCTAVE_API idx_vector_rep (bool)
 
OCTAVE_API idx_vector_rep (const Array< bool > &, octave_idx_type=-1)
 
OCTAVE_API idx_vector_rep (const Array< octave_idx_type > &inda)
 
OCTAVE_API idx_vector_rep (const Array< octave_idx_type > &inda, octave_idx_type ext, direct)
 
template<typename T >
 idx_vector_rep (const Array< T > &)
 
 idx_vector_rep (const idx_vector_rep &idx)=delete
 
OCTAVE_API idx_vector_rep (const Sparse< bool > &)
 
 idx_vector_rep (octave_idx_type *data, octave_idx_type len, octave_idx_type ext, const dim_vector &od, direct)
 
 idx_vector_rep (void)
 
 ~idx_vector_rep (void)
 
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
 
const octave_idx_typeget_data (void) const
 
idx_class_type idx_class (void) const
 
virtual bool is_colon_equiv (octave_idx_type) const
 
octave_idx_type length (octave_idx_type) const
 
idx_vector_repoperator= (const idx_vector_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 uniq=false)
 
OCTAVE_API Array< double > unconvert (void) const
 
octave_idx_type xelem (octave_idx_type i) const
 

Public Attributes

refcount< octave_idx_typem_count
 

Private Attributes

Array< octave_idx_type > * m_aowner
 
const octave_idx_typem_data
 
octave_idx_type m_ext
 
octave_idx_type m_len
 
dim_vector m_orig_dims
 

Detailed Description

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

Constructor & Destructor Documentation

◆ idx_vector_rep() [1/9]

idx_vector::idx_vector_rep::idx_vector_rep ( void  )
inline

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

◆ idx_vector_rep() [2/9]

idx_vector::idx_vector_rep::idx_vector_rep ( octave_idx_type data,
octave_idx_type  len,
octave_idx_type  ext,
const dim_vector od,
direct   
)
inline

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

◆ idx_vector_rep() [3/9]

idx_vector::idx_vector_rep::idx_vector_rep ( const Array< octave_idx_type > &  inda)

◆ idx_vector_rep() [4/9]

idx_vector::idx_vector_rep::idx_vector_rep ( const Array< octave_idx_type > &  inda,
octave_idx_type  ext,
direct   
)

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

References m_data, m_ext, m_len, and idx_vector::max().

◆ idx_vector_rep() [5/9]

template<typename T >
idx_vector::idx_vector_rep::idx_vector_rep ( const Array< T > &  nda)

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

References convert_index(), d, m_data, m_ext, m_len, and Array< T, Alloc >::xelem().

◆ idx_vector_rep() [6/9]

idx_vector::idx_vector_rep::idx_vector_rep ( bool  b)

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

References d, m_data, m_ext, and m_len.

◆ idx_vector_rep() [7/9]

idx_vector::idx_vector_rep::idx_vector_rep ( const Array< bool > &  bnda,
octave_idx_type  nnz = -1 
)

◆ idx_vector_rep() [8/9]

◆ idx_vector_rep() [9/9]

idx_vector::idx_vector_rep::idx_vector_rep ( const idx_vector_rep idx)
delete

◆ ~idx_vector_rep()

idx_vector::idx_vector_rep::~idx_vector_rep ( void  )

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

Member Function Documentation

◆ as_array()

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

Reimplemented from idx_vector::idx_base_rep.

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

References Array< T, Alloc >::fortran_vec().

◆ checkelem()

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

Implements idx_vector::idx_base_rep.

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

References err_invalid_index(), n, and idx_vector::xelem().

◆ extent()

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

Implements idx_vector::idx_base_rep.

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

References max(), and n.

◆ get_data()

const octave_idx_type* idx_vector::idx_vector_rep::get_data ( void  ) const
inline

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

◆ idx_class()

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

Reimplemented from idx_vector::idx_base_rep.

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

◆ is_colon_equiv()

virtual bool idx_vector::idx_base_rep::is_colon_equiv ( octave_idx_type  ) const
inlinevirtualinherited

◆ length()

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

Implements idx_vector::idx_base_rep.

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

◆ operator=()

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

◆ orig_dimensions()

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

Reimplemented from idx_vector::idx_base_rep.

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

◆ print()

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

Implements idx_vector::idx_base_rep.

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

◆ sort_idx()

◆ sort_uniq_clone()

idx_vector::idx_base_rep * idx_vector::idx_vector_rep::sort_uniq_clone ( bool  uniq = false)
virtual

◆ unconvert()

Array< double > idx_vector::idx_vector_rep::unconvert ( void  ) const

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

References Array< T, Alloc >::xelem().

◆ xelem()

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

Implements idx_vector::idx_base_rep.

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

Member Data Documentation

◆ m_aowner

Array<octave_idx_type>* idx_vector::idx_vector_rep::m_aowner
private

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

◆ 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

const octave_idx_type* idx_vector::idx_vector_rep::m_data
private

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

Referenced by idx_vector_rep().

◆ m_ext

octave_idx_type idx_vector::idx_vector_rep::m_ext
private

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

Referenced by idx_vector_rep().

◆ m_len

octave_idx_type idx_vector::idx_vector_rep::m_len
private

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

Referenced by idx_vector_rep().

◆ m_orig_dims

dim_vector idx_vector::idx_vector_rep::m_orig_dims
private

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

Referenced by idx_vector_rep().


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