GComm  0.2.3
Public Types | Public Member Functions | Static Public Member Functions | List of all members
gcomm::pc::Node Class Reference

Public Types

enum  Flags { F_PRIM = 0x1, F_WEIGHT = 0x2, F_UN = 0x4 }
 

Public Member Functions

 Node (const bool prim=false, const bool un=false, const uint32_t last_seq=std::numeric_limits< uint32_t >::max(), const ViewId &last_prim=ViewId(V_NON_PRIM), const int64_t to_seq=-1, const int weight=-1, const SegmentId segment=0)
 
void set_prim (const bool val)
 
void set_un (const bool un)
 
void set_last_seq (const uint32_t seq)
 
void set_last_prim (const ViewId &last_prim)
 
void set_to_seq (const uint64_t seq)
 
void set_weight (const int weight)
 
void set_segment (const SegmentId segment)
 
bool prim () const
 
bool un () const
 
uint32_t last_seq () const
 
const ViewIdlast_prim () const
 
int64_t to_seq () const
 
int weight () const
 
SegmentId segment () const
 
size_t unserialize (const gu::byte_t *buf, const size_t buflen, const size_t offset)
 
size_t serialize (gu::byte_t *buf, const size_t buflen, const size_t offset) const
 
bool operator== (const Node &cmp) const
 
std::string to_string () const
 

Static Public Member Functions

static size_t serial_size ()
 

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