GNU Octave  4.2.1
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 | Private Types | List of all members
NoAlias< ArrayClass > Class Template Reference

This is a simple wrapper template that will subclass an Array<T> type or any later type derived from it and override the default non-const operator() to not check for the array's uniqueness. More...

#include "Array.h"

Inheritance diagram for NoAlias< ArrayClass >:
Inheritance graph
[legend]
Collaboration diagram for NoAlias< ArrayClass >:
Collaboration graph
[legend]

Public Member Functions

 NoAlias ()
 
template<typename X >
 NoAlias (X x)
 
template<typename X , typename Y >
 NoAlias (X x, Y y)
 
template<typename X , typename Y , typename Z >
 NoAlias (X x, Y y, Z z)
 
Toperator() (octave_idx_type n)
 
Toperator() (octave_idx_type i, octave_idx_type j)
 
Toperator() (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
Toperator() (const Array< octave_idx_type > &ra_idx)
 

Private Types

typedef ArrayClass::element_type T
 

Detailed Description

template<typename ArrayClass>
class NoAlias< ArrayClass >

This is a simple wrapper template that will subclass an Array<T> type or any later type derived from it and override the default non-const operator() to not check for the array's uniqueness.

It is, however, the user's responsibility to ensure the array is actually unaliased whenever elements are accessed.

Definition at line 888 of file Array.h.

Member Typedef Documentation

template<typename ArrayClass>
typedef ArrayClass::element_type NoAlias< ArrayClass >::T
private

Definition at line 890 of file Array.h.

Constructor & Destructor Documentation

template<typename ArrayClass>
NoAlias< ArrayClass >::NoAlias ( )
inline

Definition at line 892 of file Array.h.

template<typename ArrayClass>
template<typename X >
NoAlias< ArrayClass >::NoAlias ( x)
inlineexplicit

Definition at line 896 of file Array.h.

template<typename ArrayClass>
template<typename X , typename Y >
NoAlias< ArrayClass >::NoAlias ( x,
Y  y 
)
inlineexplicit

Definition at line 899 of file Array.h.

template<typename ArrayClass>
template<typename X , typename Y , typename Z >
NoAlias< ArrayClass >::NoAlias ( x,
Y  y,
Z  z 
)
inlineexplicit

Definition at line 902 of file Array.h.

Member Function Documentation

template<typename ArrayClass>
T& NoAlias< ArrayClass >::operator() ( octave_idx_type  n)
inline

Definition at line 904 of file Array.h.

template<typename ArrayClass>
T& NoAlias< ArrayClass >::operator() ( octave_idx_type  i,
octave_idx_type  j 
)
inline

Definition at line 906 of file Array.h.

template<typename ArrayClass>
T& NoAlias< ArrayClass >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inline

Definition at line 908 of file Array.h.

template<typename ArrayClass>
T& NoAlias< ArrayClass >::operator() ( const Array< octave_idx_type > &  ra_idx)
inline

Definition at line 910 of file Array.h.


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