TwiceAsNice
2019-02-18
|
Capacity controller of the space optimized circular buffer. More...
#include <details.hpp>
Public Member Functions | |
capacity_control (Size capacity, Size min_capacity=0) | |
Constructor. More... | |
Size | capacity () const |
Get the capacity of the space optimized circular buffer. More... | |
Size | min_capacity () const |
Get the minimal capacity of the space optimized circular buffer. More... | |
operator Size () const | |
Size operator - returns the capacity of the space optimized circular buffer. More... | |
Private Attributes | |
Size | m_capacity |
The capacity of the space optimized circular buffer. More... | |
Size | m_min_capacity |
The lowest guaranteed capacity of the adapted circular buffer. More... | |
Capacity controller of the space optimized circular buffer.
|
inline |
Constructor.
|
inline |
Get the capacity of the space optimized circular buffer.
|
inline |
Get the minimal capacity of the space optimized circular buffer.
|
inline |
Size operator - returns the capacity of the space optimized circular buffer.
|
private |
The capacity of the space optimized circular buffer.
|
private |
The lowest guaranteed capacity of the adapted circular buffer.