GNU Octave  4.0.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
Macros | Functions
idx-vector.cc File Reference
#include <cstdlib>
#include <iostream>
#include "idx-vector.h"
#include "Array.h"
#include "Array-util.h"
#include "Sparse.h"
#include "Range.h"
#include "oct-locbuf.h"
#include "lo-error.h"
#include "lo-mappers.h"
Include dependency graph for idx-vector.cc:

Go to the source code of this file.

Macros

#define INSTANTIATE_SCALAR_VECTOR_REP_CONST(T)
 

Functions

octave_idx_type convert_index (octave_idx_type i, bool &conv_error, octave_idx_type &ext)
 
octave_idx_type convert_index (double x, bool &conv_error, octave_idx_type &ext)
 
octave_idx_type convert_index (float x, bool &conv_error, octave_idx_type &ext)
 
template<class T >
octave_idx_type convert_index (octave_int< T > x, bool &conv_error, octave_idx_type &ext)
 
static void gripe_index_out_of_range (void)
 
static void gripe_invalid_range (void)
 

Macro Definition Documentation

#define INSTANTIATE_SCALAR_VECTOR_REP_CONST (   T)
Value:
Handles the reference counting for all the derived classes.
Definition: Array.h:45

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

Function Documentation

octave_idx_type convert_index ( octave_idx_type  i,
bool conv_error,
octave_idx_type ext 
)
inline
octave_idx_type convert_index ( double  x,
bool conv_error,
octave_idx_type ext 
)
inline

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

References convert_index(), and x.

octave_idx_type convert_index ( float  x,
bool conv_error,
octave_idx_type ext 
)
inline

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

References convert_index().

template<class T >
octave_idx_type convert_index ( octave_int< T >  x,
bool conv_error,
octave_idx_type ext 
)
inline

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

References convert_index(), and x.

static void gripe_index_out_of_range ( void  )
static
static void gripe_invalid_range ( void  )
static

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

Referenced by idx_vector::idx_range_rep::idx_range_rep().