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
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<class X >
 NoAlias (X x)
 
template<class X , class Y >
 NoAlias (X x, Y y)
 
template<class X , class Y , class 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<class 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 762 of file Array.h.

Member Typedef Documentation

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

Definition at line 764 of file Array.h.

Constructor & Destructor Documentation

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

Definition at line 766 of file Array.h.

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

Definition at line 770 of file Array.h.

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

Definition at line 773 of file Array.h.

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

Definition at line 776 of file Array.h.

Member Function Documentation

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

Definition at line 778 of file Array.h.

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

Definition at line 780 of file Array.h.

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

Definition at line 782 of file Array.h.

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

Definition at line 784 of file Array.h.


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