mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0027563: Foundation Classes, opencascade::handle - make operator*() consistent with operator->()
This commit is contained in:
parent
3cb0f659d8
commit
9016c8bd2e
@ -117,20 +117,15 @@ namespace opencascade {
|
||||
return *this;
|
||||
}
|
||||
|
||||
//! STL-like cast to pointer to referred object
|
||||
const T* get () const { return static_cast<const T*>(this->entity); }
|
||||
|
||||
//! STL-like cast to pointer to referred object
|
||||
T* get () { return static_cast<T*>(this->entity); }
|
||||
//! STL-like cast to pointer to referred object (note non-const).
|
||||
//! @sa std::shared_ptr::get()
|
||||
T* get() const { return static_cast<T*>(this->entity); }
|
||||
|
||||
//! Member access operator (note non-const)
|
||||
T* operator-> () const { return static_cast<T*>(this->entity); }
|
||||
|
||||
//! Dereferencing operator
|
||||
T& operator* () { return *get(); }
|
||||
|
||||
//! Const dereferencing operator
|
||||
const T& operator*() const { return *get(); }
|
||||
//! Dereferencing operator (note non-const)
|
||||
T& operator* () const { return *get(); }
|
||||
|
||||
//! Check for equality
|
||||
template <class T2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user