|
PACS System 0.1.0
PACS DICOM system library
|
#include <pdu_buffer_pool.h>

Public Member Functions | |
| auto | acquire_buffer () -> tracked_pdu_pool< pooled_buffer >::unique_ptr_type |
| Acquire a byte buffer from the pool. | |
| auto | acquire_pdv (uint8_t context_id=0, bool is_command=false, bool is_last=true) -> tracked_pdu_pool< presentation_data_value >::unique_ptr_type |
| Acquire a presentation_data_value from the pool. | |
| auto | acquire_p_data_tf () -> tracked_pdu_pool< p_data_tf_pdu >::unique_ptr_type |
| Acquire a p_data_tf_pdu from the pool. | |
| auto | buffer_statistics () const noexcept -> const pdu_pool_statistics & |
| Get buffer pool statistics. | |
| auto | pdv_statistics () const noexcept -> const pdu_pool_statistics & |
| Get PDV pool statistics. | |
| auto | p_data_statistics () const noexcept -> const pdu_pool_statistics & |
| Get P-DATA-TF pool statistics. | |
| void | reserve_buffers (std::size_t count) |
| Reserve capacity in buffer pool. | |
| void | reserve_pdvs (std::size_t count) |
| Reserve capacity in PDV pool. | |
| void | clear_all () |
| Clear all pools. | |
| void | reset_statistics () |
| Reset all statistics. | |
| pdu_buffer_pool (const pdu_buffer_pool &)=delete | |
| pdu_buffer_pool (pdu_buffer_pool &&)=delete | |
| auto | operator= (const pdu_buffer_pool &) -> pdu_buffer_pool &=delete |
| auto | operator= (pdu_buffer_pool &&) -> pdu_buffer_pool &=delete |
Static Public Member Functions | |
| static auto | get () noexcept -> pdu_buffer_pool & |
| Get the global PDU buffer pool instance. | |
Static Public Attributes | |
| static constexpr std::size_t | DEFAULT_BUFFER_POOL_SIZE = 256 |
| Default pool sizes. | |
| static constexpr std::size_t | DEFAULT_PDV_POOL_SIZE = 128 |
| static constexpr std::size_t | DEFAULT_PDATA_POOL_SIZE = 64 |
Private Member Functions | |
| pdu_buffer_pool () | |
| ~pdu_buffer_pool ()=default | |
Private Attributes | |
| tracked_pdu_pool< pooled_buffer > | buffer_pool_ |
| tracked_pdu_pool< presentation_data_value > | pdv_pool_ |
| tracked_pdu_pool< p_data_tf_pdu > | p_data_pool_ |
Definition at line 249 of file pdu_buffer_pool.h.
|
delete |
|
delete |
|
private |
Definition at line 19 of file pdu_buffer_pool.cpp.
|
privatedefault |
| auto kcenon::pacs::network::pdu_buffer_pool::acquire_buffer | ( | ) | -> tracked_pdu_pool<pooled_buffer>::unique_ptr_type |
Acquire a byte buffer from the pool.
Definition at line 29 of file pdu_buffer_pool.cpp.
| auto kcenon::pacs::network::pdu_buffer_pool::acquire_p_data_tf | ( | ) | -> tracked_pdu_pool<p_data_tf_pdu>::unique_ptr_type |
Acquire a p_data_tf_pdu from the pool.
Definition at line 47 of file pdu_buffer_pool.cpp.
| auto kcenon::pacs::network::pdu_buffer_pool::acquire_pdv | ( | uint8_t | context_id = 0, |
| bool | is_command = false, | ||
| bool | is_last = true ) -> tracked_pdu_pool<presentation_data_value>::unique_ptr_type |
Acquire a presentation_data_value from the pool.
| context_id | Presentation Context ID |
| is_command | Whether this is a command message |
| is_last | Whether this is the last fragment |
Definition at line 36 of file pdu_buffer_pool.cpp.
|
nodiscardnoexcept |
Get buffer pool statistics.
Definition at line 54 of file pdu_buffer_pool.cpp.
References buffer_pool_.
| void kcenon::pacs::network::pdu_buffer_pool::clear_all | ( | ) |
Clear all pools.
Definition at line 77 of file pdu_buffer_pool.cpp.
References buffer_pool_, p_data_pool_, and pdv_pool_.
|
staticnoexcept |
Get the global PDU buffer pool instance.
Definition at line 24 of file pdu_buffer_pool.cpp.
Referenced by kcenon::pacs::network::make_pooled_p_data_tf(), kcenon::pacs::network::make_pooled_pdu_buffer(), kcenon::pacs::network::make_pooled_pdu_buffer(), and kcenon::pacs::network::make_pooled_pdv().

|
delete |
|
delete |
|
nodiscardnoexcept |
Get P-DATA-TF pool statistics.
Definition at line 64 of file pdu_buffer_pool.cpp.
References p_data_pool_.
|
nodiscardnoexcept |
Get PDV pool statistics.
Definition at line 59 of file pdu_buffer_pool.cpp.
References pdv_pool_.
| void kcenon::pacs::network::pdu_buffer_pool::reserve_buffers | ( | std::size_t | count | ) |
Reserve capacity in buffer pool.
| count | Number of buffers to pre-allocate |
Definition at line 69 of file pdu_buffer_pool.cpp.
References buffer_pool_.
| void kcenon::pacs::network::pdu_buffer_pool::reserve_pdvs | ( | std::size_t | count | ) |
Reserve capacity in PDV pool.
| count | Number of PDVs to pre-allocate |
Definition at line 73 of file pdu_buffer_pool.cpp.
References pdv_pool_.
| void kcenon::pacs::network::pdu_buffer_pool::reset_statistics | ( | ) |
Reset all statistics.
Definition at line 83 of file pdu_buffer_pool.cpp.
References buffer_pool_, p_data_pool_, pdv_pool_, and kcenon::pacs::network::pdu_pool_statistics::reset().

|
private |
Definition at line 340 of file pdu_buffer_pool.h.
Referenced by buffer_statistics(), clear_all(), reserve_buffers(), and reset_statistics().
|
staticconstexpr |
Default pool sizes.
Definition at line 252 of file pdu_buffer_pool.h.
|
staticconstexpr |
Definition at line 254 of file pdu_buffer_pool.h.
|
staticconstexpr |
Definition at line 253 of file pdu_buffer_pool.h.
|
private |
Definition at line 342 of file pdu_buffer_pool.h.
Referenced by clear_all(), p_data_statistics(), and reset_statistics().
|
private |
Definition at line 341 of file pdu_buffer_pool.h.
Referenced by clear_all(), pdv_statistics(), reserve_pdvs(), and reset_statistics().