12 #ifndef CD_KMCSingleStateImplem_H
13 #define CD_KMCSingleStateImplem_H
17 #include <CD_NamespaceHeader.H>
22 m_state.resize(a_numSpecies);
35 for (
const auto& p : m_state) {
50 CH_assert(a_idx < m_state.size());
52 return m_state[a_idx];
59 CH_assert(a_idx < m_state.size());
61 return m_state[a_idx];
65 inline typename KMCSingleState<T>::State&
72 inline const typename KMCSingleState<T>::State&
78 #include <CD_NamespaceFooter.H>
Declaration of a simple state vector for running Kinetic Monte Carlo for plasma problems.
T & operator[](const size_t a_idx) noexcept
Get the population of the input index.
Definition: CD_KMCSingleStateImplem.H:48
virtual ~KMCSingleState()
Destructor.
Definition: CD_KMCSingleStateImplem.H:26
KMCSingleState()=delete
Disallowed weak construction.
State & getState() noexcept
Get modifiable state.
Definition: CD_KMCSingleStateImplem.H:66
bool isValidState() const noexcept
Check if state is a valid state.
Definition: CD_KMCSingleStateImplem.H:31