CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::TilePool::TilePtrDeleter Struct Reference

The custom deleter which allows discarded tiles to be returned to the pool. More...

Collaboration diagram for carta::TilePool::TilePtrDeleter:
[legend]

Public Member Functions

 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.
 

Public Attributes

std::weak_ptr< TilePool_pool
 A reference to the pool.
 

Detailed Description

The custom deleter which allows discarded tiles to be returned to the pool.

Constructor & Destructor Documentation

◆ TilePtrDeleter() [1/2]

carta::TilePool::TilePtrDeleter::TilePtrDeleter ( )
defaultnoexcept

Default constructor.

◆ TilePtrDeleter() [2/2]

carta::TilePool::TilePtrDeleter::TilePtrDeleter ( std::weak_ptr< TilePool > &&  pool)
inlineexplicitnoexcept

Constructor used by the pool.

Parameters
poola reference to the pool

Member Function Documentation

◆ 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.

Member Data Documentation

◆ _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: