/[ff3d]/ff3d/language/RealExpression.hpp
ViewVC logotype

Diff of /ff3d/language/RealExpression.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:52 2003 UTC revision 1.2 by delpinux, Sun May 4 18:09:01 2003 UTC
# Line 35  protected: Line 35  protected:
35    real_t __realValue;    real_t __realValue;
36    
37  private:  private:
38    std::ostream& put(std::ostream& os)    std::ostream& put(std::ostream& os) const
39    {    {
     this->execute();  
40      os << this->realValue();      os << this->realValue();
41      return os;      return os;
42    }    }
# Line 45  private: Line 44  private:
44  public:  public:
45    virtual ReferenceCounting<RealExpression> value() = 0;    virtual ReferenceCounting<RealExpression> value() = 0;
46    
47    /*!    /**
48      Returns the value of the expression.     * Read only access to the real value
49      \todo Return type should use traits.     *
50       * @todo Return type should use traits.
51       * @return the value of the expression.
52     */     */
53    inline real_t realValue()    inline const real_t& realValue() const
54      {
55        return __realValue;
56      }
57    
58      /**
59       * Access to the real value
60       *
61       * @todo Return type should use traits.
62       * @return the value of the expression.
63       */
64      inline real_t& realValue()
65    {    {
66      return __realValue;      return __realValue;
67    }    }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26