|
RESTinio
|
Helper storage for responses' contexts. More...
#include <response_coordinator.hpp>
Public Member Functions | |
| response_context_table_t (std::size_t max_elements_count) | |
| bool | empty () const noexcept |
| If table is empty. | |
| bool | is_full () const noexcept |
| If table is full. | |
| response_context_t & | front () noexcept |
| Get first context. | |
| response_context_t & | back () noexcept |
| Get last context. | |
| response_context_t * | get_by_req_id (request_id_t req_id) noexcept |
| Get context of specified request. | |
| void | push_response_context (request_id_t req_id) |
| Insert new context into queue. | |
| void | pop_response_context () |
| Remove the first context from queue. | |
| void | pop_response_context_nonchecked () noexcept |
| Remove the first context from queue with the check for emptiness of the queue. | |
Private Member Functions | |
| std::size_t | get_real_index (request_id_t req_id) noexcept |
Private Attributes | |
| std::vector< response_context_t > | m_contexts |
| std::size_t | m_first_element_index {0} |
| std::size_t | m_elements_exists {0} |
Helper storage for responses' contexts.
Definition at line 158 of file response_coordinator.hpp.
|
inline |
Definition at line 161 of file response_coordinator.hpp.
|
inlinenoexcept |
Get last context.
Definition at line 189 of file response_coordinator.hpp.
|
inlinenoexcept |
If table is empty.
Definition at line 168 of file response_coordinator.hpp.
|
inlinenoexcept |
Get first context.
Definition at line 182 of file response_coordinator.hpp.
|
inlinenoexcept |
Get context of specified request.
Definition at line 198 of file response_coordinator.hpp.
|
inlineprivatenoexcept |
Definition at line 266 of file response_coordinator.hpp.
|
inlinenoexcept |
If table is full.
Definition at line 175 of file response_coordinator.hpp.
|
inline |
Remove the first context from queue.
Definition at line 233 of file response_coordinator.hpp.
|
inlinenoexcept |
Remove the first context from queue with the check for emptiness of the queue.
Definition at line 254 of file response_coordinator.hpp.
|
inline |
Insert new context into queue.
Definition at line 212 of file response_coordinator.hpp.
|
private |
Definition at line 274 of file response_coordinator.hpp.
|
private |
Definition at line 276 of file response_coordinator.hpp.
|
private |
Definition at line 275 of file response_coordinator.hpp.