The custom deleter which allows discarded tiles to be returned to the pool.
More...
|
| | TilePtrDeleter () noexcept=default |
| | Default constructor.
|
| |
| | TilePtrDeleter (std::weak_ptr< TilePool > &&pool) noexcept |
| | Constructor used by the pool.
|
| |
| void | operator() (std::vector< float > *raw_tile) const noexcept |
| | Operator which performs the deletion.
|
| |
The custom deleter which allows discarded tiles to be returned to the pool.
◆ TilePtrDeleter() [1/2]
| carta::TilePool::TilePtrDeleter::TilePtrDeleter |
( |
| ) |
|
|
defaultnoexcept |
◆ TilePtrDeleter() [2/2]
| carta::TilePool::TilePtrDeleter::TilePtrDeleter |
( |
std::weak_ptr< TilePool > && |
pool | ) |
|
|
inlineexplicitnoexcept |
Constructor used by the pool.
- Parameters
-
| pool | a reference to the pool |
◆ operator()()
| void TilePool::TilePtrDeleter::operator() |
( |
std::vector< float > * |
raw_tile | ) |
const |
|
noexcept |
Operator which performs the deletion.
If the pool has reached capacity or been deleted, the object is deleted. Otherwise it is returned to the pool.
◆ _pool
| std::weak_ptr<TilePool> carta::TilePool::TilePtrDeleter::_pool |
A reference to the pool.
If the pool has been deleted, discarded tiles will also be deleted.
The documentation for this struct was generated from the following files: