Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Namespace Members   Compound Members   File Members  

arg::typed_reference Class Reference

Implementation class supporting counted_ptr/uncounted_ptr templates. More...

#include <arg_shared.h>

Class diagram for arg::typed_reference:

arg::generic_reference arg::uncounted_ptr arg::counted_ptr

List of all members.


Public Members

 typed_reference (pointee_type* pointee)
void swap (typed_reference& with) throw ()
template<typename rhs_pointee_type> bool operator==<rhs_pointee_type> ( const typed_reference<rhs_pointee_type>& rhs) const
equality.

template<typename rhs_pointee_type> bool operator!=<rhs_pointee_type> ( const typed_reference<rhs_pointee_type>& rhs) const
inequality.

template<typename rhs_pointee_type> bool operator<<rhs_pointee_type> ( const typed_reference<rhs_pointee_type>& rhs) const
Comparison.


Protected Members

void increment_strong_references () const
Increment the strong reference count.


Detailed Description

template<typename pointee_type> class arg::typed_reference

Implementation class supporting counted_ptr/uncounted_ptr templates.

Typesafe version of generic_reference (i.e. it does the casts).

Author(s):
Alan Griffiths

Member Function Documentation

template<typename pointee_type>
arg::typed_reference<pointee_type>::typed_reference<pointee_type> (pointee_type * pointee)

template<typename pointee_type>
void arg::typed_reference<pointee_type>::swap (typed_reference<pointee_type> & with) throw () [inline]

template<typename pointee_type>
template<typename rhs_pointee_type>
bool arg::typed_reference<pointee_type>::operator== (const typed_reference<rhs_pointee_type>& rhs) const [inline]

equality.

template<typename pointee_type>
template<typename rhs_pointee_type>
bool arg::typed_reference<pointee_type>::operator!= (const typed_reference<rhs_pointee_type>& rhs) const [inline]

inequality.

template<typename pointee_type>
template<typename rhs_pointee_type>
bool arg::typed_reference<pointee_type>::operator< (const typed_reference<rhs_pointee_type>& rhs) const [inline]

Comparison.

template<typename pointee_type>
void arg::typed_reference<pointee_type>::increment_strong_references () const [inline, protected]

Increment the strong reference count.

Reimplemented from arg::generic_reference.


The documentation for this class was generated from the following file:
Copyright 1999-2000 Alan Griffiths