Class: TKeyValuePair

Declaration: KeyValuePair.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Manipulates objects' pointers. The protocol supports the adding and removing of objects' pointers.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TKeyValuePair::TKeyValuePair

  1. TKeyValuePair ()
  2. TKeyValuePair (const TKeyValuePair < AKey, AValue >&)
  3. TKeyValuePair (AKey * k, AValue * v)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Constructor taking a key and value pointers.

Calling Context:

  1. Call this function directly to create an object.
  2. Call this function directly to copy an object.
  3. Call this function directly to create an object and sets its key and value pointers.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyValuePair::~TKeyValuePair

virtual ~ TKeyValuePair ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Call this function directly 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: TKeyValuePair::GetKey

AKey * GetKey () const

Interface Category:

API.

Purpose:

Returns the key object pointer.

Calling Context:

Call this function directly to return the key object pointer.

Parameters:

Return Value:

The key object pointer.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyValuePair::GetValue

AValue * GetValue () const

Interface Category:

API.

Purpose:

Returns the value object pointer.

Calling Context:

Call this function directly to return the value object pointer.

Parameters:

Return Value:

The value object pointer.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyValuePair::SetKey

void SetKey (AKey * k)

Interface Category:

API.

Purpose:

Sets the key pointer.

Calling Context:

Call this function directly to set the key pointer.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyValuePair::SetValue

void SetValue (AValue * v)

Interface Category:

API.

Purpose:

Sets the value pointer.

Calling Context:

Call this function directly to set the value pointer.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyValuePair::operator>>=

TStream & operator >>=(TStream & towhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Call this function directly to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyValuePair::operator<<=

TStream & operator <<= (TStream & fromwhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Call this function directly to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TKeyValuePair::operator=

TKeyValuePair < AKey , AValue >& operator =(const TKeyValuePair < AKey, AValue

& that)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

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

Parameters:

Return Value:

A 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.