77 #ifndef vtkSMPThreadLocalObject_h 78 #define vtkSMPThreadLocalObject_h 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.
bool operator==(const iterator &other)
size_t size() const
Return the number of thread local objects that have been initialized.
virtual ~vtkSMPThreadLocalObject()
vtkSMPThreadLocalObject()
Default constructor.
T *& Local()
Returns an object local to the current thread.