Class: TAttributeGroupIterator

Declaration: AttributeGroup.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TAttributeGroupIterator provides for iteration over the elements in an attribute group. Separate constructors are provided for working directly on simple attribute groups or indirectly through surrogates using TAttributeGroupHandle.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This is a concrete class.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TAttributeGroupIterator::TAttributeGroupIterator

  1. TAttributeGroupIterator (const TSimpleAttributeGroup & simpleGroup)
  2. TAttributeGroupIterator (const TAttributeGroupHandle & groupHandle)

Interface Category:

API.

Purpose:

  1. Constructs an iterator for a simple attribute group.
  2. Constructs an iterator for surrogate attribute groups.

Calling Context:

  1. Called by the member function CreateIterator for objects of class TSimpleAttributeGroup.
  2. Called by the member function CreateIterator for objects of class TAttributeGroupHandle.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAttributeGroupIterator::~TAttributeGroupIterator

virtual ~ TAttributeGroupIterator ()

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TAttributeGroupIterator::First

TAttribute * First ()

Interface Category:

API.

Purpose:

Returns the first attribute in the group.

Calling Context:

Called directly to get the first attribute in the attribute group.

Parameters:

Return Value:

Returns a pointer to the first attribute in the group.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Attributes are immutable.

Member Function: TAttributeGroupIterator::Next

TAttribute * Next ()

Interface Category:

API.

Purpose:

Returns the next attribute in the group.

Calling Context:

Called directly to get the next attribute in the attribute group.

Parameters:

Return Value:

Returns a pointer to the next attribute in the group.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Attributes are immutable.

Member Function: TAttributeGroupIterator::Remove

void Remove ()

Interface Category:

API.

Purpose:

Removes the current attribute from the group. This member function does not delete the attribute being removed.

Calling Context:

Called directly to remove the current attribute from the attribute group.

Parameters:

Return Value:

None.

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.