OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::MessageWindow< M, id_t > Class Template Reference

#include <msgwin.hpp>

Public Member Functions

 OPENVPN_SIMPLE_EXCEPTION (message_window_ref_by_id)
 
 OPENVPN_SIMPLE_EXCEPTION (message_window_rm_head)
 
 MessageWindow ()
 
 MessageWindow (const id_t starting_head_id, const id_t span)
 
void init (const id_t starting_head_id, const id_t span)
 
bool in_window (const id_t id) const
 
bool pre_window (const id_t id) const
 
M & ref_by_id (const id_t id)
 
void rm_by_id (const id_t id)
 
bool head_defined () const
 
id_t head_id () const
 
id_t tail_id () const
 
id_t span () const
 
M & ref_head ()
 
void rm_head ()
 
void rm_head_nocheck ()
 

Private Member Functions

void grow (const id_t id)
 
void purge ()
 

Private Attributes

id_t head_id_
 
id_t span_
 
std::deque< M > q_
 

Detailed Description

template<typename M, typename id_t>
class openvpn::MessageWindow< M, id_t >

Definition at line 30 of file msgwin.hpp.

Constructor & Destructor Documentation

◆ MessageWindow() [1/2]

template<typename M , typename id_t >
openvpn::MessageWindow< M, id_t >::MessageWindow ( )
inline

Definition at line 36 of file msgwin.hpp.

◆ MessageWindow() [2/2]

template<typename M , typename id_t >
openvpn::MessageWindow< M, id_t >::MessageWindow ( const id_t  starting_head_id,
const id_t  span 
)
inline

Definition at line 41 of file msgwin.hpp.

Member Function Documentation

◆ grow()

template<typename M , typename id_t >
void openvpn::MessageWindow< M, id_t >::grow ( const id_t  id)
inlineprivate

Definition at line 146 of file msgwin.hpp.

Here is the caller graph for this function:

◆ head_defined()

template<typename M , typename id_t >
bool openvpn::MessageWindow< M, id_t >::head_defined ( ) const
inline

Definition at line 94 of file msgwin.hpp.

Here is the caller graph for this function:

◆ head_id()

template<typename M , typename id_t >
id_t openvpn::MessageWindow< M, id_t >::head_id ( ) const
inline

Definition at line 101 of file msgwin.hpp.

◆ in_window()

template<typename M , typename id_t >
bool openvpn::MessageWindow< M, id_t >::in_window ( const id_t  id) const
inline

Definition at line 54 of file msgwin.hpp.

Here is the caller graph for this function:

◆ init()

template<typename M , typename id_t >
void openvpn::MessageWindow< M, id_t >::init ( const id_t  starting_head_id,
const id_t  span 
)
inline

Definition at line 46 of file msgwin.hpp.

◆ OPENVPN_SIMPLE_EXCEPTION() [1/2]

template<typename M , typename id_t >
openvpn::MessageWindow< M, id_t >::OPENVPN_SIMPLE_EXCEPTION ( message_window_ref_by_id  )

◆ OPENVPN_SIMPLE_EXCEPTION() [2/2]

template<typename M , typename id_t >
openvpn::MessageWindow< M, id_t >::OPENVPN_SIMPLE_EXCEPTION ( message_window_rm_head  )

◆ pre_window()

template<typename M , typename id_t >
bool openvpn::MessageWindow< M, id_t >::pre_window ( const id_t  id) const
inline

Definition at line 60 of file msgwin.hpp.

◆ purge()

template<typename M , typename id_t >
void openvpn::MessageWindow< M, id_t >::purge ( )
inlineprivate

Definition at line 155 of file msgwin.hpp.

Here is the caller graph for this function:

◆ ref_by_id()

template<typename M , typename id_t >
M & openvpn::MessageWindow< M, id_t >::ref_by_id ( const id_t  id)
inline

Definition at line 67 of file msgwin.hpp.

◆ ref_head()

template<typename M , typename id_t >
M & openvpn::MessageWindow< M, id_t >::ref_head ( )
inline

Definition at line 119 of file msgwin.hpp.

◆ rm_by_id()

template<typename M , typename id_t >
void openvpn::MessageWindow< M, id_t >::rm_by_id ( const id_t  id)
inline

Definition at line 82 of file msgwin.hpp.

◆ rm_head()

template<typename M , typename id_t >
void openvpn::MessageWindow< M, id_t >::rm_head ( )
inline

Definition at line 125 of file msgwin.hpp.

◆ rm_head_nocheck()

template<typename M , typename id_t >
void openvpn::MessageWindow< M, id_t >::rm_head_nocheck ( )
inline

Definition at line 136 of file msgwin.hpp.

Here is the caller graph for this function:

◆ span()

template<typename M , typename id_t >
id_t openvpn::MessageWindow< M, id_t >::span ( ) const
inline

Definition at line 113 of file msgwin.hpp.

Here is the caller graph for this function:

◆ tail_id()

template<typename M , typename id_t >
id_t openvpn::MessageWindow< M, id_t >::tail_id ( ) const
inline

Definition at line 107 of file msgwin.hpp.

Member Data Documentation

◆ head_id_

template<typename M , typename id_t >
id_t openvpn::MessageWindow< M, id_t >::head_id_
private

Definition at line 164 of file msgwin.hpp.

◆ q_

template<typename M , typename id_t >
std::deque<M> openvpn::MessageWindow< M, id_t >::q_
private

Definition at line 166 of file msgwin.hpp.

◆ span_

template<typename M , typename id_t >
id_t openvpn::MessageWindow< M, id_t >::span_
private

Definition at line 165 of file msgwin.hpp.


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