Pol  Rev 533
Double Class Reference

#include <bobject.h>

+ Inheritance diagram for Double:
+ Collaboration diagram for Double:

List of all members.

Public Member Functions

 Double (double dval=0.0)
 Double (const Double &dbl)
virtual BObjectImpcopy () const
void copyvalue (const Double &dbl)
virtual std::string getStringRep () const
double increment ()
virtual BObjectImpinverse () const
virtual bool isEqual (const BObjectImp &objimp) const
virtual bool isGE (int val) const
virtual bool isGT (int val) const
virtual bool isLessThan (const BObjectImp &objimp) const
virtual bool isTrue () const
void operator delete (void *)
void * operator new (std::size_t len)
virtual std::string pack () const
virtual void packonto (std::ostream &os) const
virtual void printOn (std::ostream &) const
virtual BObjectImpselfDividedByObj (const BLong &objimp) const
virtual BObjectImpselfDividedByObj (const Double &objimp) const
virtual void selfDividedByObj (BLong &objimp, BObject &obj)
virtual void selfDividedByObj (Double &objimp, BObject &obj)
virtual BObjectImpselfDividedByObjImp (const BObjectImp &objimp) const
virtual void selfDividedByObjImp (BObjectImp &objimp, BObject &obj)
virtual BObjectImpselfMinusObj (const BLong &objimp) const
virtual BObjectImpselfMinusObj (const Double &objimp) const
virtual BObjectImpselfMinusObj (const String &objimp) const
virtual void selfMinusObj (BLong &objimp, BObject &obj)
virtual void selfMinusObj (Double &objimp, BObject &obj)
virtual void selfMinusObj (String &objimp, BObject &obj)
virtual BObjectImpselfMinusObjImp (const BObjectImp &objimp) const
virtual void selfMinusObjImp (BObjectImp &objimp, BObject &obj)
virtual BObjectImpselfPlusObj (const BLong &objimp) const
virtual BObjectImpselfPlusObj (const Double &objimp) const
virtual BObjectImpselfPlusObj (const String &objimp) const
virtual void selfPlusObj (BLong &objimp, BObject &obj)
virtual void selfPlusObj (Double &objimp, BObject &obj)
virtual void selfPlusObj (String &objimp, BObject &obj)
virtual BObjectImpselfPlusObjImp (const BObjectImp &objimp) const
virtual void selfPlusObjImp (BObjectImp &objimp, BObject &obj)
virtual BObjectImpselfTimesObj (const BLong &objimp) const
virtual BObjectImpselfTimesObj (const Double &objimp) const
virtual void selfTimesObj (BLong &objimp, BObject &obj)
virtual void selfTimesObj (Double &objimp, BObject &obj)
virtual BObjectImpselfTimesObjImp (const BObjectImp &objimp) const
virtual void selfTimesObjImp (BObjectImp &objimp, BObject &obj)
virtual size_t sizeEstimate () const
virtual void unary_minus ()
double value () const

Static Public Member Functions

static BObjectImpunpack (const char *pstr)
static BObjectImpunpack (std::istream &is)

Private Member Functions

 ~Double ()

Private Attributes

double dval_

Friends

class GCCHelper

Detailed Description

Definition at line 681 of file bobject.h.


Constructor & Destructor Documentation

Double::Double ( double  dval = 0.0) [inline, explicit]

Definition at line 684 of file bobject.h.

Referenced by copy(), inverse(), selfDividedByObj(), selfMinusObj(), selfPlusObj(), selfTimesObj(), sizeEstimate(), and unpack().

+ Here is the caller graph for this function:

Double::Double ( const Double dbl) [inline]

Definition at line 685 of file bobject.h.

Double::~Double ( ) [inline, private]

Definition at line 695 of file bobject.h.


Member Function Documentation

virtual BObjectImp* Double::copy ( void  ) const [inline, virtual]

Implements BObjectImp.

Definition at line 715 of file bobject.h.

References Double().

Referenced by ObjArray::selfPlusObj().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Double::copyvalue ( const Double dbl) [inline]

Definition at line 709 of file bobject.h.

References dval_.

