Derecho  0.9
Distributed systems toolkit for RDMA
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IntegerWithDelta Class Reference
Inheritance diagram for IntegerWithDelta:
Inheritance graph
[legend]
Collaboration diagram for IntegerWithDelta:
Collaboration graph
[legend]

Public Member Functions

 IntegerWithDelta (int v)
 
 IntegerWithDelta ()
 
int add (int op)
 
int sub (int op)
 
virtual void finalizeCurrentDelta (const DeltaFinalizer &dp)
 
virtual void applyDelta (char const *const pdat)
 
virtual const std::string to_string ()
 
 DEFAULT_SERIALIZATION_SUPPORT (IntegerWithDelta, value)
 
- Public Member Functions inherited from mutils::ByteRepresentable
virtual std::size_t to_bytes (char *v) const =0
 Write this class's marshalled representation into the array found at v. More...
 
virtual void post_object (const std::function< void(char const *const, std::size_t)> &) const =0
 Pass a pointer to a buffer containing this class's marshalled representation into the function f. More...
 
virtual std::size_t bytes_size () const =0
 the size of the marshalled representation of this object. More...
 
virtual ~ByteRepresentable ()
 

Static Public Member Functions

static std::unique_ptr< IntegerWithDeltacreate (mutils::DeserializationManager *dm)
 

Public Attributes

int value
 
int delta
 

Additional Inherited Members

- Static Private Member Functions inherited from persistent::IDeltaObjectFactory< IntegerWithDelta >
static std::unique_ptr< IntegerWithDeltacreate (mutils::DeserializationManager *dm)
 

Detailed Description

Definition at line 80 of file test.cpp.

Constructor & Destructor Documentation

◆ IntegerWithDelta() [1/2]

IntegerWithDelta::IntegerWithDelta ( int  v)
inline

Definition at line 84 of file test.cpp.

◆ IntegerWithDelta() [2/2]

IntegerWithDelta::IntegerWithDelta ( )
inline

Definition at line 85 of file test.cpp.

Member Function Documentation

◆ add()

int IntegerWithDelta::add ( int  op)
inline

Definition at line 86 of file test.cpp.

◆ applyDelta()

virtual void IntegerWithDelta::applyDelta ( char const *const  pdat)
inlinevirtual

Implements persistent::IDeltaSupport< IntegerWithDelta >.

Definition at line 102 of file test.cpp.

◆ create()

static std::unique_ptr<IntegerWithDelta> IntegerWithDelta::create ( mutils::DeserializationManager dm)
inlinestatic

Definition at line 106 of file test.cpp.

◆ DEFAULT_SERIALIZATION_SUPPORT()

IntegerWithDelta::DEFAULT_SERIALIZATION_SUPPORT ( IntegerWithDelta  ,
value   
)

◆ finalizeCurrentDelta()

virtual void IntegerWithDelta::finalizeCurrentDelta ( const DeltaFinalizer dp)
inlinevirtual

Implements persistent::IDeltaSupport< IntegerWithDelta >.

Definition at line 96 of file test.cpp.

◆ sub()

int IntegerWithDelta::sub ( int  op)
inline

Definition at line 91 of file test.cpp.

◆ to_string()

virtual const std::string IntegerWithDelta::to_string ( )
inlinevirtual

Definition at line 111 of file test.cpp.

Member Data Documentation

◆ delta

int IntegerWithDelta::delta

Definition at line 83 of file test.cpp.

◆ value

int IntegerWithDelta::value

Definition at line 82 of file test.cpp.


The documentation for this class was generated from the following file: