#include <itkMetaDataObject.h>
Inheritance diagram for itk::MetaDataObject< MetaDataObjectType >:


Classes or built in types that do not have valid copy constructors or operator= implemented will have to implement those functions by deriving from MetaDataObject<MetaDataObjectType> and redefining the copy constructor and initializing constructor and the Get/Set functions to work around those deficiencies.
The behavior of the MetaDataObject<Type>::Print() function has many plausible application dependant implementations. The default implementation prints the string "[UNKNOWN PRINT CHARACTERISTICS]" that works for all possible MetaDataObject types.
The application developer may overload the default implementation to provide a specialized Print() characteristics to produce results desirable for their application. A set of very crude Macros {NATIVE_TYPE_METADATAPRINT, ITK_OBJECT_TYPE_METADATAPRINT_1COMMA, ITK_IMAGE_TYPE_METADATAPRINT } are provided to facilitate a very simple implementation, and as an example.
Definition at line 61 of file itkMetaDataObject.h.
Public Types | |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef SmartPointer< Self > | Pointer |
| typedef MetaDataObject | Self |
| typedef MetaDataObjectBase | Superclass |
Public Member Functions | |
| virtual Pointer | CreateAnother () const |
| virtual void | Delete () |
| virtual const std::type_info & | GetMetaDataObjectTypeInfo (void) const |
| virtual const char * | GetMetaDataObjectTypeName (void) const |
| const MetaDataObjectType & | GetMetaDataObjectValue (void) const |
| virtual const char * | GetNameOfClass () const |
| virtual int | GetReferenceCount () const |
| itkFactorylessNewMacro (Self) | |
| MetaDataObject (const MetaDataObject< MetaDataObjectType > &TemplateObject) | |
| MetaDataObject (const MetaDataObjectType InitializerValue) | |
| MetaDataObject (void) | |
| void | Print (std::ostream &os, Indent indent=0) const |
| virtual void | Print (std::ostream &os) const |
| virtual void | Register () const |
| void | SetMetaDataObjectValue (const MetaDataObjectType &NewValue) |
| virtual void | SetReferenceCount (int) |
| virtual void | UnRegister () const |
| virtual | ~MetaDataObject (void) |
Static Public Member Functions | |
| static void | BreakOnError () |
Protected Member Functions | |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
Static Protected Member Functions | |
| static Pointer | New (void) |
Protected Attributes | |
| int | m_ReferenceCount |
| SimpleFastMutexLock | m_ReferenceCountLock |
| Methods invoked by virtual Print() to print information about the object *including superclasses.Typically not called by the user(use Print()*instead) but used in the hierarchical print process to combine the *output of several classes.*/virtual void PrintSelf(std voi | PrintHeader )(std::ostream &os, Indent indent) const |
|
|||||
|
Reimplemented from itk::MetaDataObjectBase. Definition at line 68 of file itkMetaDataObject.h. |
|
|||||
|
Reimplemented from itk::MetaDataObjectBase. Definition at line 67 of file itkMetaDataObject.h. |
|
|||||
|
Smart pointer typedef support. Reimplemented from itk::MetaDataObjectBase. Definition at line 65 of file itkMetaDataObject.h. |
|
|||||
|
Reimplemented from itk::MetaDataObjectBase. Definition at line 66 of file itkMetaDataObject.h. |
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|
This method is called when itkExceptionMacro executes. It allows the debugger to break on error. |
|
|
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class. Reimplemented in itk::Object. |
|
|
Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting. |
|
||||||||||
|
Reimplemented from itk::MetaDataObjectBase. |
|
||||||||||
|
Reimplemented from itk::MetaDataObjectBase. |
|
||||||||||
|
Referenced by itk::ExposeMetaData(). |
|
|||||||||
|
Run-time type information (and related methods). Reimplemented from itk::MetaDataObjectBase. |
|
|
Gets the reference count on this object. Definition at line 98 of file itkLightObject.h. |
|
||||||||||
|
Method for creation through the object factory. |
|
|
Method for creation through the object factory. Reimplemented from itk::LightObject. |
|
||||||||||||
|
Cause the object to print itself out. |
|
||||||||||
|
Defines the default behavior for printing out this element
Reimplemented from itk::MetaDataObjectBase. |
|
||||||||||||
|
|
|
|
Increase the reference count (mark as used by another object). Reimplemented in itk::Object. |
|
||||||||||
|
Referenced by itk::EncapsulateMetaData(). |
|
|
Sets the reference count on this object. This is a dangerous method, use it with care. Reimplemented in itk::Object. |
|
|
Decrease the reference count (release by another object). Reimplemented in itk::Object. |
|
|
Number of uses of this object by other objects. Definition at line 119 of file itkLightObject.h. |
|
|
Mutex lock to protect modification to the reference count Definition at line 122 of file itkLightObject.h. |
|
|
|
1.4.2 written by Dimitri van Heesch,
© 1997-2000