MatrixExpressionTree Class Reference

Used to hold the instance in memory. More...

#include <OSExpressionTree.h>

Inheritance diagram for MatrixExpressionTree:
Inheritance graph
[legend]
Collaboration diagram for MatrixExpressionTree:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MatrixExpressionTree ()
 default constructor.
 ~MatrixExpressionTree ()
 default destructor.
bool IsEqual (MatrixExpressionTree *that)
 A function to check for the equality of two objects.
std::vector< ExprNode * > getPrefixFromExpressionTree ()
 Get a vector of pointers to ExprNodes that correspond to a scalar-valued OSExpressionTree in prefix format.
std::vector< ExprNode * > getPostfixFromExpressionTree ()
 Get a vector of pointers to ExprNodes that correspond to a scalar-valued OSExpressionTree in postfix format.

Public Attributes

OSnLMNodem_treeRoot
 m_treeRoot holds the root node (of OSnLMNode type) of the expression tree.

Detailed Description

Used to hold the instance in memory.

Remarks:
This class stores a matrix-valued linear or nonlinear expression in memory as an expression tree.

Definition at line 208 of file OSExpressionTree.h.


Constructor & Destructor Documentation

MatrixExpressionTree::MatrixExpressionTree (  ) 

default constructor.

Definition at line 217 of file OSExpressionTree.cpp.

MatrixExpressionTree::~MatrixExpressionTree (  ) 

default destructor.

Definition at line 227 of file OSExpressionTree.cpp.


Member Function Documentation

bool MatrixExpressionTree::IsEqual ( MatrixExpressionTree that  ) 

A function to check for the equality of two objects.

Reimplemented from OSExpressionTree.

Definition at line 253 of file OSExpressionTree.cpp.

std::vector< ExprNode * > MatrixExpressionTree::getPrefixFromExpressionTree (  ) 

Get a vector of pointers to ExprNodes that correspond to a scalar-valued OSExpressionTree in prefix format.

Returns:
the expression tree as a vector of ExprNodes in prefix.

Definition at line 241 of file OSExpressionTree.cpp.

std::vector< ExprNode * > MatrixExpressionTree::getPostfixFromExpressionTree (  ) 

Get a vector of pointers to ExprNodes that correspond to a scalar-valued OSExpressionTree in postfix format.

Returns:
the expression tree as a vector of ExprNodes in postfix.

Definition at line 247 of file OSExpressionTree.cpp.


Member Data Documentation

m_treeRoot holds the root node (of OSnLMNode type) of the expression tree.

Definition at line 214 of file OSExpressionTree.h.


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

Generated on 5 Jul 2015 by  doxygen 1.6.1