utilmm::smart::count_pointer< Ty > Struct Template Reference
[Smart pointers]

reference counting pointer definition traits More...

#include <count_pointer.hh>

List of all members.

Public Types

typedef pointer< manager_typetype
 The smart pointer type.
typedef pointer< manager_typetype
 The smart pointer type.

Private Types

typedef ref_count::manager
< mem_type
manager_type
typedef ref_count::manager
< mem_type
manager_type
typedef
ref_count::simple_memory< Ty > 
mem_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:
Ty The 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 42 of file install/include/utilmm/smart/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 utilmm/smart/count_pointer.hh.

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

Definition at line 46 of file utilmm/smart/count_pointer.hh.

template<typename Ty >
typedef ref_count::simple_memory<Ty> utilmm::smart::count_pointer< Ty >::mem_type [private]
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 utilmm/smart/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 22 of file install/include/utilmm/smart/count_pointer.hh.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Jan 11 10:07:43 2013