77#ifndef vtkSMPThreadLocalObject_h
78#define vtkSMPThreadLocalObject_h
83class vtkSMPThreadLocalObject
91 void operator=(
const vtkSMPThreadLocalObject&) =
delete;
112 while (iter != this->
end())
130 T*& vtkobject = this->Internal.Local();
135 vtkobject = this->Exemplar->NewInstance();
139 vtkobject = T::SafeDownCast(T::New());
149 size_t size()
const {
return this->Internal.size(); }
186 friend class vtkSMPThreadLocalObject<T>;
192 iter.Iter = this->Internal.begin();
199 iter.Iter = this->Internal.end();
Subset of the standard iterator API.
bool operator!=(const iterator &other)
bool operator==(const iterator &other)
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.
Thread local storage for VTK objects.
vtk::detail::smp::vtkSMPThreadLocalAPI< T >::iterator iterator
Subset of the standard iterator API.