Open CASCADE Technology
6.5.4
|
The class <Type> provides services to find out information
about a type defined in CDL.
Note that multiple inheritance is not supported by the moment;
the array of ancestors accepted by constructors is assumed to
represent hierarchy of ancestors up to the root.
However, only first element is actually used by SubType method,
higher level ancestors are requested recursively.
Warning:
The information given by <Type> is about the type from which
it is created and not about the <Type> itself.
#include <Standard_Type.hxx>
Public Member Functions | |
Standard_CString | Name () const |
Returns the type name of <me>. | |
Standard_Integer | Size () const |
Returns the size of <me> in bytes. | |
Standard_Type (const Standard_CString aName, const Standard_Integer aSize) | |
The constructor for a imported type. | |
Standard_Type (const Standard_CString aName, const Standard_Integer aSize, const Standard_Integer aNumberOfParent, const Standard_Address aAncestors) | |
The constructor for a primitive. | |
Standard_Type (const Standard_CString aName, const Standard_Integer aSize, const Standard_Integer aNumberOfElement, const Standard_Integer aNumberOfParent, const Standard_Address anAncestors, const Standard_Address aElements) | |
The constructor for an enumeration. | |
Standard_Type (const Standard_CString aName, const Standard_Integer aSize, const Standard_Integer aNumberOfParent, const Standard_Address anAncestors, const Standard_Address aFields) | |
The constructor for a class. | |
Standard_Boolean | SubType (const Handle< Standard_Type > &aOther) const |
Returns "True", if <me> is the same as <aOther>, or inherits from <aOther>. Note that multiple inheritance is not supported. | |
Standard_Boolean | SubType (const Standard_CString theName) const |
Returns "True", if <me> or one of its ancestors has the name equal to theName. Note that multiple inheritance is not supported. | |
Standard_Boolean | IsImported () const |
Returns "True", if the type is imported. | |
Standard_Boolean | IsPrimitive () const |
Returns "True", if the type is a primitive. | |
Standard_Boolean | IsEnumeration () const |
Returns "True", if the type is an "Enumeration". | |
Standard_Boolean | IsClass () const |
Returns "True", if the type is a "Class". | |
Standard_Integer | NumberOfParent () const |
Returns the number of direct parents of the class. | |
Standard_Integer | NumberOfAncestor () const |
Returns the number of ancestors of the class. | |
void | ShallowDump () const |
Prints the Information about type. | |
void | ShallowDump (Standard_OStream &S) const |
Prints the Information about type. | |
void | Print (Standard_OStream &s) const |
Prints on the stream <s> the name of Type. Warning: The operator "OStream& operator<< (Standard_OStream&, <br> Handle(Standard_Type)&)" is implemented. (This operator uses the method Print) | |
void | operator<< (Standard_OStream &s) const |
Standard_Type::Standard_Type | ( | const Standard_CString | aName, |
const Standard_Integer | aSize | ||
) |
Standard_Type::Standard_Type | ( | const Standard_CString | aName, |
const Standard_Integer | aSize, | ||
const Standard_Integer | aNumberOfParent, | ||
const Standard_Address | aAncestors | ||
) |
Standard_Type::Standard_Type | ( | const Standard_CString | aName, |
const Standard_Integer | aSize, | ||
const Standard_Integer | aNumberOfElement, | ||
const Standard_Integer | aNumberOfParent, | ||
const Standard_Address | anAncestors, | ||
const Standard_Address | aElements | ||
) |
Standard_Type::Standard_Type | ( | const Standard_CString | aName, |
const Standard_Integer | aSize, | ||
const Standard_Integer | aNumberOfParent, | ||
const Standard_Address | anAncestors, | ||
const Standard_Address | aFields | ||
) |
Standard_Boolean Standard_Type::IsClass | ( | ) | const |
Standard_Boolean Standard_Type::IsEnumeration | ( | ) | const |
Standard_Boolean Standard_Type::IsImported | ( | ) | const |
Standard_Boolean Standard_Type::IsPrimitive | ( | ) | const |
Standard_CString Standard_Type::Name | ( | ) | const |
void Standard_Type::operator<< | ( | Standard_OStream & | s | ) | const [inline] |
void Standard_Type::Print | ( | Standard_OStream & | s | ) | const |
void Standard_Type::ShallowDump | ( | ) | const |
void Standard_Type::ShallowDump | ( | Standard_OStream & | S | ) | const [virtual] |
Reimplemented from Standard_Transient.
Standard_Integer Standard_Type::Size | ( | ) | const |
Standard_Boolean Standard_Type::SubType | ( | const Handle< Standard_Type > & | aOther | ) | const |
Standard_Boolean Standard_Type::SubType | ( | const Standard_CString | theName | ) | const |