|
gramods
|
Simple, single value synchronizeable data container, without support for pointers or types containing pointers. More...
#include <SyncSData.hh>


Public Member Functions | |
| SyncSData () | |
| Initializes without specifying value. More... | |
| SyncSData (TYPE val) | |
| Initializes the SyncSData to the specified value. More... | |
| SyncSData (SyncSData< TYPE > &&s) | |
| operator TYPE () const | |
| Retrieves the front value of the container. More... | |
| TYPE | operator* () const |
| Retrieves the front value of the container. More... | |
| SyncSData< TYPE > & | operator= (TYPE val) |
| Sets the back value of the container and immediately sends it to the back value of connected peers. More... | |
Protected Member Functions | |
| void | encode (std::vector< char > &d) override |
| Encodes the back data of the container into the specified vector, using vector indices 1-N and leaving the zeroth cell empty. More... | |
| void | decode (std::vector< char > d) override |
| Decodes the specified vector into the back data of the container, using vector indices 1-N. More... | |
| void | update () override |
| Copies the back value to the front. More... | |
Protected Member Functions inherited from gramods::gmNetwork::SyncData | |
| void | pushValue () |
| Called by sub classes when the value has been set, to push the value to peers. More... | |
Simple, single value synchronizeable data container, without support for pointers or types containing pointers.
|
inline |
Initializes without specifying value.
|
inline |
Initializes the SyncSData to the specified value.
|
inlineoverrideprotectedvirtual |
Decodes the specified vector into the back data of the container, using vector indices 1-N.
Implements gramods::gmNetwork::SyncData.
|
inlineoverrideprotectedvirtual |
Encodes the back data of the container into the specified vector, using vector indices 1-N and leaving the zeroth cell empty.
Implements gramods::gmNetwork::SyncData.
|
inline |
Retrieves the front value of the container.
|
inline |
Retrieves the front value of the container.
|
inline |
Sets the back value of the container and immediately sends it to the back value of connected peers.
|
inlineoverrideprotectedvirtual |
Copies the back value to the front.
Implements gramods::gmNetwork::SyncData.