|
| template<class TDerived, class TBase> |
| handle< TDerived > | down_cast (const handle< TBase > &theObject) |
| | Safe downcast from handle of base type to handle of derived type.
|
| template<class TDerived, class TBase> |
| handle< TDerived > | down_cast (const TBase *thePtr) |
| | Safe downcast from raw pointer to handle of derived type.
|
| template<class T> |
| bool | is_kind (const Standard_Transient *theObject) |
| | Check if object is of type T or inherits from T.
|
| template<class T, class TBase> |
| bool | is_kind (const handle< TBase > &theObject) |
| | Check if object is of type T or inherits from T (handle version).
|
| template<class T> |
| bool | is_instance (const Standard_Transient *theObject) |
| | Check if object is exactly of type T (not a derived type).
|
| template<class T, class TBase> |
| bool | is_instance (const handle< TBase > &theObject) |
| | Check if object is exactly of type T (handle version).
|
| template<class T> |
| const handle< Standard_Type > & | type_of () |
| | Get the type descriptor for type T. Equivalent to STANDARD_TYPE(T) but with template syntax.
|
Modern namespace for Open CASCADE Technology (OCCT 8.0+).
Definition of Handle_Standard_Type as typedef for compatibility.
This namespace provides the modern C++ interface with template syntax:
{
}
Describes a circle in 3D space. A circle is defined by its radius and, as with any conic curve,...
Definition Geom_Circle.hxx:59
opencascade::handle< T > handle
Intrusive smart pointer template for Standard_Transient descendants. This is an alias to opencascade:...
Definition Standard_Handle.hxx:421
handle< TDerived > down_cast(const handle< TBase > &theObject)
Safe downcast from handle of base type to handle of derived type.
Definition Standard_Handle.hxx:429
Modern type checking helpers in occ namespace.
These templates provide a cleaner syntax for runtime type checking:
#define STANDARD_TYPE(theType)
Helper macro to get instance of a type descriptor for a class in a legacy way.
Definition Standard_Type.hxx:36
bool is_kind(const Standard_Transient *theObject)
Check if object is of type T or inherits from T.
Definition Standard_Type.hxx:219