LiveSupport::Core::Ptr< T > Class Template Reference

#include <Ptr.h>

List of all members.


Detailed Description

template<class T>
class LiveSupport::Core::Ptr< T >

A placeholder class for holidng typedefs to smart pointers.

This is a workaround, as unfortunately typedfs in themselves may not be templated. For a discussion on the issue, see http://www.gotw.ca/gotw/079.htm

The smart pointers here are typedefs to the smart pointers in the boost library. For documentation of the boost smart pointers, see http://www.boost.org/libs/smart_ptr/

Author:
Author
fgerlits
Version:
Revision
2329

Definition at line 71 of file Ptr.h.

Public Types

typedef boost::shared_ptr< T > Ref
 This is actually a typedef to the boost shared_ptr, which is a reference counting shared smart pointer.


Member Typedef Documentation

template<class T>
typedef boost::shared_ptr<T> LiveSupport::Core::Ptr< T >::Ref

This is actually a typedef to the boost shared_ptr, which is a reference counting shared smart pointer.

For more on boost::shared_ptr, see http://www.boost.org/libs/smart_ptr/shared_ptr.htm

To use this pointer, define as follows: Ptr<MyType>::Ref myPointer;

Definition at line 94 of file Ptr.h.


The documentation for this class was generated from the following file:
Generated on Wed Oct 10 02:17:42 2007 for Campcaster by  1.4.7