SharedData

class cppmicroservices::SharedData
#include <cppmicroservices/SharedData.h>

Public Functions

SharedData()
SharedData(const SharedData&)
SharedData &operator=(const SharedData&)

Public Members

std::atomic<int> ref
template <class T>
class cppmicroservices::SharedDataPointer
#include <cppmicroservices/SharedData.h>

Public Types

typedef T Type
typedef T *pointer

Public Functions

void Detach()
T &operator*()
const T &operator*() const
T *operator->()
const T *operator->() const
operator T *()
operator const T *() const
T *Data()
const T *Data() const
const T *ConstData() const
bool operator==(const SharedDataPointer<T> &other) const
bool operator!=(const SharedDataPointer<T> &other) const
SharedDataPointer()
~SharedDataPointer()
SharedDataPointer(T *data)
SharedDataPointer(const SharedDataPointer<T> &o)
SharedDataPointer<T> &operator=(const SharedDataPointer<T> &o)
SharedDataPointer &operator=(T *o)
bool operator!() const
void Swap(SharedDataPointer &other)

Protected Functions

T *Clone()
template <class T>
class cppmicroservices::ExplicitlySharedDataPointer
#include <cppmicroservices/SharedData.h>

Public Types

typedef T Type
typedef T *pointer

Public Functions

T &operator*() const
T *operator->()
T *operator->() const
T *Data() const
const T *ConstData() const
void Detach()
void Reset()
operator bool() const
bool operator==(const ExplicitlySharedDataPointer<T> &other) const
bool operator!=(const ExplicitlySharedDataPointer<T> &other) const
bool operator==(const T *ptr) const
bool operator!=(const T *ptr) const
ExplicitlySharedDataPointer()
~ExplicitlySharedDataPointer()
ExplicitlySharedDataPointer(T *data)
ExplicitlySharedDataPointer(const ExplicitlySharedDataPointer<T> &o)
template <class X>
ExplicitlySharedDataPointer(const ExplicitlySharedDataPointer<X> &o)
ExplicitlySharedDataPointer<T> &operator=(const ExplicitlySharedDataPointer<T> &o)
ExplicitlySharedDataPointer &operator=(T *o)
bool operator!() const
void Swap(ExplicitlySharedDataPointer &other)

Protected Functions

T *Clone()