SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::partially_constructed_agent_ptr_t Class Reference

Wrapper around a pointer to partially constructed agent. More...

#include <agent_tuning_options.hpp>

Public Member Functions

 partially_constructed_agent_ptr_t (agent_t *ptr)
 
agent_tptr () const noexcept
 

Private Attributes

agent_tm_ptr
 

Detailed Description

Wrapper around a pointer to partially constructed agent.

This type is used as indicator that a pointer to agent can be transferred or stored somewhere, but shouldn't be used because the agent isn't fully constructed yet.

Since
v.5.7.4
Examples
so_5/custom_direct_mbox/main.cpp.

Definition at line 33 of file agent_tuning_options.hpp.

Constructor & Destructor Documentation

◆ partially_constructed_agent_ptr_t()

so_5::partially_constructed_agent_ptr_t::partially_constructed_agent_ptr_t ( agent_t * ptr)
inlineexplicit

Definition at line 38 of file agent_tuning_options.hpp.

Member Function Documentation

◆ ptr()

agent_t * so_5::partially_constructed_agent_ptr_t::ptr ( ) const
inlinenodiscardnoexcept

Definition at line 44 of file agent_tuning_options.hpp.

Member Data Documentation

◆ m_ptr

agent_t* so_5::partially_constructed_agent_ptr_t::m_ptr
private

Definition at line 35 of file agent_tuning_options.hpp.


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