Wildmeshing Toolkit
PerThreadAttributeScopeStacks.hpp
Go to the documentation of this file.
1
#pragma once
2
3
4
#include "
internal/AttributeTransactionStack.hpp
"
5
namespace
wmtk::attribute
{
6
template
<
typename
T>
7
class
PerThreadAttributeScopeStacks
8
{
9
public
:
10
PerThreadAttributeScopeStacks
() =
default
;
11
PerThreadAttributeScopeStacks
(
PerThreadAttributeScopeStacks
&&) =
default
;
12
PerThreadAttributeScopeStacks
&
operator=
(
PerThreadAttributeScopeStacks
&&) =
default
;
13
internal::AttributeTransactionStack<T>
&
local
();
14
const
internal::AttributeTransactionStack<T>
&
local
()
const
;
15
16
private
:
17
// single stack so far
18
mutable
internal::AttributeTransactionStack<T>
m_stack
;
19
};
20
21
22
template
<
typename
T>
23
inline
internal::AttributeTransactionStack<T>
&
PerThreadAttributeScopeStacks<T>::local
()
24
{
25
return
m_stack;
26
}
27
template
<
typename
T>
28
inline
const
internal::AttributeTransactionStack<T>
&
PerThreadAttributeScopeStacks<T>::local
()
const
29
{
30
return
m_stack;
31
}
32
}
// namespace wmtk::attribute
AttributeTransactionStack.hpp
wmtk::attribute::PerThreadAttributeScopeStacks
Definition:
PerThreadAttributeScopeStacks.hpp:8
wmtk::attribute::PerThreadAttributeScopeStacks::PerThreadAttributeScopeStacks
PerThreadAttributeScopeStacks(PerThreadAttributeScopeStacks &&)=default
wmtk::attribute::PerThreadAttributeScopeStacks::m_stack
internal::AttributeTransactionStack< T > m_stack
Definition:
PerThreadAttributeScopeStacks.hpp:18
wmtk::attribute::PerThreadAttributeScopeStacks::PerThreadAttributeScopeStacks
PerThreadAttributeScopeStacks()=default
wmtk::attribute::PerThreadAttributeScopeStacks::operator=
PerThreadAttributeScopeStacks & operator=(PerThreadAttributeScopeStacks &&)=default
wmtk::attribute::PerThreadAttributeScopeStacks::local
internal::AttributeTransactionStack< T > & local()
Definition:
PerThreadAttributeScopeStacks.hpp:23
wmtk::attribute::internal::AttributeTransactionStack
Definition:
AttributeTransactionStack.hpp:17
wmtk::attribute
Definition:
Accessor.hpp:17
src
wmtk
attribute
PerThreadAttributeScopeStacks.hpp
Generated by
1.9.1