Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Implements transparent reference counting. More...
#include <berryICommandCategoryListener.h>
Public Types | |
typedef TObjectType | ObjectType |
typedef SmartPointer | Self |
typedef ObjectType *Self::* | unspecified_bool_type |
Public Member Functions | |
SmartPointer () | |
SmartPointer (ObjectType *p) | |
SmartPointer (const SmartPointer< ObjectType > &p) | |
template<class Other > | |
SmartPointer (const SmartPointer< Other > &ptr) | |
template<class Other > | |
SmartPointer (const WeakPointer< Other > &wp) | |
~SmartPointer () | |
template<class Other > | |
SmartPointer< Other > | Cast () const |
ObjectType * | operator-> () const |
ObjectType & | operator* () const |
bool | IsNotNull () const |
bool | IsNull () const |
operator unspecified_bool_type () const | |
template<typename R > | |
bool | operator== (const R *o) const |
template<typename R > | |
bool | operator== (const SmartPointer< R > &r) const |
bool | operator== (int r) const |
template<typename R > | |
bool | operator!= (const R *r) const |
template<typename R > | |
bool | operator!= (const SmartPointer< R > &r) const |
bool | operator!= (int r) const |
ObjectType * | GetPointer () const |
template<typename R > | |
bool | operator< (const SmartPointer< R > &r) const |
template<typename R > | |
bool | operator> (const SmartPointer< R > &r) const |
template<typename R > | |
bool | operator<= (const SmartPointer< R > &r) const |
template<typename R > | |
bool | operator>= (const SmartPointer< R > &r) const |
SmartPointer & | operator= (const SmartPointer &r) |
template<typename R > | |
SmartPointer & | operator= (const SmartPointer< R > &r) |
SmartPointer & | operator= (ObjectType *r) |
QDebug | Print (QDebug os) const |
Implements transparent reference counting.
SmartPointer is a copy of itk::SmartPointer. It implements reference counting by overloading operator -> (and *) among others. This allows natural interface to the class referred to by the pointer without having to invoke special Register()/UnRegister() methods directly.
Definition at line 21 of file berryICommandCategoryListener.h.
typedef TObjectType berry::SmartPointer::ObjectType |
Definition at line 48 of file berrySmartPointer.h.
Definition at line 49 of file berrySmartPointer.h.
typedef ObjectType* Self::* berry::SmartPointer::unspecified_bool_type |
Definition at line 145 of file berrySmartPointer.h.
|
inline |
Constructor
Definition at line 52 of file berrySmartPointer.h.
|
inlineexplicit |
Constructor to pointer p
Definition at line 62 of file berrySmartPointer.h.
|
inline |
Copy constructor
Definition at line 74 of file berrySmartPointer.h.
|
inline |
Definition at line 85 of file berrySmartPointer.h.
|
explicit |
Definition at line 352 of file berrySmartPointer.h.
|
inline |
Destructor
Definition at line 100 of file berrySmartPointer.h.
|
inline |
Definition at line 111 of file berrySmartPointer.h.
Referenced by berry::ObjectGeneric< bool >::Assign(), and berry::ObjectGeneric< bool >::Assignable().
|
inline |
Access function to pointer.
Definition at line 209 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator<(), berry::WeakPointer::operator=(), berry::SmartPointer< berry::MenuManager >::operator=(), berry::SmartPointer< berry::MenuManager >::operator==(), and berry::SmartPointer< berry::MenuManager >::operator>().
|
inline |
Test if the pointer has been initialized
Definition at line 136 of file berrySmartPointer.h.
|
inline |
Definition at line 140 of file berrySmartPointer.h.
Referenced by qHash().
|
inline |
Definition at line 147 of file berrySmartPointer.h.
|
inline |
Definition at line 175 of file berrySmartPointer.h.
|
inline |
Definition at line 181 of file berrySmartPointer.h.
|
inline |
Definition at line 186 of file berrySmartPointer.h.
|
inline |
Definition at line 129 of file berrySmartPointer.h.
|
inline |
Overload operator ->
Definition at line 118 of file berrySmartPointer.h.
|
inline |
Comparison of pointers. Less than comparison.
Definition at line 216 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator<=().
|
inline |
Comparison of pointers. Less than or equal to comparison.
Definition at line 232 of file berrySmartPointer.h.
|
inline |
Overload operator assignment.
Definition at line 245 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator=().
|
inline |
Overload operator assignment.
Definition at line 252 of file berrySmartPointer.h.
|
inline |
Overload operator assignment.
Definition at line 258 of file berrySmartPointer.h.
|
inline |
Template comparison operators.
Definition at line 154 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator!=(), berry::SmartPointer< berry::MenuManager >::operator<=(), and berry::SmartPointer< berry::MenuManager >::operator>=().
|
inline |
Definition at line 160 of file berrySmartPointer.h.
|
inline |
Definition at line 166 of file berrySmartPointer.h.
|
inline |
Comparison of pointers. Greater than comparison.
Definition at line 224 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator>=().
|
inline |
Comparison of pointers. Greater than or equal to comparison.
Definition at line 239 of file berrySmartPointer.h.
QDebug berry::SmartPointer::Print | ( | QDebug | os | ) | const |
Function to print object pointed to
Definition at line 371 of file berrySmartPointer.h.