Inheritance diagram for oaConstraintDef:
Public Methods | |
void | getName (oaString &name) const |
void | getValueTypes (oaSubset< oaType > &allowedValues) const |
void | getObjectTypes (oaSubset< oaType > &allowedObjects) const |
void | getDatabaseTypes (oaSubset< oaDBType > &allowedDbs) const |
oaBoolean | isBuiltIn () const |
void | destroy () |
void | remove (oaObject *database) |
Static Public Methods | |
oaConstraintDef * | find (const oaString &name) |
Public Types | |
enum | { dtIndex = oacBaseConstraintDefDataType } |
oaConstraintDefs can be built-in or user defined. Built-in oaConstraintDefs can be obtained with an enum, for example, using oaLayerConstraintDef::get(). User- defined oaConstraintDefs can be obtained by name using find().
The oaConstraintDef class can be observed by deriving from oaObserver<oaConstraintDef>.
See Uniqueness of Session Objects for information about the requirement that session objects be unique.
|
This function destroys this constraint definition. If it is a built-in definition, or there are databases referencing this definition, an exception is thrown. An exception is also thrown if this function is called when undo is enabled on any of the current in-memory design or tech databases.
|
|
This function returns the constraint definition with the specified name. If no definition by that name is found, NULL is returned.
|
|
This function returns the types of databases that a constraint specified with this definition can be created in.
|
|
This function returns the name of this constraint definition.
|
|
This function returns the types of objects that a constraint specified with this definition can be attached to.
|
|
This function returns the allowed value types for a constraint specified with this definition.
|
|
This function returns true if this constraint def is a built-in def. |
|
This function removes this constraint definition from the specified database. If there are constraints in the specified database that reference this definition, an error is thrown.
|
|
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.