Action for pierced synchronization. More...
#include <piercedSync.hpp>
Public Types | |
enum | ActionInfo { INFO_POS = 0 , INFO_POS_FIRST = 0 , INFO_POS_SECOND = 1 , INFO_POS_NEXT = 1 , INFO_SIZE = 1 , INFO_COUNT = 2 } |
enum | ActionType { TYPE_UNDEFINED = -1 , TYPE_NOOP , TYPE_CLEAR , TYPE_RESERVE , TYPE_RESIZE , TYPE_SHRINK_TO_FIT , TYPE_REORDER , TYPE_APPEND , TYPE_INSERT , TYPE_OVERWRITE , TYPE_OVERWRITE_MULTIPLE , TYPE_MOVE_APPEND , TYPE_MOVE_INSERT , TYPE_MOVE_OVERWRITE , TYPE_SWAP , TYPE_PIERCE , TYPE_PIERCE_MULTIPLE } |
Public Member Functions | |
PiercedSyncAction (ActionType _type=TYPE_UNDEFINED) | |
PiercedSyncAction (const PiercedSyncAction &other) | |
void | dump (std::ostream &stream) const |
void | importData (const std::vector< std::size_t > &values) |
void | importData (std::vector< std::size_t > &&values) |
PiercedSyncAction & | operator= (const PiercedSyncAction &other) |
PiercedSyncAction & | operator= (PiercedSyncAction &&)=default |
void | restore (std::istream &stream) |
void | swap (PiercedSyncAction &other) noexcept |
Public Attributes | |
std::unique_ptr< std::vector< std::size_t > > | data |
std::array< std::size_t, INFO_COUNT > | info |
ActionType | type |
Action for pierced synchronization.
Definition at line 40 of file piercedSync.hpp.
Synchronization action info
Definition at line 69 of file piercedSync.hpp.
Synchronization action type
Definition at line 46 of file piercedSync.hpp.
bitpit::PiercedSyncAction::PiercedSyncAction | ( | ActionType | _type = TYPE_UNDEFINED | ) |
Constructor
Definition at line 41 of file piercedSync.cpp.
bitpit::PiercedSyncAction::PiercedSyncAction | ( | const PiercedSyncAction & | other | ) |
Copy constructor
Definition at line 49 of file piercedSync.cpp.
void bitpit::PiercedSyncAction::dump | ( | std::ostream & | stream | ) | const |
Dump the action.
stream | is the stream data should be written to |
Definition at line 150 of file piercedSync.cpp.
void bitpit::PiercedSyncAction::importData | ( | const std::vector< std::size_t > & | values | ) |
Import the given data.
values | are the values that will be imported |
Definition at line 110 of file piercedSync.cpp.
void bitpit::PiercedSyncAction::importData | ( | std::vector< std::size_t > && | values | ) |
Import the given data.
values | are the values that will be imported |
Definition at line 100 of file piercedSync.cpp.
PiercedSyncAction & bitpit::PiercedSyncAction::operator= | ( | const PiercedSyncAction & | other | ) |
Copy assignment operator.
Assigns new contents to the object, replacing its current contents, and modifying its size accordingly.
Definition at line 73 of file piercedSync.cpp.
void bitpit::PiercedSyncAction::restore | ( | std::istream & | stream | ) |
Restore the action.
stream | is the stream data should be read from |
Definition at line 120 of file piercedSync.cpp.
|
noexcept |
Swaps the contents.
other | is another object of the same type |
Definition at line 88 of file piercedSync.cpp.
std::unique_ptr<std::vector<std::size_t> > bitpit::PiercedSyncAction::data |
Definition at line 96 of file piercedSync.hpp.
std::array<std::size_t, INFO_COUNT> bitpit::PiercedSyncAction::info |
Definition at line 95 of file piercedSync.hpp.
ActionType bitpit::PiercedSyncAction::type |
Definition at line 94 of file piercedSync.hpp.