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

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]

List of all members.

Public Member Functions

 idx_scalar_rep (octave_idx_type i, direct)
 idx_scalar_rep (void)
template<class T >
 idx_scalar_rep (T x)
 idx_scalar_rep (octave_idx_type i)
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 221 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 224 of file idx-vector.h.

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

Definition at line 227 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 data.

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

Implements idx_vector::idx_base_rep.

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

References data, and gripe_index_out_of_range().

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

Implements idx_vector::idx_base_rep.

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

Reimplemented from idx_vector::idx_base_rep.

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

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

Reimplemented from idx_vector::idx_base_rep.

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

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

Implements idx_vector::idx_base_rep.

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

Reimplemented from idx_vector::idx_base_rep.

Definition at line 255 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 data.

idx_vector::idx_base_rep * idx_vector::idx_scalar_rep::sort_idx ( Array< octave_idx_type > &  idx  )  [virtual]
idx_base_rep* idx_vector::idx_scalar_rep::sort_uniq_clone ( bool  = false  )  [inline, virtual]

Implements idx_vector::idx_base_rep.

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

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

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

References data.

Referenced by idx_vector::unconvert().

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

Implements idx_vector::idx_base_rep.

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


Member Data Documentation

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

Referenced by as_array(), checkelem(), idx_scalar_rep(), print(), and unconvert().


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