|
FuncSketch
|
Class of pointers to expressions with RAII. More...
#include <func_sketch/expressions/expression_ptr.h>
Classes | |
| class | Deleter |
| Deleter for ExpressionPtr. More... | |
Public Member Functions | |
| ExpressionPtr (Expression *expression, std::unique_ptr< ExpressionMemoryPool > memory_pool) noexcept | |
| Constructor. | |
| ExpressionPtr () noexcept=default | |
| Constructor. | |
| void | reset () noexcept |
| Clear the pointer. | |
| Expression * | get () const noexcept |
| Get the pointed expression. | |
| Expression & | operator* () const noexcept |
| Access the pointed expression. | |
| Expression * | operator-> () const noexcept |
| Access the member of the pointed expression. | |
Private Attributes | |
| std::unique_ptr< Expression, Deleter > | expression_ |
| Pointer. | |
Class of pointers to expressions with RAII.
Definition at line 35 of file expression_ptr.h.
|
inlinenoexcept |
Constructor.
| [in] | expression | Expression. |
| [in] | memory_pool | Memory pool used to create the expression. |
Definition at line 46 of file expression_ptr.h.
|
inlinenoexcept |
Clear the pointer.
Definition at line 58 of file expression_ptr.h.
|
inlinenodiscardnoexcept |
Get the pointed expression.
Definition at line 67 of file expression_ptr.h.
|
inlinenodiscardnoexcept |
Access the pointed expression.
Definition at line 74 of file expression_ptr.h.
|
inlinenodiscardnoexcept |
Access the member of the pointed expression.
Definition at line 83 of file expression_ptr.h.
|
private |
Pointer.
Definition at line 122 of file expression_ptr.h.