72 #ifndef vtkSMPThreadLocal_h
73 #define vtkSMPThreadLocal_h
77 VTK_ABI_NAMESPACE_BEGIN
93 : ThreadLocalAPI(exemplar)
105 T&
Local() {
return this->ThreadLocalAPI.Local(); }
110 size_t size() {
return this->ThreadLocalAPI.size(); }
143 VTK_ABI_NAMESPACE_END
Thread local storage for VTK objects.
vtkSMPThreadLocal()=default
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.
T & Local()
This needs to be called mainly within a threaded execution path.
vtkSMPThreadLocal(const T &exemplar)
Constructor that allows the specification of an exemplar object which is used when constructing objec...
vtk::detail::smp::vtkSMPThreadLocalAPI< T >::iterator iterator
Subset of the standard iterator API.