ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
System::Leaf< Class > Class Template Reference

Abstract class that represents a component of the system. More...

#include <Leaf.hpp>

Collaboration diagram for System::Leaf< Class >:

Public Member Functions

void bind_system (std::shared_ptr< System > const &system)
void detach_system (std::shared_ptr< System > const &system)

Protected Member Functions

auto & get_system ()
auto & get_system () const

Protected Attributes

std::weak_ptr< System > m_system

Detailed Description

template<typename Class>
class System::Leaf< Class >

Abstract class that represents a component of the system.

See System class design for more details.

Definition at line 34 of file core/system/Leaf.hpp.

Member Function Documentation

◆ bind_system()

◆ detach_system()

template<typename Class>
void System::Leaf< Class >::detach_system ( std::shared_ptr< System > const & system)
inline

Definition at line 61 of file core/system/Leaf.hpp.

References m_system.

◆ get_system() [1/2]

template<typename Class>
auto & System::Leaf< Class >::get_system ( )
inlineprotected

Definition at line 42 of file core/system/Leaf.hpp.

References m_system.

◆ get_system() [2/2]

template<typename Class>
auto & System::Leaf< Class >::get_system ( ) const
inlineprotected

Definition at line 48 of file core/system/Leaf.hpp.

References m_system.

Member Data Documentation

◆ m_system

template<typename Class>
std::weak_ptr<System> System::Leaf< Class >::m_system
protected

Definition at line 40 of file core/system/Leaf.hpp.

Referenced by bind_system(), detach_system(), get_system(), and get_system().


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