CGPoint.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef CGPOINT_H
6 #define CGPOINT_H
7 
10 
22 template<class Coordinates, class Fields=CGFields::StandardFields>
23 class CGPoint : public Fields
24 {
25 public:
26 
28 
29  CGPoint() = default;
30 
31  CGPoint(const CGPoint& orig) = default;
32 
33  virtual ~CGPoint() = default;
34 
38  void write(std::ostream& os) const
39  {
40  coordinates.write(os);
41  Fields::write(os);
42  }
43 
44 public:
45 
47 
48 };
49 
50 #endif
51 
Combines the position of the CGPoint (e.g. x, y, z), the parameters of the coarse-graining function (...
Definition: CGPoint.h:24
void write(std::ostream &os) const
Combines the write functions of the two base classes Coordinates and Fields.
Definition: CGPoint.h:38
Coordinates CoordinatesType
Definition: CGPoint.h:27
CGPoint(const CGPoint &orig)=default
Coordinates coordinates
Definition: CGPoint.h:46
CGPoint()=default
virtual ~CGPoint()=default
Template argument; use a member class of CGCoordinates to instantiate.
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::enable_if_t< dt !=data_source::global_mem, void > write(PacketType &packet_data, DataScalar ptr)
write, a template function used for storing the data to local memory. This function is used to guaran...
Definition: TensorContractionSycl.h:221