Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
stub< con_msg_manager > Struct Template Reference
Collaboration diagram for stub< con_msg_manager >:

Public Types

typedef websocketpp::lib::shared_ptr< stubptr
 
typedef con_msg_manager< stubcon_msg_man_type
 
typedef con_msg_man_type::ptr con_msg_man_ptr
 
typedef con_msg_man_type::weak_ptr con_msg_man_weak_ptr
 
typedef websocketpp::lib::weak_ptr< stubweak_ptr
 

Public Member Functions

 stub (con_msg_man_ptr manager, websocketpp::frame::opcode::value op, size_t size=128)
 
bool recycle ()
 
 stub ()
 
bool recycle (message *)
 

Public Attributes

websocketpp::frame::opcode::value m_opcode
 
con_msg_man_weak_ptr m_manager
 
size_t m_size
 
bool recycled
 

Detailed Description

template<template< class > class con_msg_manager>
struct stub< con_msg_manager >

Definition at line 37 of file alloc.cpp.

Member Typedef Documentation

◆ con_msg_man_ptr

template<template< class > class con_msg_manager>
con_msg_man_type::ptr stub< con_msg_manager >::con_msg_man_ptr

Definition at line 41 of file alloc.cpp.

◆ con_msg_man_type

template<template< class > class con_msg_manager>
con_msg_manager<stub> stub< con_msg_manager >::con_msg_man_type

Definition at line 40 of file alloc.cpp.

◆ con_msg_man_weak_ptr

template<template< class > class con_msg_manager>
con_msg_man_type::weak_ptr stub< con_msg_manager >::con_msg_man_weak_ptr

Definition at line 42 of file alloc.cpp.

◆ ptr

template<template< class > class con_msg_manager>
typedef websocketpp::lib::shared_ptr< stub > stub< con_msg_manager >::ptr

Definition at line 38 of file alloc.cpp.

◆ weak_ptr

template<template< class > class con_msg_manager>
websocketpp::lib::weak_ptr<stub> stub< con_msg_manager >::weak_ptr

Definition at line 38 of file message.cpp.

Constructor & Destructor Documentation

◆ stub() [1/2]

template<template< class > class con_msg_manager>
stub< con_msg_manager >::stub ( con_msg_man_ptr manager,
websocketpp::frame::opcode::value op,
size_t size = 128 )
inline

Definition at line 44 of file alloc.cpp.

45 : m_opcode(op)
46 , m_manager(manager)
47 , m_size(size) {}
con_msg_man_weak_ptr m_manager
Definition alloc.cpp:60
websocketpp::frame::opcode::value m_opcode
Definition alloc.cpp:59
size_t m_size
Definition alloc.cpp:61

◆ stub() [2/2]

template<template< class > class con_msg_manager>
stub< con_msg_manager >::stub ( )
inline

Definition at line 41 of file message.cpp.

41: recycled(false) {}
bool recycled
Definition message.cpp:48

Member Function Documentation

◆ recycle() [1/2]

template<template< class > class con_msg_manager>
bool stub< con_msg_manager >::recycle ( )
inline

Definition at line 49 of file alloc.cpp.

49 {
50 con_msg_man_ptr shared = m_manager.lock();
51
52 if (shared) {
53 return shared->recycle(this);
54 } else {
55 return false;
56 }
57 }
con_msg_man_type::ptr con_msg_man_ptr
Definition alloc.cpp:41

◆ recycle() [2/2]

template<template< class > class con_msg_manager>
bool stub< con_msg_manager >::recycle ( message * )
inline

Definition at line 43 of file message.cpp.

43 {
44 this->recycled = true;
45 return false;
46 }

Member Data Documentation

◆ m_manager

template<template< class > class con_msg_manager>
con_msg_man_weak_ptr stub< con_msg_manager >::m_manager

Definition at line 60 of file alloc.cpp.

◆ m_opcode

template<template< class > class con_msg_manager>
websocketpp::frame::opcode::value stub< con_msg_manager >::m_opcode

Definition at line 59 of file alloc.cpp.

◆ m_size

template<template< class > class con_msg_manager>
size_t stub< con_msg_manager >::m_size

Definition at line 61 of file alloc.cpp.

◆ recycled

template<template< class > class con_msg_manager>
bool stub< con_msg_manager >::recycled

Definition at line 48 of file message.cpp.


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