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::ParserX Class Reference

#include <otbParserX.h>

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

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef mup::IValue IValueType
 
typedef ParserX ParserXType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ParserX Self
 
typedef itk::LightObject Superclass
 
typedef mup::Value 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 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)
 
- 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

 ParserX ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~ParserX () 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
< ParserXImpl > 
ParserXImplPtr
 

Private Member Functions

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

Private Attributes

ParserXImplPtr m_InternalParserX
 

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
BandMathImageFilter

Definition at line 59 of file otbParserX.h.

Member Typedef Documentation

Definition at line 66 of file otbParserX.h.

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

Definition at line 77 of file otbParserX.h.

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

Definition at line 119 of file otbParserX.h.

Convenient type definitions

Definition at line 72 of file otbParserX.h.

Definition at line 65 of file otbParserX.h.

Standard class typedefs.

Definition at line 63 of file otbParserX.h.

Definition at line 64 of file otbParserX.h.

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

Definition at line 76 of file otbParserX.h.

Constructor & Destructor Documentation

otb::ParserX::ParserX ( )
protected
otb::ParserX::~ParserX ( )
overrideprotected
otb::ParserX::ParserX ( const Self )
privatedelete

Member Function Documentation

bool otb::ParserX::CheckExpr ( )

Check Expression

void otb::ParserX::ClearVar ( )

Define a constant Clear all the defined variables

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

Reimplemented from itk::LightObject.

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

Define a variable

ValueType otb::ParserX::Eval ( )

Trigger the parsing

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

Trigger the parsing but return a const ref

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

Return the expression to be parsed

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

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

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

Run-time type information (and related methods)

Reimplemented from itk::LightObject.

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

Return the list of variables

static Pointer otb::ParserX::New ( )
static

New macro for creation of through a Smart Pointer

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

Reimplemented from itk::LightObject.

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

Set the expression to be parsed

Member Data Documentation

ParserXImplPtr otb::ParserX::m_InternalParserX
private

Definition at line 120 of file otbParserX.h.


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