QDP++
QDP::ArrayMapFunc Class Referenceabstract

ArrayMapFunc. More...

#include <qdp_map.h>

Inheritance diagram for QDP::ArrayMapFunc:
QDP::NearestNeighborMapFunc

Public Member Functions

virtual ~ArrayMapFunc ()
 Virtual destructor - no cleanup needed.
virtual multi1d< int > operator() (const multi1d< int > &coordinate, int sign, int dir) const =0
 Maps a lattice coordinate under a map to a new lattice coordinate.
virtual int numArray () const =0
 Returns the array size - the number of directions which are to be used.

Detailed Description

ArrayMapFunc.

Abstract base class used as a function object for constructing maps

Definition at line 44 of file qdp_map.h.

Constructor & Destructor Documentation

◆ ~ArrayMapFunc()

virtual QDP::ArrayMapFunc::~ArrayMapFunc ( )
inlinevirtual

Virtual destructor - no cleanup needed.

Definition at line 48 of file qdp_map.h.

Member Function Documentation

◆ numArray()

virtual int QDP::ArrayMapFunc::numArray ( ) const
pure virtual

Returns the array size - the number of directions which are to be used.

Implemented in QDP::NearestNeighborMapFunc.

Referenced by QDP::ArrayBiDirectionalMap::make(), and QDP::ArrayMap::make().

◆ operator()()

virtual multi1d< int > QDP::ArrayMapFunc::operator() ( const multi1d< int > & coordinate,
int sign,
int dir ) const
pure virtual

Maps a lattice coordinate under a map to a new lattice coordinate.

sign > 0 for map, sign < 0 for the inverse map

Implemented in QDP::NearestNeighborMapFunc.


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