SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Deprecated. Inherits classes RWTime and RWCollectable. More...
#include <rw/colltime.h>
Public Member Functions | |
virtual RWCollectable * | newSpecies () const |
virtual RWClassID | isA () const |
RWCollectableTime () | |
RWCollectableTime (unsigned long s) | |
RWCollectableTime (const RWTime &t) | |
RWCollectableTime (unsigned h, unsigned m, unsigned s=0, const RWZone &zone=RWZone::local()) | |
RWCollectableTime (const RWDate &d, unsigned h=0, unsigned m=0, unsigned s=0, const RWZone &zone=RWZone::local()) | |
RWCollectableTime (const RWDate &d, const RWCString &str, const RWZone &z=RWZone::local(), const RWLocale &l=RWLocale::global()) | |
RWCollectableTime (const struct tm *tmb, const RWZone &zone=RWZone::local()) | |
virtual | ~RWCollectableTime () |
virtual RWspace | binaryStoreSize () const |
virtual int | compareTo (const RWCollectable *c) const |
virtual unsigned | hash () const |
virtual bool | isEqual (const RWCollectable *) const |
virtual void | restoreGuts (RWvistream &) |
virtual void | restoreGuts (RWFile &) |
virtual void | saveGuts (RWvostream &) const |
virtual void | saveGuts (RWFile &) const |
Static Public Member Functions | |
static RWClassID | classIsA () |
Inherits classes RWTime and RWCollectable. This class is useful when times are used as keys in the "dictionary" collection classes, or if times are stored and retrieved as RWCollectable instances.
The virtual functions of the base class RWCollectable have been redefined.
typedef RWCollectableTime Time; // Smalltalk typedef #include <rw/colltime.h> RWCollectableTime t;
Polymorphic
RWCollectableTime::RWCollectableTime | ( | ) |
Calls the corresponding constructor of RWTime.
RWCollectableTime::RWCollectableTime | ( | unsigned long | s | ) | [inline] |
Calls the corresponding constructor of RWTime.
RWCollectableTime::RWCollectableTime | ( | const RWTime & | t | ) | [inline] |
Calls the corresponding constructor of RWTime.
RWCollectableTime::RWCollectableTime | ( | unsigned | h, | |
unsigned | m, | |||
unsigned | s = 0 , |
|||
const RWZone & | zone = RWZone::local() | |||
) | [inline] |
Calls the corresponding constructor of RWTime.
RWCollectableTime::RWCollectableTime | ( | const RWDate & | d, | |
unsigned | h = 0 , |
|||
unsigned | m = 0 , |
|||
unsigned | s = 0 , |
|||
const RWZone & | zone = RWZone::local() | |||
) | [inline] |
Calls the corresponding constructor of RWTime.
RWCollectableTime::RWCollectableTime | ( | const RWDate & | d, | |
const RWCString & | str, | |||
const RWZone & | z = RWZone::local() , |
|||
const RWLocale & | l = RWLocale::global() | |||
) | [inline] |
Calls the corresponding constructor of RWTime.
RWCollectableTime::RWCollectableTime | ( | const struct tm * | tmb, | |
const RWZone & | zone = RWZone::local() | |||
) | [inline] |
Calls the corresponding constructor of RWTime.
virtual RWCollectableTime::~RWCollectableTime | ( | ) | [virtual] |
Empty destructor.
virtual RWspace RWCollectableTime::binaryStoreSize | ( | ) | const [inline, virtual] |
Returns the number of bytes used by the virtual function saveGuts(RWFile&) to store an object. Typically, this involves adding up the space required to store all primitives, plus the results of calling recursiveStoreSize() for all objects inheriting from RWCollectable. See the Essential Tools Module User's Guide for details.
Reimplemented from RWCollectable.
static RWClassID RWCollectableTime::classIsA | ( | ) | [static] |
Returns the RWClassID of this class.
Reimplemented from RWCollectable.
virtual int RWCollectableTime::compareTo | ( | const RWCollectable * | c | ) | const [virtual] |
Returns the results of calling RWTime::compareTo().
Reimplemented from RWCollectable.
virtual unsigned RWCollectableTime::hash | ( | ) | const [virtual] |
Returns the results of calling RWTime::hash().
Reimplemented from RWCollectable.
virtual RWClassID RWCollectableTime::isA | ( | ) | const [virtual] |
Returns the unique ID for RWCollectableTime.
Reimplemented from RWCollectable.
virtual bool RWCollectableTime::isEqual | ( | const RWCollectable * | ) | const [virtual] |
Returns the results of calling operator==() for the base class RWTime by using appropriate casts.
Reimplemented from RWCollectable.
virtual RWCollectable* RWCollectableTime::newSpecies | ( | ) | const [virtual] |
Allocates a new object off the heap of the same type as self and returns a pointer to it. You are responsible for deleting the object when done with it.
Reimplemented from RWCollectable.
virtual void RWCollectableTime::restoreGuts | ( | RWFile & | ) | [virtual] |
Reads an object's state from a binary file, using class RWFile, replacing the previous state.
Reimplemented from RWCollectable.
virtual void RWCollectableTime::restoreGuts | ( | RWvistream & | ) | [virtual] |
Reads an object's state from an input stream, replacing the previous state.
Reimplemented from RWCollectable.
virtual void RWCollectableTime::saveGuts | ( | RWFile & | ) | const [virtual] |
Writes an object's state to a binary file, using class RWFile.
Reimplemented from RWCollectable.
virtual void RWCollectableTime::saveGuts | ( | RWvostream & | ) | const [virtual] |
Writes an object's state to an output stream.
Reimplemented from RWCollectable.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.