PSCF v1.5.0
Pscf::Rp::SystemConstRef< D, T > Class Template Reference

Base class template for const access to an associated System. More...

#include <SystemConstRef.h>

Inheritance diagram for Pscf::Rp::SystemConstRef< D, T >:
Pscf::Rp::ScftThermo< D, T >

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.

Detailed Description

template<int D, class T>
class Pscf::Rp::SystemConstRef< D, T >

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.

Constructor & Destructor Documentation

◆ SystemConstRef() [1/2]

template<int D, class T>
Pscf::Rp::SystemConstRef< D, T >::SystemConstRef ( )
protected

Default constructor.

Definition at line 21 of file SystemConstRef.tpp.

◆ SystemConstRef() [2/2]

template<int D, class T>
Pscf::Rp::SystemConstRef< D, T >::SystemConstRef ( System< D, T > const & system)
protected

Constructor - creates associations.

Using of this constructor is equivalent to using the default constructor and then invoking the associate() function.

Parameters
systemparent system object

Definition at line 37 of file SystemConstRef.tpp.

References associate(), and system().

◆ ~SystemConstRef()

template<int D, class T>
Pscf::Rp::SystemConstRef< D, T >::~SystemConstRef ( )
protected

Destructor.

Definition at line 53 of file SystemConstRef.tpp.

Member Function Documentation

◆ system()

template<int D, class T>
System< D, T > const & Pscf::Rp::SystemConstRef< D, T >::system ( ) const
inline

Get the associated System.

Definition at line 54 of file SystemConstRef.h.

Referenced by associate(), and SystemConstRef().

◆ mixture()

template<int D, class T>
Mixture< D, T > const & Pscf::Rp::SystemConstRef< D, T >::mixture ( ) const
inline

Get the Mixture.

Definition at line 60 of file SystemConstRef.h.

◆ interaction()

template<int D, class T>
Interaction const & Pscf::Rp::SystemConstRef< D, T >::interaction ( ) const
inline

Get the Interaction.

Definition at line 66 of file SystemConstRef.h.

◆ domain()

template<int D, class T>
Domain< D, T > const & Pscf::Rp::SystemConstRef< D, T >::domain ( ) const
inline

Get the Domain.

Definition at line 72 of file SystemConstRef.h.

◆ c()

template<int D, class T>
CFields< D, T > const & Pscf::Rp::SystemConstRef< D, T >::c ( ) const
inline

Get the concentration (c) field container.

Definition at line 78 of file SystemConstRef.h.

◆ w()

template<int D, class T>
WFields< D, T > const & Pscf::Rp::SystemConstRef< D, T >::w ( ) const
inline

Get the chemical potential (w) field container.

Definition at line 84 of file SystemConstRef.h.

◆ h()

template<int D, class T>
WFields< D, T > const & Pscf::Rp::SystemConstRef< D, T >::h ( ) const
inline

Get the external potential (h) field container (if any).

Definition at line 90 of file SystemConstRef.h.

◆ mask()

template<int D, class T>
Mask< D, T > const & Pscf::Rp::SystemConstRef< D, T >::mask ( ) const
inline

Get the mask (if any).

Definition at line 96 of file SystemConstRef.h.

◆ fileMaster()

template<int D, class T>
FileMaster const & Pscf::Rp::SystemConstRef< D, T >::fileMaster ( ) const
inline

Get the FileMaster.

Definition at line 102 of file SystemConstRef.h.

◆ associate()

template<int D, class T>
void Pscf::Rp::SystemConstRef< D, T >::associate ( System< D, T > const & system)
protected

The documentation for this class was generated from the following files: