WvStreams
include
wvstringcache.h
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 2005 Net Integration Technologies, Inc.
4
*
5
* Definition for the WvStringCache class.
6
*/
7
#ifndef __WVSTRINGCACHE_H
8
#define __WVSTRINGCACHE_H
9
10
#include "wvstringtable.h"
11
32
class
WvStringCache
33
{
34
static
WvStringTable
*t;
35
static
int
refcount;
36
static
size_t
clean_threshold;
37
38
public
:
39
WvStringCache
();
40
~
WvStringCache
();
41
43
WvString
get
(WvStringParm s);
44
46
void
clean
();
47
};
48
49
50
#endif // __WVSTRINGCACHE_H
WvStringCache
A cache table of WvString objects.
Definition:
wvstringcache.h:32
WvStringCache::get
WvString get(WvStringParm s)
Get a shared string corresponding to 's'.
Definition:
wvstringcache.cc:39
WvStringTable
Definition:
wvstringtable.h:17
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition:
wvstring.h:329
WvStringCache::clean
void clean()
Remove any now-unused strings from the cache.
Definition:
wvstringcache.cc:58
Generated by
1.8.17