Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::ObjectGeneric< T > Class Template Reference

#include <berryObjectGeneric.h>

Inheritance diagram for berry::ObjectGeneric< T >:
Collaboration diagram for berry::ObjectGeneric< T >:

Public Types

typedef ObjectGeneric Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
typedef T ValueType
 
- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 

Public Member Functions

 ObjectGeneric ()
 
 ObjectGeneric (T x)
 
virtual ~ObjectGeneric ()
 
void SetValue (T val)
 
GetValue () const
 
bool operator== (const Object *o) const override
 
virtual std::string GetValueAsString () const
 
virtual bool Assignable (Object::ConstPointer other) const
 
virtual void Assign (Object::ConstPointer other)
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () 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
 

Static Public Member Functions

static const char * GetStaticClassName ()
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 

Protected Attributes

m_Value
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Additional Inherited Members

- 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
 

Detailed Description

template<typename T>
class berry::ObjectGeneric< T >

Definition at line 29 of file berryObjectGeneric.h.

Member Typedef Documentation

template<typename T>
typedef berry::SmartPointer<const Self> berry::ObjectGeneric< T >::ConstPointer

Definition at line 33 of file berryObjectGeneric.h.

template<typename T>
typedef berry::WeakPointer<const Self> berry::ObjectGeneric< T >::ConstWeakPtr

Definition at line 33 of file berryObjectGeneric.h.

template<typename T>
typedef berry::SmartPointer<Self> berry::ObjectGeneric< T >::Pointer

Definition at line 33 of file berryObjectGeneric.h.

template<typename T>
typedef ObjectGeneric berry::ObjectGeneric< T >::Self

Definition at line 33 of file berryObjectGeneric.h.

template<typename T>
typedef T berry::ObjectGeneric< T >::ValueType

Definition at line 33 of file berryObjectGeneric.h.

template<typename T>
typedef berry::WeakPointer<Self> berry::ObjectGeneric< T >::WeakPtr

Definition at line 33 of file berryObjectGeneric.h.

Constructor & Destructor Documentation

template<typename T>
berry::ObjectGeneric< T >::ObjectGeneric ( )
inline

Definition at line 37 of file berryObjectGeneric.h.

template<typename T>
berry::ObjectGeneric< T >::ObjectGeneric ( x)
inline

Definition at line 38 of file berryObjectGeneric.h.

template<typename T>
virtual berry::ObjectGeneric< T >::~ObjectGeneric ( )
inlinevirtual

Definition at line 41 of file berryObjectGeneric.h.

Member Function Documentation

template<typename T>
virtual void berry::ObjectGeneric< T >::Assign ( Object::ConstPointer  other)
inlinevirtual

Definition at line 77 of file berryObjectGeneric.h.

template<typename T>
virtual bool berry::ObjectGeneric< T >::Assignable ( Object::ConstPointer  other) const
inlinevirtual

Definition at line 72 of file berryObjectGeneric.h.

template<typename T>
static const char* berry::ObjectGeneric< T >::GetStaticClassName ( )
inlinestatic

Definition at line 33 of file berryObjectGeneric.h.

template<typename T>
T berry::ObjectGeneric< T >::GetValue ( ) const
inline

Definition at line 49 of file berryObjectGeneric.h.

template<typename T>
virtual std::string berry::ObjectGeneric< T >::GetValueAsString ( ) const
inlinevirtual

Definition at line 61 of file berryObjectGeneric.h.

template<typename T>
bool berry::ObjectGeneric< T >::operator== ( const Object o) const
inlineoverridevirtual

A generic comparison method. Override this method in subclasses and cast to your derived class to provide a more detailed comparison.

Reimplemented from berry::Object.

Definition at line 53 of file berryObjectGeneric.h.

template<typename T>
void berry::ObjectGeneric< T >::SetValue ( val)
inline

Definition at line 45 of file berryObjectGeneric.h.

Member Data Documentation

template<typename T>
T berry::ObjectGeneric< T >::m_Value
protected

Definition at line 89 of file berryObjectGeneric.h.


The documentation for this class was generated from the following file: