OTB  7.2.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
otb::ParserX Class Reference

#include <otbParserX.h>

+ Inheritance diagram for otb::ParserX:
+ Collaboration diagram for otb::ParserX:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
typedef mup::IValue IValueType
typedef ParserX ParserXType
typedef itk::SmartPointer< SelfPointer
typedef ParserX Self
typedef itk::LightObject Superclass
typedef mup::Value ValueType

Public Member Functions

bool CheckExpr ()
void ClearVar ()
virtual ::itk::LightObject::Pointer CreateAnother (void) const
void DefineVar (const std::string &sName, ValueType *fVar)
ValueType Eval ()
const IValueTypeEvalRef ()
const std::string & GetExpr () const
const mup::var_maptype & GetExprVar () const
virtual const char * GetNameOfClass () const
const mup::var_maptype & GetVar () const
virtual void SetExpr (const std::string &Expression)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 ParserX ()
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 ~ParserX () override

Private Types

typedef itk::SmartPointer< ParserXImpl > ParserXImplPtr

Private Member Functions

void operator= (const Self &)=delete
 ParserX (const Self &)=delete

Private Attributes

ParserXImplPtr m_InternalParserX

Detailed Description

Definition of the standard floating point parser. Standard implementation of the mathematical expressions parser.

See also

Definition at line 62 of file otbParserX.h.

Member Typedef Documentation

◆ ConstPointer

typedef itk::SmartPointer<const Self> otb::ParserX::ConstPointer

Definition at line 69 of file otbParserX.h.

◆ IValueType

typedef mup::IValue otb::ParserX::IValueType

Definition at line 80 of file otbParserX.h.

◆ ParserXImplPtr

typedef itk::SmartPointer<ParserXImpl> otb::ParserX::ParserXImplPtr

Definition at line 122 of file otbParserX.h.

◆ ParserXType

Convenient type definitions

Definition at line 75 of file otbParserX.h.

◆ Pointer

typedef itk::SmartPointer<Self> otb::ParserX::Pointer

Definition at line 68 of file otbParserX.h.

◆ Self

Standard class typedefs.

Definition at line 66 of file otbParserX.h.

◆ Superclass

typedef itk::LightObject otb::ParserX::Superclass

Definition at line 67 of file otbParserX.h.

◆ ValueType

typedef mup::Value otb::ParserX::ValueType

Definition at line 79 of file otbParserX.h.

Constructor & Destructor Documentation

◆ ParserX() [1/2]

otb::ParserX::ParserX ( )

◆ ~ParserX()

otb::ParserX::~ParserX ( )

◆ ParserX() [2/2]

otb::ParserX::ParserX ( const Self )

Member Function Documentation

◆ CheckExpr()

bool otb::ParserX::CheckExpr ( )

Check Expression

◆ ClearVar()

void otb::ParserX::ClearVar ( )

Define a constant Clear all the defined variables

◆ CreateAnother()

virtual::itk::LightObject::Pointer otb::ParserX::CreateAnother ( void  ) const

◆ DefineVar()

void otb::ParserX::DefineVar ( const std::string &  sName,
ValueType fVar 

Define a variable

◆ Eval()

ValueType otb::ParserX::Eval ( )

Trigger the parsing

◆ EvalRef()

const IValueType& otb::ParserX::EvalRef ( )

Trigger the parsing but return a const ref

◆ GetExpr()

const std::string& otb::ParserX::GetExpr ( ) const

Return the expression to be parsed

◆ GetExprVar()

const mup::var_maptype& otb::ParserX::GetExprVar ( ) const

Return the list of expression variables (only make sense after having set up an expression)

◆ GetNameOfClass()

virtual const char* otb::ParserX::GetNameOfClass ( ) const

Run-time type information (and related methods)

◆ GetVar()

const mup::var_maptype& otb::ParserX::GetVar ( ) const

Return the list of variables

◆ New()

static Pointer otb::ParserX::New ( )

New macro for creation of through a Smart Pointer

◆ operator=()

void otb::ParserX::operator= ( const Self )

◆ PrintSelf()

void otb::ParserX::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const

◆ SetExpr()

virtual void otb::ParserX::SetExpr ( const std::string &  Expression)

Set the expression to be parsed

Member Data Documentation

◆ m_InternalParserX

ParserXImplPtr otb::ParserX::m_InternalParserX

Definition at line 123 of file otbParserX.h.

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