Derecho  0.9
Distributed systems toolkit for RDMA
Public Member Functions | Public Attributes | List of all members
objectstore::Object Class Reference

#include <Object.hpp>

Inheritance diagram for objectstore::Object:
Inheritance graph
[legend]
Collaboration diagram for objectstore::Object:
Collaboration graph
[legend]

Public Member Functions

bool operator== (const Object &other)
 
bool is_valid () const
 
 Object (const OID &_oid, const Blob &_blob)
 
 Object (const std::tuple< persistent::version_t, uint64_t > _ver, const OID &_oid, const Blob &_blob)
 
 Object (const uint64_t _oid, const char *const _b, const std::size_t _s)
 
 Object (const std::tuple< persistent::version_t, uint64_t > _ver, const uint64_t _oid, const char *const _b, const std::size_t _s)
 
 Object (Object &&other)
 
 Object (const Object &other)
 
 Object ()
 
 DEFAULT_SERIALIZATION_SUPPORT (Object, ver, oid, blob)
 
- 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 ()
 

Public Attributes

std::tuple< persistent::version_t, uint64_t > ver
 
OID oid
 
Blob blob
 

Detailed Description

Definition at line 73 of file Object.hpp.

Constructor & Destructor Documentation

◆ Object() [1/7]

objectstore::Object::Object ( const OID _oid,
const Blob _blob 
)

Definition at line 95 of file Object.cpp.

◆ Object() [2/7]

objectstore::Object::Object ( const std::tuple< persistent::version_t, uint64_t >  _ver,
const OID _oid,
const Blob _blob 
)

Definition at line 99 of file Object.cpp.

◆ Object() [3/7]

objectstore::Object::Object ( const uint64_t  _oid,
const char *const  _b,
const std::size_t  _s 
)

Definition at line 102 of file Object.cpp.

◆ Object() [4/7]

objectstore::Object::Object ( const std::tuple< persistent::version_t, uint64_t >  _ver,
const uint64_t  _oid,
const char *const  _b,
const std::size_t  _s 
)

Definition at line 106 of file Object.cpp.

◆ Object() [5/7]

objectstore::Object::Object ( Object &&  other)

Definition at line 109 of file Object.cpp.

◆ Object() [6/7]

objectstore::Object::Object ( const Object other)

Definition at line 113 of file Object.cpp.

◆ Object() [7/7]

objectstore::Object::Object ( )

Definition at line 117 of file Object.cpp.

Member Function Documentation

◆ DEFAULT_SERIALIZATION_SUPPORT()

objectstore::Object::DEFAULT_SERIALIZATION_SUPPORT ( Object  ,
ver  ,
oid  ,
blob   
)

◆ is_valid()

bool objectstore::Object::is_valid ( ) const

Definition at line 90 of file Object.cpp.

◆ operator==()

bool objectstore::Object::operator== ( const Object other)

Definition at line 86 of file Object.cpp.

Member Data Documentation

◆ blob

Blob objectstore::Object::blob

Definition at line 77 of file Object.hpp.

◆ oid

OID objectstore::Object::oid

Definition at line 76 of file Object.hpp.

◆ ver

std::tuple<persistent::version_t,uint64_t> objectstore::Object::ver
mutable

Definition at line 75 of file Object.hpp.


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