Helios++
Helios software for LiDAR simulations
IExprTreeNodeStringFactory< InputType, OutputType > Class Template Referenceabstract

Interface defining the functions that must be provided by any concrete implementation of a factory that builds expression trees from a given string. More...

#include <IExprTreeNodeStringFactory.h>

Public Member Functions

virtual IExprTreeNode< InputType, OutputType > * make (std::string const &expr)=0
 Make an expression tree from given expression as string. More...
 
std::shared_ptr< IExprTreeNode< InputType, OutputType > > makeShared (std::string const &expr)
 Like IExprTreeNodeStringFactory::make but returning a shared pointer instead of a raw pointer. More...
 

Detailed Description

template<typename InputType, typename OutputType>
class IExprTreeNodeStringFactory< InputType, OutputType >

Interface defining the functions that must be provided by any concrete implementation of a factory that builds expression trees from a given string.

Author
Alberto M. Esmoris Pena
Version
1.0
Template Parameters
InputTypeThe input type for built expression trees
OutputTpyeThe output type for built expression trees
See also
IExprTreeNode

Member Function Documentation

◆ make()

template<typename InputType , typename OutputType >
virtual IExprTreeNode<InputType, OutputType>* IExprTreeNodeStringFactory< InputType, OutputType >::make ( std::string const &  expr)
pure virtual

Make an expression tree from given expression as string.

Parameters
exprThe expression given as a string
Returns
Built expression tree

Implemented in UnivarExprTreeStringFactory< NumericType >.

◆ makeShared()

template<typename InputType , typename OutputType >
std::shared_ptr<IExprTreeNode<InputType, OutputType> > IExprTreeNodeStringFactory< InputType, OutputType >::makeShared ( std::string const &  expr)
inline

Like IExprTreeNodeStringFactory::make but returning a shared pointer instead of a raw pointer.

See also
IExprTreeNodeStringFactory::make

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