PSCF v1.3.1
rpc/system/SystemConstRef.h
1#ifndef RPC_SYSTEM_CONST_REF_H
2#define RPC_SYSTEM_CONST_REF_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <prdc/system/SystemConstRefTmpl.h> // base class template
12#include <rpc/system/System.h> // template parameter
13
14namespace Pscf {
15namespace Rpc {
16
17 using namespace Util;
18 using namespace Pscf::Prdc;
19 using namespace Pscf::Prdc::Cpu;
20
29 template <int D>
30 class SystemConstRef : public SystemConstRefTmpl< System<D> >
31 {
32 public:
33
36
41 : Base()
42 {};
43
50 : Base(system)
51 {};
52
53 };
54
55 // Explicit instantiation declarations
56 extern template class SystemConstRef<1>;
57 extern template class SystemConstRef<2>;
58 extern template class SystemConstRef<3>;
59
60} // namespace Rpc
61
62namespace Prdc {
63
64 // Explicit instantiation declarations for base class template
65 extern template class SystemConstRefTmpl< Rpc::System<1> >;
66 extern template class SystemConstRefTmpl< Rpc::System<2> >;
67 extern template class SystemConstRefTmpl< Rpc::System<3> >;
68
69} // namespace Rpc
70
71} // namespace Pscf
72#endif
Base class template for const access to an associated System.
SystemConstRef(System< D > const &system)
Constructor.
SystemConstRefTmpl< System< D > > Base
Alias for base class.
Main class, representing a complete physical system.
Fields and FFTs for periodic boundary conditions (CPU)
Definition CField.cpp:12
Periodic fields and crystallography.
Definition CField.cpp:11
Real periodic fields, SCFT and PS-FTS (CPU).
Definition param_pc.dox:2
PSCF package top-level namespace.
Definition param_pc.dox:1