84 #ifndef vtkSMPThreadLocal_h
85 #define vtkSMPThreadLocal_h
107 : ThreadLocalAPI(exemplar)
119 T&
Local() {
return this->ThreadLocalAPI.Local(); }
124 size_t size() {
return this->ThreadLocalAPI.size(); }
141 iterator
begin() {
return this->ThreadLocalAPI.begin(); };
147 iterator
end() {
return this->ThreadLocalAPI.end(); }
T & Local()
This needs to be called mainly within a threaded execution path.
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...
vtk::detail::smp::vtkSMPThreadLocalAPI< T >::iterator iterator
Subset of the standard iterator API.
iterator end()
Returns a new iterator pointing to past the end of the local storage container.
Thread local storage for VTK objects.
vtkSMPThreadLocal()
Default constructor.
iterator begin()
Returns a new iterator pointing to the beginning of the local storage container.