|
PSCF v1.5.0
|
Base class template for const access to an associated System. More...
#include <SystemConstRef.h>
Public Member Functions | |
| System< D, T > const & | system () const |
| Get the associated System. | |
| Mixture< D, T > const & | mixture () const |
| Get the Mixture. | |
| Interaction const & | interaction () const |
| Get the Interaction. | |
| Domain< D, T > const & | domain () const |
| Get the Domain. | |
| CFields< D, T > const & | c () const |
| Get the concentration (c) field container. | |
| WFields< D, T > const & | w () const |
| Get the chemical potential (w) field container. | |
| WFields< D, T > const & | h () const |
| Get the external potential (h) field container (if any). | |
| Mask< D, T > const & | mask () const |
| Get the mask (if any). | |
| FileMaster const & | fileMaster () const |
| Get the FileMaster. | |
Protected Member Functions | |
| SystemConstRef () | |
| Default constructor. | |
| SystemConstRef (System< D, T > const &system) | |
| Constructor - creates associations. | |
| ~SystemConstRef () | |
| Destructor. | |
| void | associate (System< D, T > const &system) |
| Create associations with a system and its components. | |
Base class template for const access to an associated System.
A SystemConstRef holds read-only (const) pointers to an associated System object (type T::System) and several of its primary components, for a model with real fields and periodic boundary conditions. Accessor functions return the system and its components as const references.
Definition at line 46 of file SystemConstRef.h.
|
protected |
Default constructor.
Definition at line 21 of file SystemConstRef.tpp.
|
protected |
Constructor - creates associations.
Using of this constructor is equivalent to using the default constructor and then invoking the associate() function.
| system | parent system object |
Definition at line 37 of file SystemConstRef.tpp.
References associate(), and system().
|
protected |
Destructor.
Definition at line 53 of file SystemConstRef.tpp.
|
inline |
Get the associated System.
Definition at line 54 of file SystemConstRef.h.
Referenced by associate(), and SystemConstRef().
|
inline |
Get the Mixture.
Definition at line 60 of file SystemConstRef.h.
|
inline |
Get the Interaction.
Definition at line 66 of file SystemConstRef.h.
|
inline |
Get the Domain.
Definition at line 72 of file SystemConstRef.h.
|
inline |
Get the concentration (c) field container.
Definition at line 78 of file SystemConstRef.h.
|
inline |
Get the chemical potential (w) field container.
Definition at line 84 of file SystemConstRef.h.
|
inline |
Get the external potential (h) field container (if any).
Definition at line 90 of file SystemConstRef.h.
|
inline |
Get the mask (if any).
Definition at line 96 of file SystemConstRef.h.
|
inline |
Get the FileMaster.
Definition at line 102 of file SystemConstRef.h.
|
protected |
Create associations with a system and its components.
| system | parent system object |
Definition at line 57 of file SystemConstRef.tpp.
References Pscf::Rp::System< D, T >::c(), Pscf::Rp::System< D, T >::domain(), Pscf::Rp::System< D, T >::fileMaster(), Pscf::Rp::System< D, T >::h(), Pscf::Rp::System< D, T >::interaction(), Pscf::Rp::System< D, T >::mask(), Pscf::Rp::System< D, T >::mixture(), system(), and Pscf::Rp::System< D, T >::w().
Referenced by SystemConstRef().