Class: TPropertyIDSet

Declaration: Property.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

None.

Purpose:

Provides a collection of property identifiers that can be retrieved or deleted from an MPropertyStore in a single operation.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class is not intended to be derived from.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TPropertyIDSet::TPropertyIDSet

  1. TPropertyIDSet ()
  2. TPropertyIDSet (const TPropertyIDSet & copy)
  3. TPropertyIDSet (const TPropertySet & copy)

Interface Category:

API.

Purpose:

  1. Default constructor -Constructs an empty property identifier set.
  2. Copy constructor.
  3. Constructs a property identifier set from a property set.

Calling Context:

  1. Called by the stream-in operators and to create an instance to assign to.
  2. Called to copy an object.
  3. Called to create a TPropertyIDSet from a TPropertySet.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::operator=

  1. TPropertyIDSet & operator =(const TPropertyIDSet & copy)
  2. TPropertyIDSet & operator =(const TPropertySet & copy)

Interface Category:

API.

Purpose:

  1. Assignment operator.
  2. Assigns the identifiers contained in its argument to this object.

Calling Context:

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

Parameters:

Return Value:

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

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::~TPropertyIDSet

virtual ~ TPropertyIDSet ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::Add

  1. virtual void Add (const TPropertyID & id)
  2. virtual void Add (const TPropertyIDSet & set)
  3. virtual void Add (const TProperty & property)
  4. virtual void Add (const TPropertySet & set)

Interface Category:

API.

Purpose:

  1. Adds a property identifier to this set.
  2. Adds one or more property identifiers to this set.
  3. Adds a property identifier to this set; extracts the identifier from a property object.
  4. Adds one or more property identifiers to this set; extracts the identifiers from property objects.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.
  3. Call this function directly.
  4. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

If any identifier argument is either TPropertyID::kInvalid or TPropertyIDSetIterator::kEndOfIteration or if the identifier already exists in the set, no operation is performed for that identifier.

Member Function: TPropertyIDSet::Delete

  1. virtual bool Delete (const TPropertyID & id)
  2. virtual bool Delete (const TPropertyIDSet & set)

Interface Category:

API.

Purpose:

  1. Deletes a property identifier from this set.
  2. Deletes one or more property identifiers from this set.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

Returns true if the identifiers were members of this set.

Exceptions:

Throws TObjectPassedToSelf if the set equals this.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::DeleteAll

virtual void DeleteAll ()

Interface Category:

API.

Purpose:

Deletes all property identifiers from this set.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::Member

virtual bool Member (const TPropertyID & id) const

Interface Category:

API.

Purpose:

Determines if a specified property identifier is present in this set.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the specified property identifier is present in this set.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::Members

virtual bool Members (const TPropertyIDSet & set) const

Interface Category:

API.

Purpose:

Determines if all the specified property identifiers are present in this set.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if all the specified property identifiers are present in this set.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::Count

virtual unsigned long Count () const

Interface Category:

API.

Purpose:

Returns the number of property identifiers present in this set.

Calling Context:

Call this function directly.

Parameters:

Return Value:

An unsigned long.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::operator==

bool operator ==(const TPropertyIDSet & set) const

Interface Category:

API.

Purpose:

Determines if this property identifier set equals its argument.

Calling Context:

Called to test the equivalence of two objects.

Parameters:

Return Value:

Returns true if both sets are equal.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::operator!=

bool operator != (const TPropertyIDSet & set) const

Interface Category:

API.

Purpose:

Determines if this property identifier set is different from its argument.

Calling Context:

Called to test the equivalence of two objects.

Parameters:

Return Value:

Returns true if the sets are not equal.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called 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:

Multithread safe.

Other Considerations:

None.

Member Function: TPropertyIDSet::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called 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:

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.