65#ifndef vtkSMPThreadLocalObject_h
66#define vtkSMPThreadLocalObject_h
70VTK_ABI_NAMESPACE_BEGIN
101 while (iter != this->
end())
119 T*& vtkobject = this->Internal.
Local();
124 vtkobject = this->Exemplar->NewInstance();
128 vtkobject = T::SafeDownCast(T::New());
138 size_t size()
const {
return this->Internal.
size(); }
181 iter.Iter = this->Internal.
begin();
188 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.
Thread local storage for VTK objects.
iterator end()
Returns a new iterator pointing to past the end of the local storage container.
iterator begin()
Returns a new iterator pointing to the beginning of the local storage container.
size_t size()
Return the number of thread local objects that have been initialized.
T & Local()
This needs to be called mainly within a threaded execution path.