string Double::getStringRep ( ) const [virtual]

Implements BObjectImp.

Definition at line 110 of file dbl.cpp.

References dval_, OSTRINGSTREAM, and OSTRINGSTREAM_STR.

Referenced by String::selfMinusObj(), selfMinusObj(), String::selfPlusObj(), and selfPlusObj().

+ Here is the caller graph for this function:

double Double::increment ( ) [inline]

Definition at line 710 of file bobject.h.

References dval_.

Referenced by Executor::ins_nextfor().

+ Here is the caller graph for this function:

virtual BObjectImp* Double::inverse ( ) const [inline, virtual]

Reimplemented from BObjectImp.

Definition at line 757 of file bobject.h.

References Double(), and dval_.

+ Here is the call graph for this function:

bool Double::isEqual ( const BObjectImp objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 67 of file dbl.cpp.

References dval_, BObjectImp::isa(), BObjectImp::OTDouble, and BObjectImp::OTLong.

+ Here is the call graph for this function:

bool Double::isGE ( int  val) const [virtual]

Reimplemented from BObjectImp.

Definition at line 101 of file dbl.cpp.

References dval_.

bool Double::isGT ( int  val) const [virtual]

Reimplemented from BObjectImp.

Definition at line 105 of file dbl.cpp.

References dval_.

bool Double::isLessThan ( const BObjectImp objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 85 of file dbl.cpp.

References dval_, BObjectImp::isa(), BObjectImp::OTDouble, and BObjectImp::OTLong.

+ Here is the call graph for this function:

virtual bool Double::isTrue ( void  ) const [inline, virtual]

Reimplemented from BObjectImp.

Definition at line 713 of file bobject.h.

References dval_.

void Double::operator delete ( void *  p) [inline]

Definition at line 771 of file bobject.h.

References fixed_allocator< N, B >::deallocate().

+ Here is the call graph for this function:

void * Double::operator new ( std::size_t  len) [inline]

Definition at line 766 of file bobject.h.

References fixed_allocator< N, B >::allocate(), and passert_paranoid.

+ Here is the call graph for this function:

string Double::pack ( ) const [virtual]

Reimplemented from BObjectImp.

Definition at line 22 of file dbl.cpp.

References dval_, OSTRINGSTREAM, and OSTRINGSTREAM_STR.

void Double::packonto ( std::ostream &  os) const [virtual]

Reimplemented from BObjectImp.

Definition at line 29 of file dbl.cpp.

References dval_.

void Double::printOn ( std::ostream &  os) const [virtual]

Reimplemented from BObjectImp.

Definition at line 63 of file objstrm.cpp.

References dval_.

BObjectImp * Double::selfDividedByObj ( const BLong objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 216 of file dbl.cpp.

References Double(), dval_, and BLong::value().

+ Here is the call graph for this function:

BObjectImp * Double::selfDividedByObj ( const Double objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 224 of file dbl.cpp.

References Double(), dval_, and value().

+ Here is the call graph for this function:

void Double::selfDividedByObj ( BLong objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 236 of file dbl.cpp.

References dval_, BObject::setimp(), and BLong::value().

+ Here is the call graph for this function:

void Double::selfDividedByObj ( Double objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 243 of file dbl.cpp.

References dval_, BObject::setimp(), and value().

+ Here is the call graph for this function:

BObjectImp * Double::selfDividedByObjImp ( const BObjectImp objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 212 of file dbl.cpp.

References BObjectImp::selfDividedByObj().

+ Here is the call graph for this function:

void Double::selfDividedByObjImp ( BObjectImp objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 232 of file dbl.cpp.

References BObjectImp::selfDividedByObj().

+ Here is the call graph for this function:

BObjectImp * Double::selfMinusObj ( const BLong objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 156 of file dbl.cpp.

References Double(), dval_, and BLong::value().

Referenced by selfMinusObj().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Double::selfMinusObj ( const Double objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 160 of file dbl.cpp.

References Double(), and dval_.

+ Here is the call graph for this function:

BObjectImp * Double::selfMinusObj ( const String objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 164 of file dbl.cpp.

References getStringRep(), and String::selfMinusObj().

+ Here is the call graph for this function:

void Double::selfMinusObj ( BLong objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 173 of file dbl.cpp.

References dval_, and BLong::value().

+ Here is the call graph for this function:

void Double::selfMinusObj ( Double objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 177 of file dbl.cpp.

References dval_, and value().

+ Here is the call graph for this function:

void Double::selfMinusObj ( String objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 181 of file dbl.cpp.

References selfMinusObj(), and BObject::setimp().

+ Here is the call graph for this function:

BObjectImp * Double::selfMinusObjImp ( const BObjectImp objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 152 of file dbl.cpp.

References BObjectImp::selfMinusObj().

+ Here is the call graph for this function:

void Double::selfMinusObjImp ( BObjectImp objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 169 of file dbl.cpp.

References BObjectImp::selfMinusObj().

+ Here is the call graph for this function:

BObjectImp * Double::selfPlusObj ( const BLong objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 123 of file dbl.cpp.

References Double(), dval_, and BLong::value().

Referenced by selfPlusObj().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Double::selfPlusObj ( const Double objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 127 of file dbl.cpp.

References Double(), and dval_.

+ Here is the call graph for this function:

BObjectImp * Double::selfPlusObj ( const String objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 131 of file dbl.cpp.

References String::data(), and getStringRep().

+ Here is the call graph for this function:

void Double::selfPlusObj ( BLong objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 139 of file dbl.cpp.

References selfPlusObj(), and BObject::setimp().

+ Here is the call graph for this function:

void Double::selfPlusObj ( Double objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 143 of file dbl.cpp.

References dval_.

void Double::selfPlusObj ( String objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 147 of file dbl.cpp.

References selfPlusObj(), and BObject::setimp().

+ Here is the call graph for this function:

BObjectImp * Double::selfPlusObjImp ( const BObjectImp objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 118 of file dbl.cpp.

References BObjectImp::selfPlusObj().

+ Here is the call graph for this function:

void Double::selfPlusObjImp ( BObjectImp objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 135 of file dbl.cpp.

References BObjectImp::selfPlusObj().

+ Here is the call graph for this function:

BObjectImp * Double::selfTimesObj ( const BLong objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 190 of file dbl.cpp.

References Double(), dval_, and BLong::value().

+ Here is the call graph for this function:

BObjectImp * Double::selfTimesObj ( const Double objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 194 of file dbl.cpp.

References Double(), dval_, and value().

+ Here is the call graph for this function:

void Double::selfTimesObj ( BLong objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 202 of file dbl.cpp.

References dval_, and BLong::value().

+ Here is the call graph for this function:

void Double::selfTimesObj ( Double objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 206 of file dbl.cpp.

References dval_, and value().

+ Here is the call graph for this function:

BObjectImp * Double::selfTimesObjImp ( const BObjectImp objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 186 of file dbl.cpp.

References BObjectImp::selfTimesObj().

+ Here is the call graph for this function:

void Double::selfTimesObjImp ( BObjectImp objimp,
BObject obj 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 198 of file dbl.cpp.

References BObjectImp::selfTimesObj().

+ Here is the call graph for this function:

size_t Double::sizeEstimate ( ) const [virtual]

Implements BObjectImp.

Definition at line 61 of file dbl.cpp.

References Double().

+ Here is the call graph for this function:

virtual void Double::unary_minus ( ) [inline, virtual]

Definition at line 756 of file bobject.h.

References dval_.

BObjectImp * Double::unpack ( const char *  pstr) [static]

Reimplemented from BObjectImp.

Definition at line 34 of file dbl.cpp.

References Double(), and ISTRINGSTREAM.

+ Here is the call graph for this function:

BObjectImp * Double::unpack ( std::istream &  is) [static]

Reimplemented from BObjectImp.

Definition at line 48 of file dbl.cpp.

References Double().

+ Here is the call graph for this function:


Friends And Related Function Documentation

friend class GCCHelper [friend]

Definition at line 687 of file bobject.h.


Member Data Documentation


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