QMCPACK
AxisGrid< REAL > Struct Template Reference
+ Inheritance diagram for AxisGrid< REAL >:
+ Collaboration diagram for AxisGrid< REAL >:

Public Member Functions

 AxisGrid ()=default
 
 AxisGrid (std::vector< int > &&rhs_ndom_int, std::vector< int > &&rhs_ndu_int, std::vector< REAL > &&rhs_du_int, REAL rhs_umin, REAL rhs_umax, REAL rhs_odu, std::vector< int > &&rhs_gmap, std::vector< int > &&rhs_ndu_per_interval, int rhs_dimensions)
 "aggregate" style constructor More...
 
 AxisGrid (const AxisGrid &rhs)
 
AxisGridoperator= (AxisGrid rhs)
 
bool operator== (const AxisGrid &ag) const
 equality operator, all values must be equal. More...
 

Public Attributes

std::vector< int > ndom_int
 
std::vector< int > ndu_int
 
std::vector< REAL > du_int
 
REAL umin
 
REAL umax
 
REAL odu
 
std::vector< int > gmap
 
std::vector< int > ndu_per_interval
 
int dimensions
 

Detailed Description

template<typename REAL>
struct qmcplusplus::AxisGrid< REAL >

Definition at line 33 of file ParseGridInput.hpp.

Constructor & Destructor Documentation

◆ AxisGrid() [1/3]

AxisGrid ( )
default

◆ AxisGrid() [2/3]

AxisGrid ( std::vector< int > &&  rhs_ndom_int,
std::vector< int > &&  rhs_ndu_int,
std::vector< REAL > &&  rhs_du_int,
REAL  rhs_umin,
REAL  rhs_umax,
REAL  rhs_odu,
std::vector< int > &&  rhs_gmap,
std::vector< int > &&  rhs_ndu_per_interval,
int  rhs_dimensions 
)

"aggregate" style constructor

Definition at line 169 of file ParseGridInput.cpp.

178 {
179  ndom_int = rhs_ndom_int;
180  ndu_int = rhs_ndu_int;
181  du_int = rhs_du_int;
182  umin = rhs_umin;
183  umax = rhs_umax;
184  odu = rhs_odu;
185  gmap = rhs_gmap;
186  ndu_per_interval = rhs_ndu_per_interval;
187  dimensions = rhs_dimensions;
188 }
std::vector< int > gmap
std::vector< int > ndu_per_interval
std::vector< int > ndom_int
std::vector< int > ndu_int
std::vector< REAL > du_int

◆ AxisGrid() [3/3]

AxisGrid ( const AxisGrid< REAL > &  rhs)

Definition at line 191 of file ParseGridInput.cpp.

192 {
193  ndom_int = rhs.ndom_int;
194  ndu_int = rhs.ndu_int;
195  du_int = rhs.du_int;
196  umin = rhs.umin;
197  umax = rhs.umax;
198  odu = rhs.odu;
199  gmap = rhs.gmap;
200  ndu_per_interval = rhs.ndu_per_interval;
201  dimensions = rhs.dimensions;
202 }
std::vector< int > gmap
std::vector< int > ndu_per_interval
std::vector< int > ndom_int
std::vector< int > ndu_int
std::vector< REAL > du_int

Member Function Documentation

◆ operator=()

AxisGrid< REAL > & operator= ( AxisGrid< REAL >  rhs)

Definition at line 205 of file ParseGridInput.cpp.

206 {
207  std::swap(ndom_int, rhs.ndom_int);
208  std::swap(ndu_int, rhs.ndu_int);
209  std::swap(du_int, rhs.du_int);
210  std::swap(umin, rhs.umin);
211  std::swap(umax, rhs.umax);
212  std::swap(odu, rhs.odu);
213  std::swap(gmap, rhs.gmap);
214  std::swap(ndu_per_interval, rhs.ndu_per_interval);
215  std::swap(dimensions, rhs.dimensions);
216  return *this;
217 }
std::vector< int > gmap
std::vector< int > ndu_per_interval
std::vector< int > ndom_int
std::vector< int > ndu_int
std::vector< REAL > du_int

◆ operator==()

bool operator== ( const AxisGrid< REAL > &  ag) const
inline

equality operator, all values must be equal.

In C++20 this will just be the defaulted operator==.

Definition at line 56 of file ParseGridInput.hpp.

57  {
58  return (ag.ndom_int == ndom_int && ag.ndu_int == ndu_int && ag.du_int == du_int && ag.umin == umin &&
59  ag.umax == umax && ag.odu == odu && ag.gmap == gmap && ag.ndu_per_interval == ndu_per_interval &&
60  ag.dimensions == dimensions);
61  }
std::vector< int > gmap
std::vector< int > ndu_per_interval
std::vector< int > ndom_int
std::vector< int > ndu_int
std::vector< REAL > du_int

Member Data Documentation

◆ dimensions

◆ du_int

◆ gmap

◆ ndom_int

◆ ndu_int

◆ ndu_per_interval

std::vector<int> ndu_per_interval

◆ odu

◆ umax

◆ umin


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