LatticeYangMills
Public Member Functions | Protected Attributes | List of all members
App Class Referenceabstract

Prototype for the App class group. More...

#include <app.h>

Inheritance diagram for App:
Inheritance graph
[legend]
Collaboration diagram for App:
Collaboration graph
[legend]

Public Member Functions

void setAction (Action *action)
 Initializes the Action object pointer given an instance of it. More...
 
virtual void createLattice (std::array< int, 4 > latticeSize)
 Initializes the GluonField object given a sublattice size. More...
 
void addObservable (Observable *observable)
 Adds a Observable class pointer to the vector of observables of the App. More...
 
virtual void execute ()=0
 

Protected Attributes

Actionm_act = nullptr
 Pointer to the Action instance.
 
GluonFieldm_lat = nullptr
 Pointer to the GluonField instance.
 
std::array< int, 4 > m_size
 Size of the sublattice.
 
std::vector< Observable * > m_obs
 Vector of pointers to Observable instances.
 

Detailed Description

Prototype for the App class group.

Author
Giovanni Pederiva
Version
1.0
Date
2017-2018

The App class represents the main user interface of the program. It is initialized by the JsonInput class when an input file is passed. The app holds the Action class, the main GluonField object and the Observable vector. The generic execute() method is used to start the execution of the main algorithm.

Definition at line 59 of file app.h.

Member Function Documentation

void App::addObservable ( Observable observable)

Adds a Observable class pointer to the vector of observables of the App.

Parameters
observablea pointer to an Observable instance

Definition at line 58 of file app.cpp.

void App::createLattice ( std::array< int, 4 >  latticeSize)
virtual

Initializes the GluonField object given a sublattice size.

Parameters
latticeSize4-component int array for the size of the sublattice

Reimplemented in WilsonFlow.

Definition at line 41 of file app.cpp.

void App::setAction ( Action action)

Initializes the Action object pointer given an instance of it.

Parameters
actiona pointer to an Action instance

Definition at line 50 of file app.cpp.


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