77#ifndef vtkSMPThreadLocalObject_h
78#define vtkSMPThreadLocalObject_h
80#include "vtkSMPThreadLocal.h"
85 typedef vtkSMPThreadLocal<T*> TLS;
86 typedef typename vtkSMPThreadLocal<T*>::iterator TLSIter;
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();
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.