Bridge++
Version 1.5.4
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
index_lex.h
Go to the documentation of this file.
1
15
#ifndef INDEX_LEX_INCLUDED
16
#define INDEX_LEX_INCLUDED
17
18
#include "
Parameters/commonParameters.h
"
19
21
34
class
Index_lex
{
35
protected
:
36
int
m_Nx
,
m_Ny
,
m_Nz
,
m_Nt
;
37
38
public
:
39
Index_lex
() :
40
m_Nx
(
CommonParameters
::Nx()),
41
m_Ny
(
CommonParameters
::Ny()),
42
m_Nz
(
CommonParameters
::Nz()),
43
m_Nt
(
CommonParameters
::Nt()) { }
44
45
Index_lex
(
const
int
Nx,
const
int
Ny,
const
int
Nz,
const
int
Nt)
46
{
47
m_Nx
= Nx;
48
m_Ny
= Ny;
49
m_Nz
= Nz;
50
m_Nt
= Nt;
51
}
52
53
int
site
(
const
int
& x,
const
int
& y,
const
int
& z,
const
int
& t)
54
const
55
{
56
return
x +
m_Nx
* (y +
m_Ny
* (z +
m_Nz
* t));
57
}
58
};
59
#endif
Index_lex::m_Nz
int m_Nz
Definition:
index_lex.h:36
Index_lex::site
int site(const int &x, const int &y, const int &z, const int &t) const
Definition:
index_lex.h:53
Index_lex::m_Nt
int m_Nt
Definition:
index_lex.h:36
commonParameters.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition:
commonParameters.h:42
Index_lex
Lexical site index.
Definition:
index_lex.h:34
Index_lex::m_Ny
int m_Ny
Definition:
index_lex.h:36
Index_lex::Index_lex
Index_lex(const int Nx, const int Ny, const int Nz, const int Nt)
Definition:
index_lex.h:45
Index_lex::m_Nx
int m_Nx
Definition:
index_lex.h:36
Index_lex::Index_lex
Index_lex()
Definition:
index_lex.h:39
src
lib
Field
index_lex.h
Generated on Thu Mar 19 2020 10:28:22 for Bridge++ by
1.8.6