#include <colcache.h>
Public Methods | |
CollationCache () | |
Default constructor. | |
~CollationCache () | |
Destructor. More... | |
void | Add (const UnicodeString& key, TableCollationData* adoptedData) |
Add and Find use a UnicodeString as the key to Collation objects in the cache. More... | |
TableCollationData* | Find (const UnicodeString& key) |
TableCollationData objects may be added to the cache, and looked up in the cache. When the cache is destroyed, all the TableCollationData objects are deleted.
Definition at line 52 of file colcache.h.
|
Default constructor.
|
|
Destructor.
Definition at line 63 of file colcache.h. |
|
Add and Find use a UnicodeString as the key to Collation objects in the cache. If Add is called twice with equivalent keys, but different collation objects, the first collation object will be deleted when the second one is added. In general, this is undesirable; objects in the cache are usually pointed to by various clients in the system. For this reason, clients should call Find to ensure a Collation object does not already exist in the cache for the given key before calling Add.
Definition at line 84 of file colcache.h. |
|
Definition at line 89 of file colcache.h. |