Chombo + EB
3.0
|
#include <IndexTM.H>
Public Member Functions | |
template<typename OP > | |
bool | operatorCompare (const IndexTM< T, N > &a_p, const OP &a_op) const |
template<typename OP > | |
IndexTM< T, N > & | operatorOpEquals (const IndexTM< T, N > &a_p, const OP &a_op) |
template<typename OP > | |
IndexTM< T, N > & | operatorOpEquals (const T &a_p, const OP &a_op) |
IndexTM & | reciprocal () |
int | minDir (bool a_doAbs) const |
int | maxDir (bool a_doAbs) const |
Constructors and Accessors | |
See derived class IndexTM for more constructors. | |
IndexTM () | |
~IndexTM () | |
IndexTM (T a_i) | |
IndexTM (T a_i, T a_j) | |
IndexTM (T a_i, T a_j, T a_k) | |
IndexTM (T a_i, T a_j, T a_k, T a_l) | |
IndexTM (T a_i, T a_j, T a_k, T a_l, T a_m) | |
IndexTM (T a_i, T a_j, T a_k, T a_l, T a_m, T a_n) | |
IndexTM (const T *a_a) | |
IndexTM (const IndexTM &a_rhs) | |
IndexTM | copy () const |
IndexTM & | operator= (const IndexTM &a_rhs) |
T & | operator[] (int a_i) |
T | operator[] (int a_i) const |
void | setVal (int a_i, T a_val) |
void | setAll (T a_val) |
Data pointer functions | |
const T * | getVect () const |
const T * | dataPtr () const |
T * | dataPtr () |
Comparison Operators | |
bool | operator== (const IndexTM &a_p) const |
bool | operator!= (const IndexTM &a_p) const |
bool | lexLT (const IndexTM &a_s) const |
bool | lexGT (const IndexTM &a_s) const |
Unary operators | |
IndexTM | operator+ () const |
IndexTM | operator- () const |
T | dotProduct (const IndexTM &a_rhs) const |
T | sum () const |
T | product () const |
Other arithmetic operators | |
IndexTM & | min (const IndexTM &a_p) |
IndexTM & | max (const IndexTM &a_p) |
IndexTM & | scale (T a_s) |
IndexTM & | reflect (T a_refIx, int a_idir) |
IndexTM & | shift (int a_coord, T a_s) |
IndexTM & | shift (const IndexTM &a_iv) |
IndexTM & | diagShift (T a_s) |
IndexTM & | coarsen (const IndexTM &a_p) |
IndexTM & | coarsen (T a_p) |
![]() | |
virtual | ~GenericArithmeticable () |
GenericArithmeticable (IndexTM< T, N > *s) | |
bool | operator< (const IndexTM< T, N > &) const |
bool | operator> (const IndexTM< T, N > &) const |
bool | operator<= (const IndexTM< T, N > &) const |
bool | operator>= (const IndexTM< T, N > &) const |
IndexTM< T, N > & | operator+= (const IndexTM< T, N > &) |
IndexTM< T, N > & | operator+= (const T &) |
IndexTM< T, N > & | operator-= (const IndexTM< T, N > &) |
IndexTM< T, N > & | operator-= (const T &) |
IndexTM< T, N > & | operator*= (const IndexTM< T, N > &) |
IndexTM< T, N > & | operator*= (const T &) |
IndexTM< T, N > & | operator/= (const IndexTM< T, N > &) |
IndexTM< T, N > & | operator/= (const T &) |
Protected Member Functions | |
IndexTM (const char *) | |
Protected Attributes | |
T | m_vect [N] |
I/O Functions | |
void | printOn (std::ostream &a_os) const |
void | p () const |
void | dumpOn (std::ostream &a_os) const |
std::ostream & | operator<< (std::ostream &a_os, const IndexTM &a_iv) |
std::istream & | operator>> (std::istream &a_os, IndexTM &a_iv) |
Constants | |
static const IndexTM | Zero |
static const IndexTM | Unit |
void | linearIn (const void *a_inBuf) |
void | linearOut (void *a_outBuf) const |
static int | InitStatics () |
Additional Inherited Members | |
![]() | |
typedef T | scalar_type |
typedef IndexTM< T, N > | self_type |
Construct an IndexTM whose components are uninitialized.
References IndexTM< T, N >::m_vect.
References IndexTM< T, N >::m_vect.
References IndexTM< T, N >::m_vect.
References IndexTM< T, N >::m_vect.
References IndexTM< T, N >::m_vect.
References IndexTM< T, N >::m_vect.
Construct an IndexTM setting the coordinates to the corresponding values in the integer array a_a.
References IndexTM< T, N >::m_vect.
The copy constructor.
References IndexTM< T, N >::m_vect.
References MayDay::Error(), and IndexTM< T, N >::setAll().
|
inline |
The assignment operator.
References IndexTM< T, N >::m_vect.
|
inline |
|
inline |
|
inline |
|
inline |
set all values to val
Referenced by IndexTM< T, N >::IndexTM().
|
inline |
Returns a const pointer to an array of coordinates of the IndexTM. Useful for arguments to FORTRAN calls.
|
inline |
Only for sending to Fortran
Referenced by BASISV_TM().
|
inline |
Only for sending to Fortran
|
inline |
Returns true if this IndexTM is equivalent to argument IndexTM. All comparisons between analogous components must be satisfied.
References IndexTM< T, N >::m_vect.
|
inline |
Returns true if this IndexTM is lexically less than the argument. An IndexTM MUST BE either lexically less than, lexically greater than, or equal to another IndexTM.
iv1 is lexically less than iv2 if:
in 2-D:
(iv1[0] < iv2[0]) || ((iv1[0] == iv2[0]) && (iv1[1] < iv2[1]));
in 3-D:
(iv1[0] < iv2[0]) || (iv1[0]==iv2[0] && ((iv1[1] < iv2[1] || ((iv1[1] == iv2[1]) && (iv1[2] < iv2[2])))));
References IndexTM< T, N >::m_vect.
|
inline |
Returns true if this IndexTM is lexically greater than the argument. An IndexTM MUST BE either lexically less than, lexically greater than, or equal to another IndexTM.
iv1 is lexically less than iv2 if:
in 2-D:
(iv1[0] > iv2[0]) || ((iv1[0] == iv2[0]) && (iv1[1] > iv2[1]));
in 3-D:
(iv1[0] > iv2[0]) || (iv1[0]==iv2[0] && ((iv1[1] > iv2[1] || ((iv1[1] == iv2[1]) && (iv1[2] > iv2[2])))));
References IndexTM< T, N >::m_vect.
Unary plus – for completeness.
Unary minus – negates all components of this IndexTM.
References IndexTM< T, N >::m_vect.
|
inline |
References IndexTM< T, N >::m_vect.
|
inline |
Sum of all components of this IndexTM.
Referenced by LSProblem< dim >::computeBounds().
|
inline |
Product of all components of this IndexTM.
bool IndexTM< T, N >::operatorCompare | ( | const IndexTM< T, N > & | a_p, |
const OP & | a_op | ||
) | const |
Used by GenericArithmeticable to implement all pointwise arithmetic and comparison functions.
References IndexTM< T, N >::m_vect.
|
inline |
References IndexTM< T, N >::m_vect.
|
inline |
Modifies this IndexTM by division of each component into T(1).
|
inline |
Component with the minimum value of this Index(returns 0 if they are all the same). a_doAbs : if true then take the absolute value before comparing
|
inline |
Component with the maximum value of this Index (returns 0 if they are all the same). a_doAbs : if true then take the absolute value before comparing.
|
inline |
Modifies this IndexTM by taking component-wise min with IndexTM argument.
References IndexTM< T, N >::m_vect.
Referenced by min().
|
inline |
Modifies this IndexTM by taking component-wise max with IndexTM argument.
References IndexTM< T, N >::m_vect.
Referenced by max().
Modifies this IndexTM by multiplying each component by a scalar.
Modifies this IndexTM by adding a scalar s to each component.
|
inline |
Modify IndexTM by component-wise integer projection.
References CH_assert, and IndexTM< T, N >::m_vect.
Referenced by coarsen().
void IndexTM< T, N >::printOn | ( | std::ostream & | a_os | ) | const |
Print an IndexTM to the ostream.
void IndexTM< T, N >::p | ( | ) | const |
void IndexTM< T, N >::dumpOn | ( | std::ostream & | a_os | ) | const |
Print an IndexTM to the ostream a bit more verbosely.
|
static |
Initializes Zero and Unit.
void IndexTM< T, N >::linearIn | ( | const void * | a_inBuf | ) |
Low-level data copy.
void IndexTM< T, N >::linearOut | ( | void * | a_outBuf | ) | const |
|
friend |
Print the IndexTM to given output stream in ASCII.
|
friend |
Read next IndexTM from given input stream.
This is an IndexTM all of whose components are equal to zero.
This is an IndexTM all of whose components are equal to one.
|
protected |
The individual components of this IndexTM.
Referenced by IndexTM< T, N >::coarsen(), IndexTM< T, N >::dotProduct(), IndexTM< T, N >::IndexTM(), IndexTM< T, N >::lexGT(), IndexTM< T, N >::lexLT(), IndexTM< T, N >::max(), IndexTM< T, N >::min(), IndexTM< T, N >::operator-(), IndexTM< T, N >::operator=(), IndexTM< T, N >::operator==(), IndexTM< T, N >::operatorCompare(), and IndexTM< T, N >::operatorOpEquals().