Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
#include <berryPlatformObject.h>
Public Member Functions | |
PlatformObject () | |
Object * | GetAdapter (const QString &adapter) const override |
Public Member Functions inherited from berry::Object | |
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 |
Public Member Functions inherited from berry::IAdaptable | |
template<class A > | |
A * | GetAdapter () |
virtual | ~IAdaptable () |
Public Attributes | |
berryObjectMacro1 | |
Additional Inherited Members | |
Public Types inherited from berry::Object | |
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 |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions inherited from berry::Object | |
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 |
Protected Attributes inherited from berry::Object | |
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 adapter manager. The method would look like:
public Object getAdapter(Class adapter) { return Platform.getAdapterManager().getAdapter(this, adapter); }
Clients may subclass.
Definition at line 47 of file berryPlatformObject.h.
berry::PlatformObject::PlatformObject | ( | ) |
Constructs a new platform object.
|
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.
berry::PlatformObject::berryObjectMacro1 |
Definition at line 52 of file berryPlatformObject.h.