Foxit PDF Conversion SDK
|
Inherits CFX_Object.
Public Member Functions | |
CFX_CMapDWordToDWord (IFX_Allocator *pAllocator=0) | |
Constructor with allocator. More... | |
void | EstimateSize (FX_DWORD size, FX_DWORD grow_by) |
Change internal allocation size and grow amount. More... | |
void | GetNextAssoc (FX_POSITION &pos, FX_DWORD &key, FX_DWORD &value) const |
Get the next association. More... | |
FX_POSITION | GetStartPosition () const |
Get the first key-value pair position. iterating all (key, value) pairs. More... | |
FX_BOOL | Lookup (FX_DWORD key, FX_DWORD &value) const |
Lookup by a key. More... | |
void | RemoveAll () |
Remove all (key, value) pair. More... | |
void | SetAt (FX_DWORD key, FX_DWORD value) |
Add a new (key, value) pair. Add if not exist, otherwise modify. More... | |
Protected Attributes | |
CFX_BinaryBuf | m_Buffer |
The class represents a compact map class that simply put all mapping into one single buffer The map is kept sorted so lookup can be pretty fast.
|
inline |
Constructor with allocator.
[in] | pAllocator | An allocator. Default value: NULL. |
Change internal allocation size and grow amount.
[in] | size | The new allocation size. |
[in] | grow_by | The new grow amount. |
void CFX_CMapDWordToDWord::GetNextAssoc | ( | FX_POSITION & | pos, |
FX_DWORD & | key, | ||
FX_DWORD & | value | ||
) | const |
Get the next association.
[in,out] | pos | Input a position, and receive the next (key, value) pair position as result. |
[out] | key | Receive a key. |
[out] | value | Receive a value. |
FX_POSITION CFX_CMapDWordToDWord::GetStartPosition | ( | ) | const |
Get the first key-value pair position. iterating all (key, value) pairs.
Lookup by a key.
[in] | key | The key to lookup. |
[out] | value | A reference of a FX_DWORD value to receive the found value. |
|
inline |
Remove all (key, value) pair.
Add a new (key, value) pair. Add if not exist, otherwise modify.
[in] | key | The key to specify a position. |
[in] | value | The new FX_DWORD value. |
|
protected |
(key, value) pair buffer.