CODComponentOrderedSet Class

class CODComponentOrderedSet: public CODComponentSet

Set of ordered components. This class maintains a set of components in sorted order based on a comparison function. The Add and Append methods use the comparison function to insert new components at their correct ordered position. The comparison function prototype is OD_COMPONENT_COMPARE.

Defined in: OdComponent.h

Class Members

VIEWS_API CODComponentOrderedSet(OD_COMPONENT_COMPARE fnCompare)

Constructor.

VIEWS_API CODComponentOrderedSet(OD_COMPONENT_COMPARE fnCompare, const CODComponentSet& src)

Copy constructor.

VIEWS_API int Add(CODComponent* pComp)

Add a component to the set.

VIEWS_API int Append(const CODComponentSet& src)

Append a set of components.

OD_COMPONENT_COMPARE m_fnCompare

Pointer to comparison function.