Bridge++
Ver. 2.0.2
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
Bridge::VerboseLevel
m_vl
;
38
39
public
:
40
Index_lex
() :
41
m_Nx
(
CommonParameters
::Nx()),
42
m_Ny
(
CommonParameters
::Ny()),
43
m_Nz
(
CommonParameters
::Nz()),
44
m_Nt
(
CommonParameters
::Nt()),
45
m_vl
(
CommonParameters
::Vlevel()) { }
46
47
Index_lex
(
const
int
Nx,
const
int
Ny,
const
int
Nz,
const
int
Nt)
48
{
49
m_Nx
= Nx;
50
m_Ny
= Ny;
51
m_Nz
= Nz;
52
m_Nt
= Nt;
53
}
54
55
int
site
(
const
int
& x,
const
int
& y,
const
int
& z,
const
int
& t)
56
const
57
{
58
return
x +
m_Nx
* (y +
m_Ny
* (z +
m_Nz
* t));
59
}
60
};
61
#endif
Index_lex::m_vl
Bridge::VerboseLevel m_vl
Definition:
index_lex.h:37
CommonParameters
Common parameter class: provides parameters as singleton.
Definition:
commonParameters.h:42
Index_lex::Index_lex
Index_lex(const int Nx, const int Ny, const int Nz, const int Nt)
Definition:
index_lex.h:47
Index_lex
Lexical site index.
Definition:
index_lex.h:34
Index_lex::Index_lex
Index_lex()
Definition:
index_lex.h:40
Index_lex::m_Ny
int m_Ny
Definition:
index_lex.h:36
Index_lex::m_Nx
int m_Nx
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:55
Index_lex::m_Nz
int m_Nz
Definition:
index_lex.h:36
commonParameters.h
Bridge::VerboseLevel
VerboseLevel
Definition:
bridgeIO.h:42
Index_lex::m_Nt
int m_Nt
Definition:
index_lex.h:36
src
lib
Field
index_lex.h
Generated on Sat Feb 10 2024 14:19:59 for Bridge++ by
1.8.17