#include <utilmm/smart/bits/uniq_memory.hh>
Public Types | |
| typedef Ty const | base_type |
| Real pointed type. | |
| typedef mem_type::iterator | mem_cell |
| type of managed mem cells | |
Public Member Functions | |
| mem_cell | null_cell () |
| null cell creation | |
| mem_cell | create (base_type *ptr) |
| Attachment of a new pointer. | |
| void | destroy (mem_cell c) |
| Destroy a memory cell. | |
| Ty | The type of managed cells | |
| Hash | A hash functor for Ty | |
| Equal | An equality functor for Ty |
utilmm::smart::ref_count::manager class. It implements a memory where there's one and only one element with a given value.
In this memory we have the guarantee that there's no mem_cell pair with pointed values that return true when passed as argument to Equal
| typedef Ty const utilmm::smart::ref_count::uniq_memory< Ty, Hash, Equal >::base_type |
Real pointed type.
| typedef mem_type::iterator utilmm::smart::ref_count::uniq_memory< Ty, Hash, Equal >::mem_cell |
type of managed mem cells
| mem_cell utilmm::smart::ref_count::uniq_memory< Ty, Hash, Equal >::null_cell | ( | ) | [inline] |
null cell creation
This function create the cell corresponding to null
| mem_cell utilmm::smart::ref_count::uniq_memory< Ty, Hash, Equal >::create | ( | base_type * | ptr | ) |
| void utilmm::smart::ref_count::uniq_memory< Ty, Hash, Equal >::destroy | ( | mem_cell | c | ) |
Destroy a memory cell.
This function Will detroy a memory cell and the real pointed value
| c | The cell to destroy |
1.5.3