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

#include <evaluator_impl.h>

Inheritance diagram for EE_StmtList:
Collaboration diagram for EE_StmtList:

Public Member Functions

 EE_StmtList (ExpressionElement *pEE1, ExpressionElement *pEE2)
 
 ~EE_StmtList (void)
 
TypedValue Eval (void) const
 
std::ostream & Output (std::ostream &out) const
 
- Public Member Functions inherited from ExpressionElement
virtual ~ExpressionElement (void)
 

Private Attributes

ExpressionElementm_pEE1
 
ExpressionElementm_pEE2
 

Additional Inherited Members

- Public Types inherited from ExpressionElement
enum  EEFlags { EE_NONE = 0x0U, EE_CONSTIFY = 0x1U, EE_OPTIMIZE = EE_CONSTIFY }
 
- Static Public Member Functions inherited from ExpressionElement
static unsigned GetFlags (void)
 
static void SetFlag (EEFlags f)
 
static void ClearFlag (EEFlags f)
 
static bool IsFlag (EEFlags f)
 
- Static Protected Attributes inherited from ExpressionElement
static unsigned m_uEEFlags
 

Detailed Description

Definition at line 618 of file evaluator_impl.h.

Constructor & Destructor Documentation

EE_StmtList::EE_StmtList ( ExpressionElement pEE1,
ExpressionElement pEE2 
)
inline

Definition at line 623 of file evaluator_impl.h.

623 : m_pEE1(pEE1), m_pEE2(pEE2) {};
ExpressionElement * m_pEE1
ExpressionElement * m_pEE2
EE_StmtList::~EE_StmtList ( void  )
inline

Definition at line 624 of file evaluator_impl.h.

References m_pEE1, and m_pEE2.

624 { delete m_pEE1; delete m_pEE2; };
ExpressionElement * m_pEE1
ExpressionElement * m_pEE2

Member Function Documentation

TypedValue EE_StmtList::Eval ( void  ) const
inlinevirtual

Implements ExpressionElement.

Definition at line 627 of file evaluator_impl.h.

References ASSERT, ExpressionElement::Eval(), m_pEE1, and m_pEE2.

628  {
629  // FIXME: the first expression must exist
630  ASSERT(m_pEE1 != 0);
631 
632  if (m_pEE1 != 0) {
633  m_pEE1->Eval();
634  }
635 
636  return m_pEE2->Eval();
637  };
virtual TypedValue Eval(void) const =0
ExpressionElement * m_pEE1
ExpressionElement * m_pEE2
#define ASSERT(expression)
Definition: colamd.c:977

Here is the call graph for this function:

std::ostream& EE_StmtList::Output ( std::ostream &  out) const
inlinevirtual

Implements ExpressionElement.

Definition at line 640 of file evaluator_impl.h.

References m_pEE1, m_pEE2, and ExpressionElement::Output().

641  {
642  return out << "(", m_pEE1->Output(out) << " ; ", m_pEE2->Output(out) << ")";
643  };
ExpressionElement * m_pEE1
virtual std::ostream & Output(std::ostream &out) const =0
ExpressionElement * m_pEE2

Here is the call graph for this function:

Member Data Documentation

ExpressionElement* EE_StmtList::m_pEE1
private

Definition at line 620 of file evaluator_impl.h.

Referenced by Eval(), Output(), and ~EE_StmtList().

ExpressionElement * EE_StmtList::m_pEE2
private

Definition at line 620 of file evaluator_impl.h.

Referenced by Eval(), Output(), and ~EE_StmtList().


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