18 #include <Handle_Standard_Transient.hxx>
38 template<
typename TYPE>
42 explicit down_cast<TYPE>(
const Handle_Standard_Transient& handle);
43 operator TYPE()
const;
46 const Handle_Standard_Transient& m_handle;
56 template<
typename TYPE>
63 template<
typename TYPE>
66 return TYPE::DownCast(m_handle);
70 template<
typename TYPE>
73 return TYPE::DownCast(m_handle);
const TYPE operator->() const
Downcasted handle to type TYPE.
Definition: down_cast.h:71
Definition: ais_text.cpp:31
down_cast(const Handle_Standard_Transient &handle)
Construct the operator that will down cast object to an handle of type TYPE.
Definition: down_cast.h:57
Downcasting operator for OpenCascade handles.
Definition: down_cast.h:39