oaSubset Class Template Reference
Inheritance diagram for oaSubset:
Detailed Description
template<class T>
class oaSubset< T >
This class is a form of array that is stored in a sorted order to allow fast lookup of its elements. It is used to hold a set of oaType values that can be supplied to an oaConstraintDef to specify the legal classes that the constraint can work with -- see oaLayerConstraintDef::oaLayerConstraintDef for an example of its usage.
The classes used in an oaSubset must be legal for comparison with the built-in C++ comparison operators such as '<'.
Constructor & Destructor Documentation
template<class T> |
oaSubset< T >::oaSubset |
( |
|
) |
[inline] |
|
|
This function creates an empty subset object. |
Member Function Documentation
template<class T> |
void oaSubset< T >::add |
( |
T |
type |
) |
[inline] |
|
|
This function adds a type to the subset.
- Parameters:
-
type | The type of object to add to the subset |
|
template<class T> |
oaBoolean oaSubset< T >::includes |
( |
T |
type |
) |
const [inline] |
|
|
This function returns a boolean indicating whether or not the subset includes an object of the specified type.
- Parameters:
-
type | The type of object to search for |
|
The documentation for this class was generated from the following files:
Return to top of page
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.