QuOc

 

Public Member Functions | Private Attributes

qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier Class Reference

#include <scalarArray.h>

List of all members.

Public Member Functions

 flipCopier (const int numX, const int numY, const int numZ, const qc::Comp component)
DataType operator() (int x, int y, int z, const ScalarArray< DataType, qc::QC_3D > &source)

Private Attributes

const int _numX
const int _numY
const int _numZ
const qc::Comp _component

Detailed Description

template<typename _DataType>
class qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier

Definition at line 1316 of file scalarArray.h.


Constructor & Destructor Documentation

template<typename _DataType >
qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier::flipCopier ( const int  numX,
const int  numY,
const int  numZ,
const qc::Comp  component 
) [inline]

Definition at line 1318 of file scalarArray.h.

      : _numX ( numX ), _numY ( numY ), _numZ ( numZ ), _component ( component )
    {}


Member Function Documentation

template<typename _DataType >
DataType qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier::operator() ( int  x,
int  y,
int  z,
const ScalarArray< DataType, qc::QC_3D > &  source 
) [inline]

Definition at line 1322 of file scalarArray.h.

References qc::QC_X, qc::QC_Y, and qc::QC_Z.

                                                                                                     {
      if ( _component == qc::QC_X )
  return source.get ( _numX - 1 - x, y, z );
      else if ( _component == qc::QC_Y )
  return source.get ( x, _numY - 1 - y, z );
      else if ( _component == qc::QC_Z )
  return source.get ( x, y, _numZ - 1 - z );
      else {
  throw aol::Exception ( "flipCopier: Component to flip is invalid!\n", __FILE__, __LINE__ );
  return source.get ( x, y, z );
      }
    }


Member Data Documentation

template<typename _DataType >
const qc::Comp qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier::_component [private]

Definition at line 1337 of file scalarArray.h.

template<typename _DataType >
const int qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier::_numX [private]

Definition at line 1336 of file scalarArray.h.

template<typename _DataType >
const int qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier::_numY [private]

Definition at line 1336 of file scalarArray.h.

template<typename _DataType >
const int qc::ScalarArray< _DataType, qc::QC_3D >::flipCopier::_numZ [private]

Definition at line 1336 of file scalarArray.h.


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

Generated on Fri Sep 9 2011 21:09:58 for QuocMesh by doxygen 1.7.1