📄 resource.h
字号:
// Copyright (c) 1994 James Clark// See the file COPYING for copying permission.#ifndef Resource_INCLUDED#define Resource_INCLUDED 1#ifdef SP_NAMESPACEnamespace SP_NAMESPACE {#endifclass SP_API Resource {public: Resource(); Resource(const Resource &); int unref(); // return 1 if it should be deleted void ref(); int count() const;private: int count_;};inlineResource::Resource(): count_(0){}inlineResource::Resource(const Resource &): count_(0){}inlineint Resource::count() const{ return count_;}inlineint Resource::unref(){ return --count_ <= 0;}inlinevoid Resource::ref(){ ++count_;}#ifdef SP_NAMESPACE}#endif#endif /* not Resource_INCLUDED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -