Open CASCADE Technology 6.5.2
Public Member Functions
Standard_Type Class Reference

The class <Type> provides services to find out information
about a type defined in CDL.

#include <Standard_Type.hxx>

Inheritance diagram for Standard_Type:
Inheritance graph
[legend]

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

Constructor & Destructor Documentation

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 
)

Member Function Documentation

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
Standard_Integer Standard_Type::NumberOfAncestor ( ) const
Standard_Integer Standard_Type::NumberOfParent ( ) 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 Standard_CString  theName) const
Standard_Boolean Standard_Type::SubType ( const Handle< Standard_Type > &  aOther) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines