1 #if !defined(H_LISPFLOAT)
7 class Floatnum
: public Obj
11 typedef Floatnum
* FloatnumPtr
;
12 typedef Floatnum
& FloatnumRef
;
14 Floatnum() : value_(0.0)
17 Floatnum(const Floatnum
& other
)
20 value_
= other
.value_
;
23 virtual eObjectType
getObjectType() const
28 virtual Floatnum
* create(void) const
30 Floatnum
*result
= new Floatnum();
34 virtual Floatnum
* clone() const
36 Floatnum
* result
= new Floatnum(*this);
40 void print(std::ostream
& out
) const
45 bool operator==(const Obj
* other
)
48 if (other
->getObjectType() == eFloatnumObj
)
49 result
= ( value_
== dynamic_cast<const Floatnum
*>(other
)->value_
);