81#ifndef vtkSMPThreadLocal_h
82#define vtkSMPThreadLocal_h
104 : ThreadLocalAPI(exemplar)
116 T&
Local() {
return this->ThreadLocalAPI.Local(); }
121 size_t size() {
return this->ThreadLocalAPI.size(); }
Thread local storage for VTK objects.
vtkSMPThreadLocal()
Default constructor.
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.
vtkSMPThreadLocal(const T &exemplar)
Constructor that allows the specification of an exemplar object which is used when constructing objec...
T & Local()
This needs to be called mainly within a threaded execution path.
vtk::detail::smp::vtkSMPThreadLocalAPI< T >::iterator iterator
Subset of the standard iterator API.