GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

pointer.hh File Reference

Smart pointer class interface. More...

Go to the source code of this file.

Namespaces

Classes

C++-style casting functions


Detailed Description

Smart pointer class interface.

Provides a reference-counted-object aware smart pointer class.


Function Documentation

template<typename To, typename From>
Pointer<To> cast_const const Pointer< From > &  from  )  [inline]
 

Removes the const qualifier from a managed const dumb pointer.

Parameters:
from A Pointer that manages a const dumb pointer.
Returns:
A new Pointer that manages the non-const dumb pointer.

Calls const_cast on the dumb pointer and returns the non-const pointer as a new Pointer.

template<typename To, typename From>
Pointer<To> cast_dynamic const Pointer< From > &  from  )  [inline]
 

Casts a managed polymophic dumb pointer down or across its inheritance heirarchy.

Parameters:
from A Pointer managing a polymophic dumb pointer of type From.
Returns:
A new Pointer managing the dumb pointer as a base or sibling pointer of type To.

Calls dynmaic_cast to safely cast a managed polymophic dumb pointer of type From to a base, derived or sibling class pointer of type To.

template<typename To, typename From>
Pointer<To> cast_static const Pointer< From > &  from  )  [inline]
 

Casts a managed dumb pointer to a pointer to a related type.

Parameters:
from A Pointer managing a dumb pointer of type From.
Returns:
A new Pointer managing the dumb pointer as a pointer of type To.

Calls static_cast to cast a dumb pointer of type From to a pointer of type To.


Generated on Tue Aug 24 00:04:56 2004 for GFC-Core by doxygen 1.3.8