|
PSCF v1.4.0
|
Base class template for const access to an associated System. More...
#include <SystemConstRef.h>
Public Member Functions | |
| T::System const & | system () const |
| Get the associated System. | |
| T::Mixture const & | mixture () const |
| Get the Mixture. | |
| T::Interaction const & | interaction () const |
| Get the Interaction. | |
| T::Domain const & | domain () const |
| Get the Domain. | |
| T::CFields const & | c () const |
| Get the concentration (c) field container. | |
| 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::Mask const & | mask () const |
| Get the mask (if any). | |
| FileMaster const & | fileMaster () const |
| Get the FileMaster. | |
Protected Member Functions | |
| SystemConstRef () | |
| Default constructor. | |
| SystemConstRef (typename T::System const &system) | |
| Constructor - creates associations. | |
| ~SystemConstRef () | |
| Destructor. | |
| void | associate (typename T::System 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 33 of file system/SystemConstRef.h.
|
protected |
Default constructor.
Definition at line 20 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 36 of file SystemConstRef.tpp.
References associate(), and system().
|
protected |
Destructor.
Definition at line 52 of file SystemConstRef.tpp.
|
inline |
Get the associated System.
Definition at line 41 of file system/SystemConstRef.h.
Referenced by associate(), and SystemConstRef().
|
inline |
Get the Mixture.
Definition at line 47 of file system/SystemConstRef.h.
|
inline |
Get the Interaction.
Definition at line 53 of file system/SystemConstRef.h.
|
inline |
Get the Domain.
Definition at line 59 of file system/SystemConstRef.h.
|
inline |
Get the concentration (c) field container.
Definition at line 65 of file system/SystemConstRef.h.
|
inline |
Get the chemical potential (w) field container.
Definition at line 71 of file system/SystemConstRef.h.
|
inline |
Get the external potential (h) field container (if any).
Definition at line 77 of file system/SystemConstRef.h.
|
inline |
Get the mask (if any).
Definition at line 83 of file system/SystemConstRef.h.
|
inline |
Get the FileMaster.
Definition at line 89 of file system/SystemConstRef.h.
|
protected |
Create associations with a system and its components.
| system | parent system object |
Definition at line 56 of file SystemConstRef.tpp.
References system().
Referenced by SystemConstRef().