1#ifndef RP_SYSTEM_CONST_REF_H
2#define RP_SYSTEM_CONST_REF_H
32 template <
int D,
class T>
41 typename T::System
const &
system()
const
42 {
return *systemPtr_; }
47 typename T::Mixture
const &
mixture()
const
48 {
return *mixturePtr_; }
54 {
return *interactionPtr_; }
59 typename T::Domain
const &
domain()
const
60 {
return *domainPtr_; }
65 typename T::CFields
const &
c()
const
71 typename T::WFields
const &
w()
const
77 typename T::WFields
const &
h()
const
83 typename T::Mask
const &
mask()
const
90 {
return *fileMasterPtr_; }
124 typename T::System
const * systemPtr_;
127 typename T::Mixture
const * mixturePtr_;
130 typename T::Interaction
const * interactionPtr_;
133 typename T::Domain
const * domainPtr_;
136 typename T::CFields
const * cPtr_;
139 typename T::WFields
const * wPtr_;
142 typename T::WFields
const * hPtr_;
145 typename T::Mask
const * maskPtr_;
T::CFields const & c() const
Get the concentration (c) field container.
FileMaster const & fileMaster() const
Get the FileMaster.
void associate(typename T::System const &system)
Create associations with a system and its components.
T::Domain const & domain() const
Get the Domain.
T::WFields const & w() const
Get the chemical potential (w) field container.
T::WFields const & h() const
Get the external potential (h) field container (if any).
T::Interaction const & interaction() const
Get the Interaction.
SystemConstRef()
Default constructor.
T::Mask const & mask() const
Get the mask (if any).
~SystemConstRef()
Destructor.
T::Mixture const & mixture() const
Get the Mixture.
T::System const & system() const
Get the associated System.
A FileMaster manages input and output files for a simulation.
Class templates for real-valued periodic fields.
PSCF package top-level namespace.
Utility classes for scientific computation.