Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

UnaryExpr.h

Go to the documentation of this file.
00001 #ifndef UNARYEXPR_H
00002 #define UNARYEXPR_H
00003 
00004 #include "SundanceDefs.h"
00005 
00006 #include "Expr.h"
00007 #include "ExprBase.h"
00008 #include "ExprArray.h"
00009 
00010 namespace Sundance
00011 {
00012 
00013   using namespace TSF;
00014   using std::string;
00015 
00016   using std::ostream;
00017 
00018   /**
00019    * \ingroup LowLevelSymbolics
00020    * UnaryExpr is an expression that contains another expression as an
00021    * argument.
00022    */
00023 
00024   class UnaryExpr : public ExprBase
00025     {
00026     public:
00027       //@{
00028       /** Construct with the expression to be held */
00029       UnaryExpr(const Expr& expr, bool useRHSPtr = false) ;
00030 
00031       /** */
00032       virtual ~UnaryExpr(){;}
00033 
00034       /** */
00035       virtual void watchOn()
00036         {ExprBase::watchOn(); expr_.watchOn();}
00037       /** */
00038       virtual void watchOff()
00039         {ExprBase::watchOff(); expr_.watchOff();}
00040       /** */
00041       virtual bool hasChildren() const ;
00042 
00043       /** */
00044       virtual void getChildren(ExprArray& children) const ;
00045 
00046       //@}
00047 
00048     protected:
00049       Expr expr_;
00050     };
00051 
00052 
00053 }
00054 #endif

Contact:
Kevin Long (krlong@ca.sandia.gov)


Documentation generated by