![]() |
NEURON
|
A non-owning permutation-stable identifier for a entry in a container. More...
#include <soa_identifier.hpp>
Public Types | |
using | storage_type = Storage |
Private Attributes | |
Storage * | m_storage |
Additional Inherited Members | |
![]() | |
non_owning_identifier_without_container (std::shared_ptr< std::size_t > ptr) | |
void | set_current_row (std::size_t row) |
non_owning_identifier_without_container (size_t row) | |
A non-owning permutation-stable identifier for a entry in a container.
Storage | The type of the referred-to container. This might be a type derived from neuron::container::soa<...>, or a plain container like std::vector<T> in the case of neuron::container::data_handle<T>. |
A (non-owning) handle to that row combines an instance of that class with an interface that is specific to Storage. non_owning_identifier<Storage> wraps non_owning_identifier_without_container so as to provide the same interface as owning_identifier<Storage>.
Definition at line 32 of file soa_identifier.hpp.
using neuron::container::non_owning_identifier< Storage >::storage_type = Storage |
Definition at line 53 of file soa_identifier.hpp.
|
inline |
Definition at line 33 of file soa_identifier.hpp.
|
inline |
Return a reference to the container in which this entry lives.
Definition at line 40 of file soa_identifier.hpp.
|
inline |
Return a const reference to the container in which this entry lives.
Definition at line 48 of file soa_identifier.hpp.
|
private |
Definition at line 56 of file soa_identifier.hpp.