74 #ifndef vtkSMPThreadLocalObject_h
75 #define vtkSMPThreadLocalObject_h
77 #include "vtkSMPThreadLocal.h"
82 typedef vtkSMPThreadLocal<T*> TLS;
83 typedef typename vtkSMPThreadLocal<T*>::iterator TLSIter;
109 while (iter != this->
end())
127 T*& vtkobject = this->Internal.Local();
132 vtkobject = this->Exemplar->NewInstance();
136 vtkobject = T::SafeDownCast(T::New());
146 size_t size()
const {
return this->Internal.size(); }
189 iter.Iter = this->Internal.begin();
196 iter.Iter = this->Internal.end();
Subset of the standard iterator API.
bool operator!=(const iterator &other)
bool operator==(const iterator &other)
Thread local storage for VTK objects.
size_t size() const
Return the number of thread local objects that have been initialized.
virtual ~vtkSMPThreadLocalObject()
vtkSMPThreadLocalObject(T *const &exemplar)
T *& Local()
Returns an object local to the current thread.
vtkSMPThreadLocalObject()
Default constructor.