[Insight-developers] Rework of LightObject, Object, and Mutex

Luis Ibanez ibanez@cs.unc.edu
Wed, 10 Oct 2001 15:46:26 -0400


Hi,

Shouldn't the itk::Command::Execute() method be
also changed to receive an (itk::Object *) instead
of an (itk::LightObject *) ?

Thanks

Luis


------------------------------------------------------


Will Schroeder wrote:
> 
> Hi Folks-
> 
> I reworked LightObject, Object, and FastMutexLock to reduce the memory footprint for LightObject subclasses. Some of the stuff I did:
> 
> + moved m_SubjectImplementation (command/observer stuff) from LightObject to Object
> + made SimpleFastMutexLock a data member of LightObject (rather than pointer to a SimpleFastMutexLock). This required creating the separate files itkSimpleFastMutexLock.h/.cxx because of the circular includes with itkObject.
> + removed "virtual" in SimpleFastMutexLock to decrease storage (vtable)
> + Made HasObserver() a const method because I wanted to use it in the Object::PrintSelf(), which is const.
> 
> This has now been checked in. There was a fair amount of changes involved because the Command/Observer was tied into the Register()/UnRegister() methods due to DeleteEvent invocation. Please let me know if you encounter any problems.
> 
> Will
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers

-- 
Luis Ibanez                                      CB#:   7060
Research Assistan Professor                      phone: (919) 843 5436
Division of Neurosurgery                         fax:   (919) 966 6627
University of North Carolina at Chapel Hill      email:
ibanez@cs.unc.edu
Chapel Hill, NC 27599-7060                      
http://www.cs.unc.edu/~ibanez