OTB  7.0.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::Parser Class Reference

#include <otbParser.h>

+ Inheritance diagram for otb::Parser:
+ Collaboration diagram for otb::Parser:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::map< std::string, int > FunctionMapType
 
typedef Parser ParserType
 
typedef itk::SmartPointer< SelfPointer
 
typedef Parser Self
 
typedef itk::LightObject Superclass
 
typedef double 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 std::string & GetExpr () const
 
FunctionMapType GetFunList () const
 
virtual const char * GetNameOfClass () const
 
const std::map< std::string, Parser::ValueType * > & GetVar () const
 
virtual void SetExpr (const std::string &Expression)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

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

Private Types

typedef itk::SmartPointer< ParserImpl > ParserImplPtr
 

Private Member Functions

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

Private Attributes

ParserImplPtr m_InternalParser
 

Detailed Description

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

See also
BandMathImageFilter

Definition at line 44 of file otbParser.h.

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 51 of file otbParser.h.

◆ FunctionMapType

typedef std::map<std::string, int> otb::Parser::FunctionMapType

Type for function/number of arguments map

Definition at line 64 of file otbParser.h.

◆ ParserImplPtr

typedef itk::SmartPointer<ParserImpl> otb::Parser::ParserImplPtr
private

Definition at line 100 of file otbParser.h.

◆ ParserType

Convenient type definitions

Definition at line 57 of file otbParser.h.

◆ Pointer

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

Definition at line 50 of file otbParser.h.

◆ Self

Standard class typedefs.

Definition at line 48 of file otbParser.h.

◆ Superclass

typedef itk::LightObject otb::Parser::Superclass

Definition at line 49 of file otbParser.h.

◆ ValueType

typedef double otb::Parser::ValueType

Definition at line 61 of file otbParser.h.

Constructor & Destructor Documentation

◆ Parser() [1/2]

otb::Parser::Parser ( )
protected

◆ ~Parser()

otb::Parser::~Parser ( )
overrideprotected

◆ Parser() [2/2]

otb::Parser::Parser ( const Self )
privatedelete

Member Function Documentation

◆ CheckExpr()

bool otb::Parser::CheckExpr ( )

Check Expression

◆ ClearVar()

void otb::Parser::ClearVar ( )

Clear all the defined variables

◆ CreateAnother()

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

◆ DefineVar()

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

Define a variable

◆ Eval()

ValueType otb::Parser::Eval ( )

Trigger the parsing

◆ GetExpr()

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

Return the expression to be parsed

◆ GetFunList()

FunctionMapType otb::Parser::GetFunList ( ) const

Return a map of function names and associated number of arguments

◆ GetNameOfClass()

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

Run-time type information (and related methods)

◆ GetVar()

const std::map<std::string, Parser::ValueType*>& otb::Parser::GetVar ( ) const

Return the list of variables

◆ New()

static Pointer otb::Parser::New ( )
static

New macro for creation of through a Smart Pointer

◆ operator=()

void otb::Parser::operator= ( const Self )
privatedelete

◆ PrintSelf()

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

◆ SetExpr()

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

Set the expression to be parsed

Member Data Documentation

◆ m_InternalParser

ParserImplPtr otb::Parser::m_InternalParser
private

Definition at line 101 of file otbParser.h.


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