MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ExpressionElement Class Referenceabstract

#include <evaluator.h>

Inheritance diagram for ExpressionElement:
Collaboration diagram for ExpressionElement:

Public Types

enum  EEFlags { EE_NONE = 0x0U, EE_CONSTIFY = 0x1U, EE_OPTIMIZE = EE_CONSTIFY }
 

Public Member Functions

virtual ~ExpressionElement (void)
 
virtual TypedValue Eval (void) const =0
 
virtual std::ostream & Output (std::ostream &out) const =0
 

Static Public Member Functions

static unsigned GetFlags (void)
 
static void SetFlag (EEFlags f)
 
static void ClearFlag (EEFlags f)
 
static bool IsFlag (EEFlags f)
 

Static Protected Attributes

static unsigned m_uEEFlags
 

Detailed Description

Definition at line 42 of file evaluator.h.

Member Enumeration Documentation

Enumerator
EE_NONE 
EE_CONSTIFY 
EE_OPTIMIZE 

Definition at line 44 of file evaluator.h.

44  {
45  EE_NONE = 0x0U,
46 
47  EE_CONSTIFY = 0x1U,
48 
49  EE_OPTIMIZE = EE_CONSTIFY
50  };

Constructor & Destructor Documentation

virtual ExpressionElement::~ExpressionElement ( void  )
inlinevirtual

Definition at line 56 of file evaluator.h.

56 {};

Member Function Documentation

static void ExpressionElement::ClearFlag ( EEFlags  f)
inlinestatic

Definition at line 65 of file evaluator.h.

References m_uEEFlags.

65 { m_uEEFlags &= !unsigned(f); };
static unsigned m_uEEFlags
Definition: evaluator.h:53
static unsigned ExpressionElement::GetFlags ( void  )
inlinestatic

Definition at line 63 of file evaluator.h.

References m_uEEFlags.

63 { return m_uEEFlags; };
static unsigned m_uEEFlags
Definition: evaluator.h:53
static bool ExpressionElement::IsFlag ( EEFlags  f)
inlinestatic

Definition at line 66 of file evaluator.h.

References m_uEEFlags.

Referenced by EECreate().

66 { return m_uEEFlags & unsigned(f); };
static unsigned m_uEEFlags
Definition: evaluator.h:53
static void ExpressionElement::SetFlag ( EEFlags  f)
inlinestatic

Definition at line 64 of file evaluator.h.

References m_uEEFlags.

64 { m_uEEFlags |= unsigned(f); };
static unsigned m_uEEFlags
Definition: evaluator.h:53

Member Data Documentation

unsigned ExpressionElement::m_uEEFlags
staticprotected

Definition at line 53 of file evaluator.h.

Referenced by ClearFlag(), GetFlags(), IsFlag(), and SetFlag().


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