SObjectizer 5.8
Loading...
Searching...
No Matches
so_5::details::message_holder_details Namespace Reference

Classes

struct  accessor_selector
 A meta-function for selection of type of accessors mixin. More...
 
class  basic_message_holder_impl_t
 Basic part of message_holder implementations. More...
 
struct  impl_selector
 A meta-function for selection a base of message_holder implementation in compile-time. More...
 
class  msg_accessors_t
 An of mixin with getters for message_holder. More...
 
class  shared_message_holder_impl_t
 A part of implementation of message_holder to be used for shared ownership of message instances. More...
 
class  unique_message_holder_impl_t
 A part of implementation of message_holder to be used for unique ownership of message instances. More...
 

Typedefs

template<typename Msg , message_ownership_t Ownership>
using impl_selector_t = typename impl_selector<Msg, Ownership>::type
 Just a shortcut for impl_selector meta-function.
 
template<message_mutability_t Mutability, typename Base >
using accessor_selector_t
 Just a shortcut for accessor_selector meta-function.
 

Functions

template<typename M >
M * get_ptr (const intrusive_ptr_t< M > &msg) noexcept
 A helper function to get a const raw pointer from smart pointer.
 
template<typename M >
M * get_ptr (const intrusive_ptr_t< user_type_message_t< M > > &msg) noexcept
 A helper function to get a const raw pointer from smart pointer.
 

Typedef Documentation

◆ accessor_selector_t

Initial value:
typename accessor_selector<Mutability, Base>::type

Just a shortcut for accessor_selector meta-function.

Since
v.5.6.0

Definition at line 338 of file message_holder.hpp.

◆ impl_selector_t

template<typename Msg , message_ownership_t Ownership>
using so_5::details::message_holder_details::impl_selector_t = typename impl_selector<Msg, Ownership>::type

Just a shortcut for impl_selector meta-function.

Since
v.5.6.0

Definition at line 264 of file message_holder.hpp.

Function Documentation

◆ get_ptr() [1/2]

template<typename M >
M * so_5::details::message_holder_details::get_ptr ( const intrusive_ptr_t< M > & msg)
noexcept

A helper function to get a const raw pointer from smart pointer.

Definition at line 56 of file message_holder.hpp.

◆ get_ptr() [2/2]

template<typename M >
M * so_5::details::message_holder_details::get_ptr ( const intrusive_ptr_t< user_type_message_t< M > > & msg)
noexcept

A helper function to get a const raw pointer from smart pointer.

This overload is for case when M is a user type message.

Definition at line 67 of file message_holder.hpp.