![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Modern namespace for Open CASCADE Technology (OCCT 8.0+). More...
Typedefs | |
| template<class T > | |
| using | handle = opencascade::handle<T> |
| Intrusive smart pointer template for Standard_Transient descendants. This is an alias to opencascade::handle<T>. | |
Functions | |
| 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:
Modern type checking helpers in occ namespace.
These templates provide a cleaner syntax for runtime type checking:
| using occ::handle = opencascade::handle<T> |
Intrusive smart pointer template for Standard_Transient descendants. This is an alias to opencascade::handle<T>.
Safe downcast from handle of base type to handle of derived type.
| TDerived | Target derived type |
| TBase | Source base type (deduced) |
| theObject | Handle to object of base type |
Safe downcast from raw pointer to handle of derived type.
| TDerived | Target derived type |
| TBase | Source base type (deduced) |
| thePtr | Raw pointer to object of base type |
Check if object is exactly of type T (handle version).
| T | Target type to check against |
| TBase | Base type of the handle (deduced) |
| theObject | Handle to object to check |
|
inline |
Check if object is exactly of type T (not a derived type).
| T | Target type to check against |
| theObject | Pointer to object to check |
Check if object is of type T or inherits from T (handle version).
| T | Target type to check against |
| TBase | Base type of the handle (deduced) |
| theObject | Handle to object to check |
|
inline |
Check if object is of type T or inherits from T.
| T | Target type to check against |
| theObject | Pointer to object to check |
|
inline |
Get the type descriptor for type T. Equivalent to STANDARD_TYPE(T) but with template syntax.
| T | Type to get descriptor for |