Hazelcast C++ Client
Hazelcast C++ Client Library
Loading...
Searching...
No Matches
hazelcast::client::member::version Struct Reference

Public Member Functions

bool operator== (const version &rhs) const
bool operator!= (const version &rhs) const
bool operator< (const version &rhs) const
bool operator> (const version &rhs) const
bool operator<= (const version &rhs) const
bool operator>= (const version &rhs) const

Public Attributes

byte major
byte minor
byte patch

Friends

std::ostream HAZELCAST_API & operator<< (std::ostream &os, const version &version)

Detailed Description

Definition at line 74 of file member.h.

Member Function Documentation

◆ operator!=()

bool hazelcast::client::member::version::operator!= ( const version & rhs) const

Definition at line 343 of file cluster.cpp.

344{
345 return !(rhs == *this);
346}

◆ operator<()

bool hazelcast::client::member::version::operator< ( const version & rhs) const

Definition at line 348 of file cluster.cpp.

350{
351 if (major < rhs.major)
352 return true;
353 if (rhs.major < major)
354 return false;
355 if (minor < rhs.minor)
356 return true;
357 if (rhs.minor < minor)
358 return false;
359 return patch < rhs.patch;
360}

◆ operator<=()

bool hazelcast::client::member::version::operator<= ( const version & rhs) const

Definition at line 368 of file cluster.cpp.

370{
371 return !(rhs < *this);
372}

◆ operator==()

bool hazelcast::client::member::version::operator== ( const version & rhs) const

Definition at line 337 of file cluster.cpp.

338{
339 return major == rhs.major && minor == rhs.minor && patch == rhs.patch;
340}

◆ operator>()

bool hazelcast::client::member::version::operator> ( const version & rhs) const

Definition at line 363 of file cluster.cpp.

364{
365 return rhs < *this;
366}

◆ operator>=()

bool hazelcast::client::member::version::operator>= ( const version & rhs) const

Definition at line 375 of file cluster.cpp.

376{
377 return !(*this < rhs);
378}

◆ operator<<

std::ostream HAZELCAST_API & operator<< ( std::ostream & os,
const version & version )
friend

Definition at line 380 of file cluster.cpp.

382{
383 os << version.major << "." << version.minor << "." << version.patch;
384 return os;
385}

Member Data Documentation

◆ major

byte hazelcast::client::member::version::major

Definition at line 76 of file member.h.

◆ minor

byte hazelcast::client::member::version::minor

Definition at line 77 of file member.h.

◆ patch

byte hazelcast::client::member::version::patch

Definition at line 78 of file member.h.


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