Class: TPicoseconds

Declaration: TimeClasses.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TTime

Inherited By:

None.

Purpose:

A picoseconds derived class of TTime.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derived classes must preserve the picoseconds representation and TTime interfaces.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TPicoseconds::TPicoseconds

  1. TPicoseconds ()
  2. TPicoseconds (double numberOfPicoseconds)
  3. TPicoseconds (const TPicoseconds & thePicoseconds)
  4. TPicoseconds (const TTime & theTime)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructor initializing the number of picoseconds.
  3. Copy constructor.
  4. Constructor for the base class.

Calling Context:

Call this function directly. Call this function directly.
  1. Called by the stream-in operators and for uninitialized objects.
  2. Called to initialize an object with a value.
  3. Called to copy an object.
  4. Called to copy any TTime derived class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Can be safely type cast between TTime derived classes because no extra storage is added.

Member Function: TPicoseconds::~TPicoseconds

virtual ~ TPicoseconds ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Call this function directly. Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TPicoseconds::GetPicoseconds

double GetPicoseconds () const

Interface Category:

API.

Purpose:

Gets the number of picoseconds represented by the object.

Calling Context:

Call this function directly. Called to get the picoseconds in a double.

Parameters:

Return Value:

The picoseconds in the object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Returns a double that could be a NaN, or positive or negative infinity, depending on the time.

Member Function: TPicoseconds::operator=

TPicoseconds & operator =(const TPicoseconds & thePicoseconds)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function directly. Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.