Classes | Defines | Functions

oct-locbuf.h File Reference

#include <cstddef>
#include "oct-cmplx.h"
Include dependency graph for oct-locbuf.h:

Go to the source code of this file.

Classes

class  octave_chunk_buffer
class  octave_local_buffer< T >
class  octave_local_buffer< const T * >
class  octave_local_buffer< T * >

Defines

#define OCTAVE_LOCAL_BUFFER(T, buf, size)
#define OCTAVE_LOCAL_BUFFER_INIT(T, buf, size, value)
#define SPECIALIZE_POD_BUFFER(TYPE)

Functions

 SPECIALIZE_POD_BUFFER (bool)
 SPECIALIZE_POD_BUFFER (Complex)
 SPECIALIZE_POD_BUFFER (double)
 SPECIALIZE_POD_BUFFER (float)
 SPECIALIZE_POD_BUFFER (long)
 SPECIALIZE_POD_BUFFER (int)
 SPECIALIZE_POD_BUFFER (short)
 SPECIALIZE_POD_BUFFER (unsigned short)
 SPECIALIZE_POD_BUFFER (char)

Define Documentation

#define OCTAVE_LOCAL_BUFFER (   T,
  buf,
  size 
)
Value:
octave_local_buffer<T> _buffer_ ## buf (size); \
  T *buf = _buffer_ ## buf

Definition at line 197 of file oct-locbuf.h.

Referenced by octave_scalar_struct::as_mxArray(), octave_struct::as_mxArray(), rec_permute_helper::blk_trans(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseQR::SparseQR_rep::C(), SparseComplexQR::SparseComplexQR_rep::C(), call_mex(), octave_map::cat(), coletree(), ComplexSCHUR::ComplexSCHUR(), DEFUN(), DEFUN_DLD(), Sparse< T >::delete_elements(), PermMatrix::determinant(), dmsolve(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_bool_partition(), octave_map::do_cat(), do_mat2cell(), do_mat2cell_2d(), do_mat2cell_nd(), do_simple_cellfun(), octave_map::fast_elem_insert(), find_starting_node(), FloatComplexSCHUR::FloatComplexSCHUR(), FloatQR::form(), FloatComplexQR::form(), QR::form(), ComplexQR::form(), FloatNDArray::fourier(), FloatComplexNDArray::fourier(), NDArray::fourier(), ComplexNDArray::fourier(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), octave_rand::get_internal_state(), FloatNDArray::ifourier(), FloatComplexNDArray::ifourier(), NDArray::ifourier(), ComplexNDArray::ifourier(), ind2sub(), Sparse< T >::index(), FloatSVD::init(), FloatQRP::init(), FloatQR::init(), FloatGEPBALANCE::init(), FloatComplexSVD::init(), FloatComplexQRP::init(), FloatComplexQR::init(), FloatComplexGEPBALANCE::init(), SVD::init(), QRP::init(), QR::init(), GEPBALANCE::init(), ComplexSVD::init(), ComplexQRP::init(), ComplexQR::init(), ComplexGEPBALANCE::init(), lin_interpn(), octave_fcn_inline::load_binary(), octave_fcn_handle::load_binary(), octave_class::load_binary(), octave_sparse_bool_matrix::load_binary(), octave_bool_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), regexp::match(), matrix_complex_probe(), matrix_real_probe(), MatrixType::MatrixType(), mexErrMsgIdAndTxt(), mexWarnMsgIdAndTxt(), mx_inline_diff(), mx_inline_xsum(), Array< T >::nth_element(), octave_canonicalize_file_name(), octcellregexp(), octinternal_do_mul_colpm_sm(), octinternal_do_mul_pm_sm(), octregexp(), SparseQR::SparseQR_rep::Q(), SparseComplexQR::SparseComplexQR_rep::Q(), qrsolve(), read_binary_data(), read_doubles(), read_floats(), read_mat5_binary_element(), read_mat_binary_data(), rec_permute_helper::rec_permute_helper(), octave_sparse_bool_matrix::save_binary(), octave_bool_matrix::save_binary(), save_mat5_array_length(), save_mat5_binary_element(), save_mat_binary_data(), octave_rand::set_internal_state(), single_type_concat(), Sparse< T >::sort(), Array< T >::sort(), octave_sort< T >::sort_rows(), Sparse< T >::Sparse(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), symetree(), FloatMatrix::tinverse(), FloatComplexMatrix::tinverse(), SparseMatrix::tinverse(), Matrix::tinverse(), SparseComplexMatrix::tinverse(), ComplexMatrix::tinverse(), transpose(), tree_postorder(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and write_mat5_sparse_index_vector().

#define OCTAVE_LOCAL_BUFFER_INIT (   T,
  buf,
  size,
  value 
)
#define SPECIALIZE_POD_BUFFER (   TYPE  ) 
Value:
template <> \
class octave_local_buffer<TYPE> : private octave_chunk_buffer \
{ \
public: \
  octave_local_buffer (size_t size) \
    : octave_chunk_buffer (size * sizeof (TYPE)) { } \
 \
  operator TYPE *() const \
  { \
    return reinterpret_cast<TYPE *> (this->data ()); \
  } \
}

Definition at line 110 of file oct-locbuf.h.


Function Documentation

SPECIALIZE_POD_BUFFER ( bool   ) 
SPECIALIZE_POD_BUFFER ( Complex   ) 
SPECIALIZE_POD_BUFFER ( double   ) 
SPECIALIZE_POD_BUFFER ( float   ) 
SPECIALIZE_POD_BUFFER ( long   ) 
SPECIALIZE_POD_BUFFER ( int   ) 
SPECIALIZE_POD_BUFFER ( short   ) 
SPECIALIZE_POD_BUFFER ( unsigned  short  ) 
SPECIALIZE_POD_BUFFER ( char   ) 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines