77 #ifndef vtkSMPThreadLocalObject_h 78 #define vtkSMPThreadLocalObject_h 80 #include "vtkSMPThreadLocal.h" 85 typedef vtkSMPThreadLocal<T*> TLS;
86 typedef typename vtkSMPThreadLocal<T*>::iterator TLSIter;
107 iterator iter = this->
begin();
108 while (iter != this->
end())
126 T*& vtkobject = this->Internal.Local();
131 vtkobject = this->Exemplar->NewInstance();
135 vtkobject = T::SafeDownCast(T::New());
147 return this->Internal.size();
176 return this->Iter == other.Iter;
181 return this->Iter != other.Iter;
203 iter.Iter = this->Internal.begin();
210 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.