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