3 #include "g_cont_ref_base.h"
10 template <
class T >
class ref_const :
public ref_base<T>
13 ref_const() { G_VERBOSE_MSG_L5(
"ref_const::ref_const()"); }
14 ref_const (
const ref_const<T>& o ) { G_VERBOSE_MSG_L5(
"ref_const::ref_const ( const ref_base<T>& o )"); this->mRefTake(o); }
15 ref_const (
const ref_custom<T>& o ) { G_VERBOSE_MSG_L5(
"ref_const::ref_const ( const ref_custom<T>& o )"); this->mRefTake(o); }
17 ref_const& operator = (
const ref_const<T>& o ) { G_VERBOSE_MSG_L5(
"ref_const::operator = ( const ref_const<T>& )"); this->mRefTake(o);
return *
this; }
18 ref_const& operator = (
const ref_custom<T>& o ) { G_VERBOSE_MSG_L5(
"ref_const::operator = ( const ref_custom<T>& )"); this->mRefTake(o);
return *
this; }
20 template <
class O >
operator ref_const() { G_VERBOSE_MSG_L5(
operator ref_const()); ref_const<O> res; res.mRefTake (*
this);
return res; }
22 const T& operator *()
const {
return *this->mGetObjP(); }
23 const T* operator ->()
const {
return this->mGetObjP(); }
Definition: g.mthread.ThreadSimpleEvent.h:5