acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
aaa__map_impl.h
1
#pragma once
2
3
4
template
<
typename
KEY,
typename
PAYLOAD,
typename
ARG_KEY,
typename
ARG_VALUE,
typename
PAIR >
5
void
map < KEY, PAYLOAD, ARG_KEY, ARG_VALUE, PAIR >::InitHashTable(
6
::u32 nHashSize,
bool
bAllocNow)
7
//
8
// Used to force allocation of a hash table or to override the default
9
// hash table i32_size of (which is fairly small)
10
{
11
12
ASSERT_OK(
this
);
13
ASSERT(this->m_nCount == 0);
14
ASSERT(nHashSize > 0);
15
16
this->m_hashtable.InitHashTable(nHashSize,bAllocNow);
17
18
}
19
20
21
template
<
typename
KEY,
typename
PAYLOAD,
typename
ARG_KEY,
typename
ARG_VALUE,
typename
PAIR >
22
void
map < KEY, PAYLOAD, ARG_KEY, ARG_VALUE, PAIR >::dump(dump_context& dumpcontext)
const
23
{
24
25
::matter::dump(dumpcontext);
26
27
//dumpcontext << "with " << this->m_nCount << " elements";
28
//if (dumpcontext.GetDepth() > 0)
29
//{
30
// // Dump in format "[key] -> value"
31
32
// const association* passociation = get_start();
33
// while (passociation != nullptr)
34
// {
35
// passociation = get_next(passociation);
36
// dumpcontext << "\n\t[";
37
// dump_elements<KEY>(dumpcontext, &passociation->element1(), 1);
38
// dumpcontext << "] = ";
39
// dump_elements<PAYLOAD>(dumpcontext, &passociation->element2(), 1);
40
// }
41
//}
42
43
//dumpcontext << "\n";
44
}
45
46
47
prototype
collection
aaa__map_impl.h
Generated by
1.17.0