6 #ifndef OPENDDS_DCPS_RCHANDLE_T_H 7 #define OPENDDS_DCPS_RCHANDLE_T_H 73 void reset(T* p, U counting_strategy)
105 this->ptr_ = rhs.
ptr_;
123 return this->ptr_ == 0;
149 T* retval = this->ptr_;
154 operator bool()
const 161 return in() == rhs.
in();
166 return in() != rhs.
in();
171 return in() < rhs.
in();
195 template <
typename T>
201 template <
typename T,
typename U>
207 template <
typename T,
typename U>
213 template <
typename T,
typename U>
229 operator T& ()
const {
return *_ptr; }
230 T&
get()
const {
return *_ptr; }
236 template <
typename T>
242 template <
typename T>
248 template <
typename T>
255 template <
typename T>
261 template <
typename T,
typename U>
267 template <
typename T,
typename U0,
typename U1>
273 template <
typename T,
typename U0,
typename U1,
typename U2>
279 template <
typename T,
typename U0,
typename U1,
typename U2,
typename U3>
285 template <
typename T,
typename U0,
typename U1,
typename U2,
typename U3,
typename U4>
291 template <
typename T,
typename U0,
typename U1,
typename U2,
typename U3,
typename U4,
typename U5>
297 template <
typename T,
typename U0,
typename U1,
typename U2,
typename U3,
typename U4,
typename U5,
typename U6>
298 RcHandle<T> make_rch(U0
const& u0, U1
const& u1, U2
const& u2, U3
const& u3, U4
const& u4, U5
const& u5, U6
const& u6)
303 template <
typename T,
typename U0,
typename U1,
typename U2,
typename U3,
typename U4,
typename U5,
typename U6,
typename U7>
304 RcHandle<T> make_rch(U0
const& u0, U1
const& u1, U2
const& u2, U3
const& u3, U4
const& u4, U5
const& u5, U6
const& u6, U7
const& u7)
bool operator!=(const RcHandle &rhs) const
void swap(MessageBlock &lhs, MessageBlock &rhs)
RcHandle< T > rchandle_from(T *pointer)
T const & unwrap_reference(T const &t)
#define OPENDDS_ASSERT(C)
reference_wrapper< T > ref(T &r)
RcHandle & operator=(const RcHandle< U > &b)
RcHandle< T > const_rchandle_cast(const RcHandle< U > &h)
RcHandle(T *p, inc_count)
RcHandle(unique_ptr< U > p)
T * ptr_
The actual "unsmart" pointer to the T object.
void reset(T *p, U counting_strategy)
RcHandle(const RcHandle< U > &other)
RcHandle(T *p, keep_count)
RcHandle & operator=(unique_ptr< U > b)
RcHandle< T > static_rchandle_cast(const RcHandle< U > &h)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
bool operator==(const RcHandle &rhs) const
RcHandle< T > dynamic_rchandle_cast(const RcHandle< U > &h)
RcHandle(const RcHandle &b)
The Internal API and Implementation of OpenDDS.
RcHandle & operator=(const RcHandle &b)
bool operator<(const GUID_t &lhs, const GUID_t &rhs)
reference_wrapper(T &ref)