FuncSketch
Loading...
Searching...
No Matches
func_sketch::parser::ExpressionParser Class Reference

Class of parser for expressions. More...

#include <func_sketch/parser/expression_parser.h>

Collaboration diagram for func_sketch::parser::ExpressionParser:

Classes

struct  Impl
 Internal data of ExpressionParser class. More...

Public Member Functions

 ExpressionParser ()
 Constructor.
 ExpressionParser (const ExpressionParser &)=delete
ExpressionParseroperator= (const ExpressionParser &)=delete
 ExpressionParser (ExpressionParser &&) noexcept
 Move constructor.
ExpressionParseroperator= (ExpressionParser &&) noexcept
 Move assignment operator.
 ~ExpressionParser ()
 Destructor.
expressions::ExpressionPtr operator() (const std::string &expression_str) const
 Parse an expression.

Private Attributes

std::unique_ptr< Implpimpl_
 Internal data.

Detailed Description

Class of parser for expressions.

Definition at line 32 of file expression_parser.h.

Constructor & Destructor Documentation

◆ ExpressionParser()

func_sketch::parser::ExpressionParser::ExpressionParser ( )

Constructor.

Definition at line 46 of file expression_parser.cpp.

Member Function Documentation

◆ operator=()

ExpressionParser & func_sketch::parser::ExpressionParser::operator= ( ExpressionParser && )
defaultnoexcept

Move assignment operator.

Returns
This object.

◆ operator()()

expressions::ExpressionPtr func_sketch::parser::ExpressionParser::operator() ( const std::string & expression_str) const
nodiscard

Parse an expression.

Parameters
[in]expression_strString to parse.
Returns
Parsed expression.

Definition at line 56 of file expression_parser.cpp.

Member Data Documentation

◆ pimpl_

std::unique_ptr<Impl> func_sketch::parser::ExpressionParser::pimpl_
private

Internal data.

Definition at line 76 of file expression_parser.h.


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