FuncSketch
Loading...
Searching...
No Matches
func_sketch::expressions::ExpressionPtr::Deleter Class Reference

Deleter for ExpressionPtr. More...

Collaboration diagram for func_sketch::expressions::ExpressionPtr::Deleter:

Public Member Functions

 Deleter (std::unique_ptr< ExpressionMemoryPool > memory_pool) noexcept
 Constructor.
 Deleter () noexcept=default
 Constructor.
void operator() (Expression *expression) const noexcept
 Delete the pointed expression.

Private Attributes

std::unique_ptr< ExpressionMemoryPoolmemory_pool_
 Memory pool.

Detailed Description

Deleter for ExpressionPtr.

Definition at line 89 of file expression_ptr.h.

Constructor & Destructor Documentation

◆ Deleter()

func_sketch::expressions::ExpressionPtr::Deleter::Deleter ( std::unique_ptr< ExpressionMemoryPool > memory_pool)
inlineexplicitnoexcept

Constructor.

Parameters
[in]memory_poolMemory pool.

Definition at line 96 of file expression_ptr.h.

Member Function Documentation

◆ operator()()

void func_sketch::expressions::ExpressionPtr::Deleter::operator() ( Expression * expression) const
inlinenoexcept

Delete the pointed expression.

Parameters
[in]expressionExpression to delete.

Definition at line 110 of file expression_ptr.h.

Member Data Documentation

◆ memory_pool_

std::unique_ptr<ExpressionMemoryPool> func_sketch::expressions::ExpressionPtr::Deleter::memory_pool_
private

Memory pool.

Definition at line 118 of file expression_ptr.h.


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