Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
bitpit::PiercedSyncAction Class Reference

Action for pierced synchronization. More...

#include <piercedSync.hpp>

Inheritance diagram for bitpit::PiercedSyncAction:
Inheritance graph
[legend]

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)
 
PiercedSyncActionoperator= (const PiercedSyncAction &other)
 
PiercedSyncActionoperator= (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
 

Detailed Description

Action for pierced synchronization.

Definition at line 40 of file piercedSync.hpp.

Member Enumeration Documentation

◆ ActionInfo

Synchronization action info

Definition at line 69 of file piercedSync.hpp.

◆ ActionType

Synchronization action type

Definition at line 46 of file piercedSync.hpp.

Constructor & Destructor Documentation

◆ PiercedSyncAction() [1/2]

bitpit::PiercedSyncAction::PiercedSyncAction ( ActionType _type = TYPE_UNDEFINED)

Constructor

Definition at line 41 of file piercedSync.cpp.

◆ PiercedSyncAction() [2/2]

bitpit::PiercedSyncAction::PiercedSyncAction ( const PiercedSyncAction & other)

Copy constructor

Definition at line 49 of file piercedSync.cpp.

Member Function Documentation

◆ dump()

void bitpit::PiercedSyncAction::dump ( std::ostream & stream) const

Dump the action.

Parameters
streamis the stream data should be written to

Definition at line 150 of file piercedSync.cpp.

◆ importData() [1/2]

void bitpit::PiercedSyncAction::importData ( const std::vector< std::size_t > & values)

Import the given data.

Parameters
valuesare the values that will be imported

Definition at line 110 of file piercedSync.cpp.

◆ importData() [2/2]

void bitpit::PiercedSyncAction::importData ( std::vector< std::size_t > && values)

Import the given data.

Parameters
valuesare the values that will be imported

Definition at line 100 of file piercedSync.cpp.

◆ operator=()

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.

◆ restore()

void bitpit::PiercedSyncAction::restore ( std::istream & stream)

Restore the action.

Parameters
streamis the stream data should be read from

Definition at line 120 of file piercedSync.cpp.

◆ swap()

void bitpit::PiercedSyncAction::swap ( PiercedSyncAction & other)
noexcept

Swaps the contents.

Parameters
otheris another object of the same type

Definition at line 88 of file piercedSync.cpp.

Member Data Documentation

◆ data

std::unique_ptr<std::vector<std::size_t> > bitpit::PiercedSyncAction::data

Definition at line 96 of file piercedSync.hpp.

◆ info

std::array<std::size_t, INFO_COUNT> bitpit::PiercedSyncAction::info

Definition at line 95 of file piercedSync.hpp.

◆ type

ActionType bitpit::PiercedSyncAction::type

Definition at line 94 of file piercedSync.hpp.


The documentation for this class was generated from the following files:
--- layout: doxygen_footer ---