4 #ifndef UTILMM_SMART_UNIQ_MEMORY_HEADER
5 # define UTILMM_SMART_UNIQ_MEMORY_HEADER
28 template<
typename Ty,
class Hash>
30 :
public std::unary_function<Ty const *, size_t> {
59 template<
typename Ty,
class Equal>
61 :
public std::binary_function<Ty const *, Ty const *, bool> {
74 bool operator()(Ty
const *a, Ty
const *b)
const;
96 template<
typename Ty,
class Hash,
class Equal>
119 return the_mem.
end();
150 # define IN_UTILMM_SMART_UNIQ_MEMORY_HEADER
151 #include "utilmm/smart/bits/uniq_memory.tcc"
152 # undef IN_UTILMM_SMART_UNIQ_MEMORY_HEADER
153 #endif // UTILMM_SMART_UNIQ_MEMORY_HEADER
void destroy(mem_cell c)
Destroy a memory cell.
Declaration of utilmm::hash_map.
In depth pointer equality functor.
Definition: uniq_memory.hh:60
Special hash functor for utilmm::smart::ref_count::uniq_memory.
Definition: uniq_memory.hh:29
map with hashing access
Definition: hash_map.hh:31
size_t operator()(Ty const *arg) const
Hashing call operator.
bool operator()(Ty const *a, Ty const *b) const
Call operator.
mem_cell create(base_type *ptr)
Attachment of a new pointer.
Unique instance memory manager.
Definition: uniq_memory.hh:97
Ty const base_type
Real pointed type.
Definition: uniq_memory.hh:100
iterator end()
end of table
Definition: hash_map.hh:111
mem_cell null_cell()
null cell creation
Definition: uniq_memory.hh:118
mem_type::iterator mem_cell
type of managed mem cells
Definition: uniq_memory.hh:110