cartobase  5.1.2
carto::RefData< T > Class Template Reference

#include <cartobase/smart/rcptr.h>

Inheritance diagram for carto::RefData< T >:

Public Member Functions

int count () const
 

Friends

template<class R >
class const_ref
 
template<class R >
class ref
 
class DefaultRefConstruction
 
class RCObject
 
class rc_ptr_trick
 

Detailed Description

template<class T>
class carto::RefData< T >

The following class has been build because of a problem in gcc 2.95.2 (I don't know if it is a bug) which forbid to access the private members of a const_ref<R> from a member of const_ref<T>. It is not possible to use a template friend declaration in this case because it leads to an internal compiler error.

Definition at line 197 of file rcptr.h.

Member Function Documentation

◆ count()

template<class T >
int carto::RefData< T >::count ( ) const
inline

Definition at line 210 of file rcptr.h.

Friends And Related Function Documentation

◆ const_ref

template<class T >
template<class R >
friend class const_ref
friend

Definition at line 199 of file rcptr.h.

◆ DefaultRefConstruction

template<class T >
friend class DefaultRefConstruction
friend

Definition at line 201 of file rcptr.h.

◆ rc_ptr_trick

template<class T >
friend class rc_ptr_trick
friend

Definition at line 203 of file rcptr.h.

◆ RCObject

template<class T >
friend class RCObject
friend

Definition at line 202 of file rcptr.h.

◆ ref

template<class T >
template<class R >
friend class ref
friend

Definition at line 200 of file rcptr.h.


The documentation for this class was generated from the following file: