Public Types | Private Types
utilmm::smart::count_pointer< Ty > Struct Template Reference

reference counting pointer definition traits More...

#include <count_pointer.hh>

List of all members.

Public Types

typedef pointer< manager_typetype
 The smart pointer type.

Private Types

typedef ref_count::manager
< mem_type
manager_type
typedef
ref_count::simple_memory< Ty > 
mem_type

Detailed Description

template<typename Ty>
struct utilmm::smart::count_pointer< Ty >

reference counting pointer definition traits

This structure is just an helper to have direct access for the basic smart pointer using a reference counting life time manager.

Parameters:
TyThe type we want to point to

To use a smart pointer with reference count managament user just need to declare the type like in following code.

 #include "smart/count_pointer.hh"

 // [...]

 utilmm::smart::count_pointer<int>::type pi(new int(5)), pj;

 *pi = 6;
 pj = pi;
See also:
utilmm::smart::pointer
utilmm::smart::ref_count::manager
Author:
Frédéric Py <fpy@laas.fr>

Definition at line 44 of file count_pointer.hh.


Member Typedef Documentation

template<typename Ty>
typedef ref_count::manager<mem_type> utilmm::smart::count_pointer< Ty >::manager_type [private]

Definition at line 47 of file count_pointer.hh.

template<typename Ty>
typedef ref_count::simple_memory<Ty> utilmm::smart::count_pointer< Ty >::mem_type [private]

Definition at line 46 of file count_pointer.hh.

template<typename Ty>
typedef pointer<manager_type> utilmm::smart::count_pointer< Ty >::type

The smart pointer type.

This the type of the smart pointer with reference counting management.

Definition at line 55 of file count_pointer.hh.


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


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:02