Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryPlatformObject.h>
Public Types | |
typedef berry::PlatformObject | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
![]() | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Public Member Functions | |
PlatformObject () | |
Object * | GetAdapter (const QString &adapter) const override |
![]() | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () const |
virtual void | Delete () |
QDebug | Print (QDebug os, Indent Indent=0) const |
virtual QString | ToString () const |
virtual uint | HashCode () const |
virtual bool | operator< (const Object *) const |
void | Register () const |
void | UnRegister (bool del=true) const |
int | GetReferenceCount () const |
void | SetReferenceCount (int) |
void | AddDestroyListener (const MessageAbstractDelegate<> &delegate) const |
void | RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const |
virtual bool | operator== (const Object *) const |
![]() | |
template<class A > | |
A * | GetAdapter () |
virtual | ~IAdaptable () |
Static Public Member Functions | |
static const char * | GetStaticClassName () |
![]() | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Additional Inherited Members | |
![]() | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
![]() | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
An abstract superclass implementing the IAdaptable
interface. getAdapter
invocations are directed to the platform's adapter manager.
Note: In situations where it would be awkward to subclass this class, the same affect can be achieved simply by implementing the IAdaptable
interface and explicitly forwarding the getAdapter
request to the platform's adapater manager. The method would look like:
public Object getAdapter(Class adapter) { return Platform.getAdapterManager().getAdapter(this, adapter); }
Clients may subclass.
Definition at line 51 of file berryPlatformObject.h.
typedef berry::SmartPointer<const Self> berry::PlatformObject::ConstPointer |
Definition at line 56 of file berryPlatformObject.h.
typedef berry::WeakPointer<const Self> berry::PlatformObject::ConstWeakPtr |
Definition at line 56 of file berryPlatformObject.h.
Definition at line 56 of file berryPlatformObject.h.
Definition at line 56 of file berryPlatformObject.h.
Definition at line 56 of file berryPlatformObject.h.
berry::PlatformObject::PlatformObject | ( | ) |
Constructs a new platform object.
Definition at line 24 of file berryPlatformObject.cpp.
|
overridevirtual |
Returns an object which is an instance of the given class associated with this object. Returns null
if no such object can be found.
This implementation of the method declared by IAdaptable
passes the request along to the platform's adapter manager; roughly Platform.getAdapterManager().getAdapter(this, adapter)
. Subclasses may override this method (however, if they do so, they should invoke the method on their superclass to ensure that the Platform's adapter manager is consulted).
Implements berry::IAdaptable.
Definition at line 28 of file berryPlatformObject.cpp.
References berry::IAdapterManager::GetAdapter(), and berry::Platform::GetAdapterManager().
|
inlinestatic |
Definition at line 56 of file berryPlatformObject.h.