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(); }
127 iterator
begin() {
return this->ThreadLocalAPI.begin(); };
133 iterator
end() {
return this->ThreadLocalAPI.end(); }
143 VTK_ABI_NAMESPACE_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...
vtkSMPThreadLocal()=default
Default constructor.
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.
iterator begin()
Returns a new iterator pointing to the beginning of the local storage container.