|
Collage
1.0.1
Object-Oriented C++ Network Library
|
A helper struct bundling an object identifier and version. More...
#include <objectVersion.h>
Collaboration diagram for co::ObjectVersion:Public Member Functions | |
| CO_API | ObjectVersion () |
| Construct a new, zero-initialized object version. More... | |
| CO_API | ObjectVersion (const UUID &identifier, const uint128_t &version) |
| Construct a new object version. More... | |
| CO_API | ObjectVersion (const Object *object) |
| Construct a new object version. More... | |
| template<class R > | |
| ObjectVersion (lunchbox::RefPtr< R > object) | |
| Construct a new object version. More... | |
| CO_API ObjectVersion & | operator= (const Object *object) |
| Assign a new identifier and version. More... | |
| bool | operator== (const ObjectVersion &value) const |
| bool | operator!= (const ObjectVersion &value) const |
| bool | operator< (const ObjectVersion &rhs) const |
| < | |
| bool | operator> (const ObjectVersion &rhs) const |
| < | |
Public Attributes | |
| uint128_t | identifier |
| the object identifier | |
| uint128_t | version |
| the object version | |
A helper struct bundling an object identifier and version.
Primarily used for serialization. The struct either contains the object's identifier and version (if it is registered or mapped), 0 and VERSION_NONE if it is unmapped or if no object was given.
Definition at line 45 of file objectVersion.h.
| CO_API co::ObjectVersion::ObjectVersion | ( | ) |
Construct a new, zero-initialized object version.
| CO_API co::ObjectVersion::ObjectVersion | ( | const UUID & | identifier, |
| const uint128_t & | version | ||
| ) |
Construct a new object version.
| CO_API co::ObjectVersion::ObjectVersion | ( | const Object * | object | ) |
Construct a new object version.
|
inline |
|
inline |
Definition at line 71 of file objectVersion.h.
References identifier, and version.
| CO_API ObjectVersion& co::ObjectVersion::operator= | ( | const Object * | object | ) |
Assign a new identifier and version.
|
inline |
Definition at line 64 of file objectVersion.h.
References identifier, and version.
1.8.5