GNU Octave  3.8.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_scalar_rep Class Reference
Inheritance diagram for idx_vector::idx_scalar_rep:
Inheritance graph
[legend]
Collaboration diagram for idx_vector::idx_scalar_rep:
Collaboration graph
[legend]

Public Member Functions

 idx_scalar_rep (octave_idx_type i, direct)
 idx_scalar_rep (void)
 idx_scalar_rep (octave_idx_type i)
template<class T >
 idx_scalar_rep (T x)
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
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< intcount
bool err

Private Member Functions

DECLARE_OCTAVE_ALLOCATOR idx_scalar_rep (const idx_scalar_rep &idx)
idx_scalar_repoperator= (const idx_scalar_rep &idx)

Private Attributes

octave_idx_type data

Detailed Description

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

Constructor & Destructor Documentation

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

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

idx_vector::idx_scalar_rep::idx_scalar_rep ( void  )
inline

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

idx_vector::idx_scalar_rep::idx_scalar_rep ( octave_idx_type  i)

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

References data, idx_vector::idx_base_rep::err, and gripe_invalid_index().

template<class T >
idx_vector::idx_scalar_rep::idx_scalar_rep ( x)
DECLARE_OCTAVE_ALLOCATOR idx_vector::idx_scalar_rep::idx_scalar_rep ( const idx_scalar_rep idx)
private

Member Function Documentation

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

Reimplemented from idx_vector::idx_base_rep.

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

References Array< FloatComplex >::data().

octave_idx_type idx_vector::idx_scalar_rep::checkelem ( octave_idx_type  i) const
virtual
octave_idx_type idx_vector::idx_scalar_rep::extent ( octave_idx_type  n) const
inlinevirtual

Implements idx_vector::idx_base_rep.

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

References max().

octave_idx_type idx_vector::idx_scalar_rep::get_data ( void  ) const
inline
idx_class_type idx_vector::idx_scalar_rep::idx_class ( void  ) const
inlinevirtual

Reimplemented from idx_vector::idx_base_rep.

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

References idx_vector::class_scalar.

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

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

Implements idx_vector::idx_base_rep.

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

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

Reimplemented from idx_vector::idx_base_rep.

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

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

Implements idx_vector::idx_base_rep.

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

References Array< FloatComplex >::data().

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

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

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

Implements idx_vector::idx_base_rep.

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

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

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

References Array< FloatComplex >::data().

Referenced by idx_vector::unconvert().

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

Implements idx_vector::idx_base_rep.

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

Member Data Documentation

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

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

Referenced by idx_vector::operator=().

octave_idx_type idx_vector::idx_scalar_rep::data
private

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

Referenced by idx_scalar_rep().

bool idx_vector::idx_base_rep::err
inherited

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