Kernel of the pierced vector. More...
#include <piercedVectorStorage.hpp>


Public Member Functions | |
__PVS_REFERENCE__ | at (id_t id) |
__PVS_CONST_REFERENCE__ | at (id_t id) const |
__PVS_REFERENCE__ | back () |
__PVS_CONST_REFERENCE__ | back () const |
__PVS_REFERENCE__ | front () |
__PVS_CONST_REFERENCE__ | front () const |
const PiercedVectorKernel< id_t > * | getKernel () const |
__PVS_REFERENCE__ | operator[] (id_t id) |
__PVS_CONST_REFERENCE__ | operator[] (id_t id) const |
__PVS_REFERENCE__ | rawAt (std::size_t pos) |
__PVS_CONST_REFERENCE__ | rawAt (std::size_t pos) const |
void | setDynamicKernel (const PiercedVectorKernel< id_t > *kernel, PiercedSyncMaster::SyncMode syncMode) |
void | setStaticKernel (const PiercedVectorKernel< id_t > *kernel) |
![]() | |
PiercedStorage () | |
PiercedStorage (const PiercedStorage< value_t, long > &other) | |
PiercedStorage (const PiercedStorage< value_t, long > &other) | |
PiercedStorage (const PiercedStorage< value_t, long > &other, const PiercedKernel< long > *kernel) | |
PiercedStorage (const PiercedStorage< value_t, long > &other, const PiercedKernel< long > *kernel) | |
PiercedStorage (const PiercedStorage< value_t, long > &other, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
PiercedStorage (const PiercedStorage< value_t, long > &other, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
PiercedStorage (PiercedStorage< value_t, long > &&other) | |
PiercedStorage (PiercedStorage< value_t, long > &&other) | |
PiercedStorage (PiercedStorage< value_t, long > &&other, const PiercedKernel< long > *kernel) | |
PiercedStorage (PiercedStorage< value_t, long > &&other, const PiercedKernel< long > *kernel) | |
PiercedStorage (PiercedStorage< value_t, long > &&other, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
PiercedStorage (PiercedStorage< value_t, long > &&other, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
PiercedStorage (std::size_t nFields) | |
PiercedStorage (std::size_t nFields) | |
PiercedStorage (std::size_t nFields, const PiercedKernel< long > *kernel) | |
PiercedStorage (std::size_t nFields, const PiercedKernel< long > *kernel) | |
PiercedStorage (std::size_t nFields, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
PiercedStorage (std::size_t nFields, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
__PS_REFERENCE__ | at (long id, std::size_t k=0) |
__PS_REFERENCE__ | at (long id, std::size_t k=0) |
__PS_CONST_REFERENCE__ | at (long id, std::size_t k=0) const |
__PS_CONST_REFERENCE__ | at (long id, std::size_t k=0) const |
__PS_REFERENCE__ | back (std::size_t k=0) |
__PS_REFERENCE__ | back (std::size_t k=0) |
__PS_CONST_REFERENCE__ | back (std::size_t k=0) const |
__PS_CONST_REFERENCE__ | back (std::size_t k=0) const |
const_iterator | begin () const noexcept |
const_iterator | begin () const noexcept |
iterator | begin () noexcept |
iterator | begin () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | cend () const noexcept |
void | copy (long id, std::size_t nFields, std::size_t offset, value_t *values) const |
void | copy (long id, std::size_t nFields, std::size_t offset, value_t *values) const |
void | copy (long id, value_t *values) const |
void | copy (long id, value_t *values) const |
__PS_POINTER__ | data () |
__PS_POINTER__ | data () |
__PS_CONST_POINTER__ | data () const |
__PS_CONST_POINTER__ | data () const |
__PS_POINTER__ | data (long id, std::size_t offset=0) |
__PS_POINTER__ | data (long id, std::size_t offset=0) |
__PS_CONST_POINTER__ | data (long id, std::size_t offset=0) const |
__PS_CONST_POINTER__ | data (long id, std::size_t offset=0) const |
void | dump (std::ostream &stream) const |
void | dump (std::ostream &stream) const |
const_iterator | end () const noexcept |
const_iterator | end () const noexcept |
iterator | end () noexcept |
iterator | end () noexcept |
void | fill (const value_t &value) |
void | fill (const value_t &value) |
const_iterator | find (const long &id) const noexcept |
const_iterator | find (const long &id) const noexcept |
iterator | find (const long &id) noexcept |
iterator | find (const long &id) noexcept |
__PS_REFERENCE__ | front (std::size_t k=0) |
__PS_REFERENCE__ | front (std::size_t k=0) |
__PS_CONST_REFERENCE__ | front (std::size_t k=0) const |
__PS_CONST_REFERENCE__ | front (std::size_t k=0) const |
std::size_t | getFieldCount () const |
std::size_t | getFieldCount () const |
PiercedStorage & | operator= (const PiercedStorage &other) |
PiercedStorage & | operator= (const PiercedStorage &other) |
PiercedStorage & | operator= (PiercedStorage &&other) |
PiercedStorage & | operator= (PiercedStorage &&other) |
__PS_REFERENCE__ | operator[] (long id) |
__PS_REFERENCE__ | operator[] (long id) |
__PS_CONST_REFERENCE__ | operator[] (long id) const |
__PS_CONST_REFERENCE__ | operator[] (long id) const |
__PS_REFERENCE__ | rawAt (std::size_t pos, std::size_t offset=0) |
__PS_REFERENCE__ | rawAt (std::size_t pos, std::size_t offset=0) |
__PS_CONST_REFERENCE__ | rawAt (std::size_t pos, std::size_t offset=0) const |
__PS_CONST_REFERENCE__ | rawAt (std::size_t pos, std::size_t offset=0) const |
raw_const_iterator | rawBegin () const noexcept |
raw_const_iterator | rawBegin () const noexcept |
raw_iterator | rawBegin () noexcept |
raw_iterator | rawBegin () noexcept |
raw_const_iterator | rawCbegin () const noexcept |
raw_const_iterator | rawCbegin () const noexcept |
raw_const_iterator | rawCend () const noexcept |
raw_const_iterator | rawCend () const noexcept |
void | rawCopy (std::size_t pos, std::size_t nFields, std::size_t offset, value_t *values) const |
void | rawCopy (std::size_t pos, std::size_t nFields, std::size_t offset, value_t *values) const |
void | rawCopy (std::size_t pos, value_t *values) const |
void | rawCopy (std::size_t pos, value_t *values) const |
__PS_POINTER__ | rawData (std::size_t pos, std::size_t offset=0) |
__PS_POINTER__ | rawData (std::size_t pos, std::size_t offset=0) |
__PS_CONST_POINTER__ | rawData (std::size_t pos, std::size_t offset=0) const |
__PS_CONST_POINTER__ | rawData (std::size_t pos, std::size_t offset=0) const |
raw_const_iterator | rawEnd () const noexcept |
raw_const_iterator | rawEnd () const noexcept |
raw_iterator | rawEnd () noexcept |
raw_iterator | rawEnd () noexcept |
const_iterator | rawFind (std::size_t pos) const noexcept |
const_iterator | rawFind (std::size_t pos) const noexcept |
iterator | rawFind (std::size_t pos) noexcept |
iterator | rawFind (std::size_t pos) noexcept |
void | rawSet (std::size_t pos, const value_t &value) |
void | rawSet (std::size_t pos, const value_t &value) |
void | rawSet (std::size_t pos, const value_t *values) |
void | rawSet (std::size_t pos, const value_t *values) |
void | rawSet (std::size_t pos, std::size_t k, const value_t &value) |
void | rawSet (std::size_t pos, std::size_t k, const value_t &value) |
void | rawSet (std::size_t pos, std::size_t nFields, std::size_t offset, const value_t *values) |
void | rawSet (std::size_t pos, std::size_t nFields, std::size_t offset, const value_t *values) |
void | restore (std::istream &stream) |
void | restore (std::istream &stream) |
void | set (long id, const value_t &value) |
void | set (long id, const value_t &value) |
void | set (long id, const value_t *values) |
void | set (long id, const value_t *values) |
void | set (long id, std::size_t k, const value_t &value) |
void | set (long id, std::size_t k, const value_t &value) |
void | set (long id, std::size_t nFields, std::size_t offset, const value_t *values) |
void | set (long id, std::size_t nFields, std::size_t offset, const value_t *values) |
void | swap (PiercedStorage &other) noexcept |
void | swap (PiercedStorage &other) noexcept |
![]() | |
virtual | ~PiercedStorageSyncSlave () |
const PiercedKernel< long > * | getKernel () const |
KernelType | getKernelType () const |
PiercedSyncMaster::SyncMode | getSyncMode () const |
void | setDynamicKernel (const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) |
void | setStaticKernel (const PiercedKernel< long > *kernel) |
void | swap (PiercedStorageSyncSlave< long > &other) noexcept |
void | unsetKernel (bool release=true) |
Additional Inherited Members | |
![]() | |
typedef PiercedStorageIterator< const value_t, long > | const_iterator |
typedef container_t::const_pointer | const_pointer |
typedef PiercedStorageRange< const value_t, long > | const_range |
typedef container_t::const_reference | const_reference |
typedef std::vector< value_t > | container_t |
using | EnableIfHasInitialize |
typedef Kernel< long >::id_type | id_type |
typedef PiercedStorageIterator< value_t, long > | iterator |
using | Kernel |
typedef Kernel< long > | kernel_t |
typedef PiercedStorageSyncSlave< long >::KernelType | KernelType |
typedef container_t::pointer | pointer |
typedef PiercedStorageRange< value_t, long > | range |
typedef std::vector< value_t >::const_iterator | raw_const_iterator |
typedef std::vector< value_t >::iterator | raw_iterator |
typedef container_t::reference | reference |
typedef value_t | value_type |
![]() | |
typedef Kernel< long >::id_type | id_type |
using | Kernel |
typedef Kernel< long > | kernel_t |
enum | KernelType |
![]() | |
static constexpr bool | has_dump () |
static constexpr bool | has_dump () |
static constexpr bool | has_initialize () |
static constexpr bool | has_initialize () |
static constexpr bool | has_restore () |
static constexpr bool | has_restore () |
![]() | |
void | _postSetDynamicKernel () override |
void | _postSetDynamicKernel () override |
void | _postSetStaticKernel () override |
void | _postSetStaticKernel () override |
void | _postUnsetKernel (bool release=true) override |
void | _postUnsetKernel (bool release=true) override |
void | commitSyncAction (const PiercedSyncAction &action) override |
void | commitSyncAction (const PiercedSyncAction &action) override |
void | rawClear (bool release) |
void | rawClear (bool release) |
void | rawEmplace (std::size_t pos, Args &&... args) |
void | rawEmplace (std::size_t pos, Args &&... args) |
void | rawEmplace (std::size_t pos, bool value=false) |
void | rawEmplace (std::size_t pos, bool value=false) |
void | rawEmplaceBack (Args &&... args) |
void | rawEmplaceBack (Args &&... args) |
void | rawEmplaceBack (bool value=false) |
void | rawEmplaceBack (bool value=false) |
void | rawEmreplace (std::size_t pos, Args &&... args) |
void | rawEmreplace (std::size_t pos, Args &&... args) |
void | rawErase (std::size_t pos, std::size_t n) |
void | rawErase (std::size_t pos, std::size_t n) |
void | rawInitialize (std::size_t pos, Args &&... args) |
void | rawInitialize (std::size_t pos, Args &&... args) |
void | rawInitialize (std::size_t pos, std::size_t k, Args &&... args) |
void | rawInitialize (std::size_t pos, std::size_t k, Args &&... args) |
void | rawInsert (std::size_t pos, std::size_t n, const value_t &value) |
void | rawInsert (std::size_t pos, std::size_t n, const value_t &value) |
void | rawPushBack (const value_t &value) |
void | rawPushBack (const value_t &value) |
void | rawReorder (const std::vector< std::size_t > &permutations) |
void | rawReorder (const std::vector< std::size_t > &permutations) |
void | rawReserve (std::size_t n) |
void | rawReserve (std::size_t n) |
void | rawResize (std::size_t n, const value_t &value=value_t()) |
void | rawResize (std::size_t n, const value_t &value=value_t()) |
void | rawShrinkToFit () |
void | rawShrinkToFit () |
std::size_t | rawSize () const |
std::size_t | rawSize () const |
void | rawSwap (std::size_t pos_first, std::size_t pos_second) |
void | rawSwap (std::size_t pos_first, std::size_t pos_second) |
void | rawSwap (std::size_t pos_first, std::size_t pos_second) |
void | rawSwap (std::size_t pos_first, std::size_t pos_second) |
![]() | |
PiercedStorageSyncSlave () | |
PiercedStorageSyncSlave (const PiercedKernel< long > *kernel) | |
PiercedStorageSyncSlave (const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
PiercedStorageSyncSlave (const PiercedStorageSyncSlave< long > &other) | |
PiercedStorageSyncSlave (const PiercedStorageSyncSlave< long > &other, const PiercedKernel< long > *kernel) | |
PiercedStorageSyncSlave (const PiercedStorageSyncSlave< long > &other, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
PiercedStorageSyncSlave (PiercedStorageSyncSlave< long > &&other) | |
PiercedStorageSyncSlave (PiercedStorageSyncSlave< long > &&other, const PiercedKernel< long > *kernel) | |
PiercedStorageSyncSlave (PiercedStorageSyncSlave< long > &&other, const PiercedKernel< long > *kernel, PiercedSyncMaster::SyncMode syncMode) | |
void | detachKernel () |
![]() | |
PiercedSyncSlave () | |
void | swap (PiercedSyncSlave &other) noexcept |
![]() | |
const PiercedKernel< long > * | m_kernel |
KernelType | m_kernelType |
Detailed Description
class bitpit::PiercedVectorStorage< value_t, id_t >
Kernel of the pierced vector.
Definition at line 56 of file piercedVectorStorage.hpp.
Member Function Documentation
◆ at() [1/2]
__PVS_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::at | ( | id_t | id | ) |
Returns a reference to the element with the specified id.
If there is no element with the specified id, an exception is thrown.
- Parameters
-
id is the id of the element
- Returns
- A reference to the element with the specified id.
Definition at line 91 of file piercedVectorStorage.tpp.
◆ at() [2/2]
__PVS_CONST_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::at | ( | id_t | id | ) | const |
Returns a constant reference to the element with the specified id.
If there is no element with the specified id, an exception is thrown.
- Parameters
-
id is the id of the element
- Returns
- A constant reference to the element with the specified id.
Definition at line 105 of file piercedVectorStorage.tpp.
◆ back() [1/2]
__PVS_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::back | ( | ) |
Returns a reference to the last element of the container.
If the container is empty, an exception is thrown.
- Returns
- A reference to the last element of the container.
Definition at line 64 of file piercedVectorStorage.tpp.
◆ back() [2/2]
__PVS_CONST_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::back | ( | ) | const |
Returns a constant reference to the last element of the container.
If the container is empty, an exception is thrown.
- Returns
- A constant reference to the last element of the container.
Definition at line 77 of file piercedVectorStorage.tpp.
◆ front() [1/2]
__PVS_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::front | ( | ) |
Returns a reference to the first element of the container.
If the container is empty, an exception is thrown.
- Returns
- A reference to the first element of the container.
Definition at line 38 of file piercedVectorStorage.tpp.
◆ front() [2/2]
__PVS_CONST_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::front | ( | ) | const |
Returns a constant reference to the first element of the container.
If the container is empty, an exception is thrown.
- Returns
- A constant reference to the first element of the container.
Definition at line 51 of file piercedVectorStorage.tpp.
◆ getKernel()
const PiercedVectorKernel< id_t > * bitpit::PiercedVectorStorage< value_t, id_t >::getKernel | ( | ) | const |
Gets a constant reference to the kernel of the storage
- Returns
- A constant reference to the kernel of the storage.
Definition at line 196 of file piercedVectorStorage.tpp.
◆ operator[]() [1/2]
__PVS_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::operator[] | ( | id_t | id | ) |
Returns a reference to the element with the specified id.
If there is no element with the specified id, an exception is thrown.
- Parameters
-
id is the id of the element
- Returns
- A reference to the element with the specified id.
Definition at line 157 of file piercedVectorStorage.tpp.
◆ operator[]() [2/2]
__PVS_CONST_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::operator[] | ( | id_t | id | ) | const |
Returns a constant reference to the element with the specified id.
If there is no element with the specified id, an exception is thrown.
- Parameters
-
id is the id of the element
- Returns
- A constant reference to the element with the specified id.
Definition at line 143 of file piercedVectorStorage.tpp.
◆ rawAt() [1/2]
__PVS_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::rawAt | ( | std::size_t | pos | ) |
Returns a reference to the element at the specified position.
- Parameters
-
pos the position of the element
- Returns
- A reference to the element in the specified position.
Definition at line 117 of file piercedVectorStorage.tpp.
◆ rawAt() [2/2]
__PVS_CONST_REFERENCE__ bitpit::PiercedVectorStorage< value_t, id_t >::rawAt | ( | std::size_t | pos | ) | const |
Returns a constant reference to the element at the specified position.
- Parameters
-
pos the position of the element
- Returns
- A constant reference to the element in the specified position.
Definition at line 129 of file piercedVectorStorage.tpp.
◆ setDynamicKernel()
void bitpit::PiercedVectorStorage< value_t, id_t >::setDynamicKernel | ( | const PiercedVectorKernel< id_t > * | kernel, |
PiercedSyncMaster::SyncMode | syncMode ) |
Sets the kernel that will be used by the storage.
The storage will dynamically synchronized with the kernel.
- Parameters
-
kernel is the kernel that will be set syncMode is the synchronization mode that will be used for the storage
Definition at line 185 of file piercedVectorStorage.tpp.
◆ setStaticKernel()
void bitpit::PiercedVectorStorage< value_t, id_t >::setStaticKernel | ( | const PiercedVectorKernel< id_t > * | kernel | ) |
Sets the kernel that will be used by the storage
The storage will NOT be synchronized with the kernel. Every change to the kernel can potentially invalidate the link between kernel and storage.
- Parameters
-
kernel is the kernel that will be set
Definition at line 171 of file piercedVectorStorage.tpp.
The documentation for this class was generated from the following files:
- src/containers/piercedVectorStorage.hpp
- src/containers/piercedVectorStorage.tpp
