Lightweight 0.20260303.0
Loading...
Searching...
No Matches
Lightweight::Pool< Config >::PooledDataMapper Class Reference

#include <Pool.hpp>

Public Member Functions

 PooledDataMapper (PooledDataMapper const &)=delete
 
 PooledDataMapper (PooledDataMapper &&other) noexcept
 
PooledDataMapperoperator= (PooledDataMapper const &)=delete
 
PooledDataMapperoperator= (PooledDataMapper &&)=delete
 
DataMapperoperator-> () const noexcept
 Access the underlying data mapper via pointer semantics.
 
DataMapperGet () const noexcept
 

Detailed Description

template<PoolConfig Config>
class Lightweight::Pool< Config >::PooledDataMapper

A wrapper around a DataMapper that returns it to the pool when destroyed can be created only from the Pool and is move-only to ensure it is always returned to the pool when it goes out of scope

Definition at line 59 of file Pool.hpp.

Constructor & Destructor Documentation

◆ PooledDataMapper()

template<PoolConfig Config>
Lightweight::Pool< Config >::PooledDataMapper::PooledDataMapper ( PooledDataMapper &&  other)
inlinenoexcept

Move constructor for the pooled data mapper, the only public constructor, allows moving the pooled data mapper but not copying it

Definition at line 76 of file Pool.hpp.

◆ ~PooledDataMapper()

template<PoolConfig Config>
Lightweight::Pool< Config >::PooledDataMapper::~PooledDataMapper ( )
inlinenoexcept

Definition at line 83 of file Pool.hpp.

Member Function Documentation

◆ operator->()

template<PoolConfig Config>
DataMapper * Lightweight::Pool< Config >::PooledDataMapper::operator-> ( ) const
inlinenoexcept

Access the underlying data mapper via pointer semantics.

Definition at line 90 of file Pool.hpp.

◆ Get()

template<PoolConfig Config>
DataMapper & Lightweight::Pool< Config >::PooledDataMapper::Get ( ) const
inlinenoexcept

Access the underlying data mapper via reference semantics This is useful for passing the pooled data mapper to functions that expect a DataMapper reference

Definition at line 98 of file Pool.hpp.


The documentation for this class was generated from the following file: