SObjectizer 5.8
Loading...
Searching...
No Matches
so_5::simple_sink_owner_t< Sink_Type > Class Template Referencefinal

Implementation of abstract_sink_owner that owns an instance of message sink. More...

#include <message_sink.hpp>

Inheritance diagram for so_5::simple_sink_owner_t< Sink_Type >:
so_5::abstract_sink_owner_t so_5::atomic_refcounted_t

Public Member Functions

template<typename... Args>
 simple_sink_owner_t (Args &&...args)
 Initializing constructor.
 
abstract_message_sink_tsink () noexcept override
 Get a reference to the underlying message sink.
 
const abstract_message_sink_tsink () const noexcept override
 Get a const reference to the underlying message sink.
 
- Public Member Functions inherited from so_5::abstract_sink_owner_t
 abstract_sink_owner_t ()=default
 
virtual ~abstract_sink_owner_t () noexcept=default
 

Private Attributes

Sink_Type m_sink
 

Additional Inherited Members

- Protected Member Functions inherited from so_5::atomic_refcounted_t
 atomic_refcounted_t (const atomic_refcounted_t &)=delete
 
atomic_refcounted_toperator= (const atomic_refcounted_t &)=delete
 
 atomic_refcounted_t () noexcept
 Default constructor.
 
 ~atomic_refcounted_t () noexcept=default
 Destructor.
 
void inc_ref_count () noexcept
 Increments reference count.
 
unsigned long dec_ref_count () noexcept
 Decrement reference count.
 

Detailed Description

template<typename Sink_Type>
class so_5::simple_sink_owner_t< Sink_Type >

Implementation of abstract_sink_owner that owns an instance of message sink.

Template Parameters
Sink_TypeType of the message sink to be created as a part of owner object.
Since
v.5.8.0

Definition at line 290 of file message_sink.hpp.

Constructor & Destructor Documentation

◆ simple_sink_owner_t()

template<typename Sink_Type >
template<typename... Args>
so_5::simple_sink_owner_t< Sink_Type >::simple_sink_owner_t ( Args &&... args)
inline

Initializing constructor.

Forwards all arguments to the m_sink's constructor.

Definition at line 301 of file message_sink.hpp.

Member Function Documentation

◆ sink() [1/2]

template<typename Sink_Type >
const abstract_message_sink_t & so_5::simple_sink_owner_t< Sink_Type >::sink ( ) const
inlinenodiscardoverridevirtualnoexcept

Get a const reference to the underlying message sink.

Implements so_5::abstract_sink_owner_t.

Definition at line 314 of file message_sink.hpp.

◆ sink() [2/2]

template<typename Sink_Type >
abstract_message_sink_t & so_5::simple_sink_owner_t< Sink_Type >::sink ( )
inlinenodiscardoverridevirtualnoexcept

Get a reference to the underlying message sink.

Implements so_5::abstract_sink_owner_t.

Definition at line 307 of file message_sink.hpp.

Member Data Documentation

◆ m_sink

template<typename Sink_Type >
Sink_Type so_5::simple_sink_owner_t< Sink_Type >::m_sink
private

Definition at line 292 of file message_sink.hpp.


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