OTB  6.7.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 Self
typedef std::map< std::string,
int > 
typedef Parser ParserType
typedef itk::SmartPointer< SelfPointer
typedef Parser Self
typedef itk::LightObject Superclass
typedef double ValueType
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
typedef SmartPointer< SelfPointer
typedef LightObject Self

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)
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
virtual int GetReferenceCount () const
 itkCloneMacro (Self)
void Print (std::ostream &os, Indent indent=0) const
virtual void Register () const
virtual void SetReferenceCount (int)
virtual void UnRegister () const noexcept

Static Public Member Functions

static Pointer New ()
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
static Pointer New ()

Protected Member Functions

 Parser ()
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 ~Parser () override
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 LightObject ()
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const
virtual ~LightObject ()

Private Types

typedef itk::SmartPointer
< ParserImpl > 

Private Member Functions

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

Private Attributes

ParserImplPtr m_InternalParser

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount

Detailed Description

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

See Also

Definition at line 44 of file otbParser.h.

Member Typedef Documentation

Definition at line 51 of file otbParser.h.

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

Type for function/number of arguments map

Definition at line 64 of file otbParser.h.

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

Definition at line 100 of file otbParser.h.

Convenient type definitions

Definition at line 57 of file otbParser.h.

Definition at line 50 of file otbParser.h.

Standard class typedefs.

Definition at line 48 of file otbParser.h.

Definition at line 49 of file otbParser.h.

typedef double otb::Parser::ValueType

Definition at line 61 of file otbParser.h.

Constructor & Destructor Documentation

otb::Parser::Parser ( )
otb::Parser::~Parser ( )
otb::Parser::Parser ( const Self )

Member Function Documentation

bool otb::Parser::CheckExpr ( )

Check Expression

void otb::Parser::ClearVar ( )

Clear all the defined variables

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

Reimplemented from itk::LightObject.

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

Define a variable

ValueType otb::Parser::Eval ( )

Trigger the parsing

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

Return the expression to be parsed

FunctionMapType otb::Parser::GetFunList ( ) const

Return a map of function names and associated number of arguments

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

Run-time type information (and related methods)

Reimplemented from itk::LightObject.

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

Return the list of variables

static Pointer otb::Parser::New ( )

New macro for creation of through a Smart Pointer

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

Reimplemented from itk::LightObject.

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

Set the expression to be parsed

Member Data Documentation

ParserImplPtr otb::Parser::m_InternalParser

Definition at line 101 of file otbParser.h.

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