Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (18 sloc) 652 Bytes
#include "settings.h"
#include "internal/cache_usage_counter_impl.h"
#ifdef HAVE_DMALLOC_H
#include <dmalloc.h>
#endif
namespace xscript
{
class CacheUsageCounterFactoryImpl : public CacheUsageCounterFactory {
public:
virtual std::auto_ptr<CacheUsageCounter> createCounter(const std::string& name, bool want_real);
};
std::auto_ptr<CacheUsageCounter>
CacheUsageCounterFactoryImpl::createCounter(const std::string &name, bool want_real) {
(void)want_real;
return std::auto_ptr<CacheUsageCounter>(new CacheUsageCounterImpl(name));
}
static ComponentImplRegisterer<CacheUsageCounterFactory> reg_(new CacheUsageCounterFactoryImpl());
}