CHROMA
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Chroma::BlockFunc Class Reference

Function object used for constructing a block set. More...

#include <block_subset.h>

Inheritance diagram for Chroma::BlockFunc:

Public Member Functions

 BlockFunc (const multi1d< int > &blk)
 
 BlockFunc (int dir, const multi1d< int > &blk)
 
int operator() (const multi1d< int > &coordinate) const
 
int numSubsets () const
 

Private Member Functions

 BlockFunc ()
 
void init (const multi1d< int > &blk)
 

Private Attributes

int time_dir
 
multi1d< int > block
 
multi1d< int > blockNum
 
int Nblocks
 

Detailed Description

Function object used for constructing a block set.

Definition at line 15 of file block_subset.h.

Constructor & Destructor Documentation

◆ BlockFunc() [1/3]

Chroma::BlockFunc::BlockFunc ( const multi1d< int > &  blk)
inline

Definition at line 18 of file block_subset.h.

References init().

◆ BlockFunc() [2/3]

Chroma::BlockFunc::BlockFunc ( int  dir,
const multi1d< int > &  blk 
)
inline

Definition at line 21 of file block_subset.h.

References init().

◆ BlockFunc() [3/3]

Chroma::BlockFunc::BlockFunc ( )
inlineprivate

Definition at line 39 of file block_subset.h.

Member Function Documentation

◆ init()

void Chroma::BlockFunc::init ( const multi1d< int > &  blk)
inlineprivate

DEBUG QDPIO::cout<<"BlockNums: "; for(int d(0); d < Nd; d++){ QDPIO::cout<<blockNum[d]<<" "; } QDPIO::cout<<std::endl;

QDPIO::cout<<"BlockSize: "; for(int d(0); d < Nd; d++){ QDPIO::cout<<block[d]<<" "; } QDPIO::cout<<std::endl; END DEBUG

Definition at line 41 of file block_subset.h.

References block, blockNum, Chroma::d, Chroma::k, Nblocks, Nd, and time_dir.

Referenced by BlockFunc().

◆ numSubsets()

int Chroma::BlockFunc::numSubsets ( ) const
inline

Definition at line 34 of file block_subset.h.

References Nblocks.

◆ operator()()

int Chroma::BlockFunc::operator() ( const multi1d< int > &  coordinate) const
inline

Definition at line 25 of file block_subset.h.

References Chroma::b, block, blockNum, Chroma::d, and Nd.

Member Data Documentation

◆ block

multi1d<int> Chroma::BlockFunc::block
private

Definition at line 78 of file block_subset.h.

Referenced by init(), and operator()().

◆ blockNum

multi1d<int> Chroma::BlockFunc::blockNum
private

Definition at line 79 of file block_subset.h.

Referenced by init(), and operator()().

◆ Nblocks

int Chroma::BlockFunc::Nblocks
private

Definition at line 80 of file block_subset.h.

Referenced by init(), and numSubsets().

◆ time_dir

int Chroma::BlockFunc::time_dir
private

Definition at line 77 of file block_subset.h.

Referenced by init().


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