Medical Imaging Interaction Toolkit  2024.06.00
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 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)
 
 ~ObjectGeneric () override
 
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
 

Public Attributes

 berryObjectMacro1
 
 ObjectGeneric
 

Protected Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- 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 25 of file berryObjectGeneric.h.

Member Typedef Documentation

◆ ValueType

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

Definition at line 31 of file berryObjectGeneric.h.

Constructor & Destructor Documentation

◆ ObjectGeneric() [1/2]

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

Definition at line 33 of file berryObjectGeneric.h.

◆ ObjectGeneric() [2/2]

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

Definition at line 34 of file berryObjectGeneric.h.

◆ ~ObjectGeneric()

template<typename T >
berry::ObjectGeneric< T >::~ObjectGeneric ( )
inlineoverride

Definition at line 37 of file berryObjectGeneric.h.

Member Function Documentation

◆ Assign()

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

Definition at line 73 of file berryObjectGeneric.h.

◆ Assignable()

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

Definition at line 68 of file berryObjectGeneric.h.

◆ GetValue()

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

Definition at line 45 of file berryObjectGeneric.h.

◆ GetValueAsString()

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

Definition at line 57 of file berryObjectGeneric.h.

◆ operator==()

template<typename T >
bool berry::ObjectGeneric< T >::operator== ( const Object ) 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 49 of file berryObjectGeneric.h.

◆ SetValue()

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

Definition at line 41 of file berryObjectGeneric.h.

Member Data Documentation

◆ berryObjectMacro1

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

Definition at line 29 of file berryObjectGeneric.h.

◆ m_Value

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

Definition at line 85 of file berryObjectGeneric.h.

◆ ObjectGeneric

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

Definition at line 29 of file berryObjectGeneric.h.


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