Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Index_lex Class Reference

Lexical site index. More...

#include <index_lex.h>

Public Member Functions

 Index_lex ()
 
 Index_lex (const int Nx, const int Ny, const int Nz, const int Nt)
 
int site (const int &x, const int &y, const int &z, const int &t) const
 

Protected Attributes

int m_Nx
 
int m_Ny
 
int m_Nz
 
int m_Nt
 

Detailed Description

Lexical site index.

This class defines lexicographycal site index. Only the site degree of freedom is concerned. In present implementation, there is no superclass structure, and thus polymorphism is not available. Is it better to be renamed Index_lex and derived from generic Index class ? [25 Dec 2011 H.Matsufuru]

Nx,Ny,Nz,Nt are enabled to be given at the construction. [26 May 2012 H.Matsufuru]

Definition at line 34 of file index_lex.h.

Constructor & Destructor Documentation

Index_lex::Index_lex ( )
inline

Definition at line 39 of file index_lex.h.

Index_lex::Index_lex ( const int  Nx,
const int  Ny,
const int  Nz,
const int  Nt 
)
inline

Definition at line 45 of file index_lex.h.

Member Function Documentation

int Index_lex::site ( const int &  x,
const int &  y,
const int &  z,
const int &  t 
) const
inline

Definition at line 53 of file index_lex.h.

Member Data Documentation

int Index_lex::m_Nt
protected

Definition at line 36 of file index_lex.h.

int Index_lex::m_Nx
protected

Definition at line 36 of file index_lex.h.

int Index_lex::m_Ny
protected

Definition at line 36 of file index_lex.h.

int Index_lex::m_Nz
protected

Definition at line 36 of file index_lex.h.


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