摘要:
ObjectPool.h#include class ObjectPool{private: ObjectPool(unsigned int step, unsigned int size); ~ObjectPool();public: static ObjectPool& get... 阅读全文
摘要:
#pragma once#include "KRYObject.h"template class KRYFunction{};templateclass KRYFunction {private: class FunctionBase { public: virtua... 阅读全文
摘要:
KRYObject.h#pragma onceclass KRYObject{ template friend class KRYRefPtr; template friend class KRYWeakPtr;private: struct KRYRefCount ... 阅读全文
摘要:
#pragma onceclass KRYPtrCount{public: KRYPtrCount() :shared_count(1), weak_count(0){} void addShared(){ shared_count += 1; } void addWeak(){ ... 阅读全文