?? handle.h
字號:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...: General template class for handles. Smart pointer
// to a class object.
// Comments......:
// Revisions.....:
//===================================================================
#ifndef __HANDLE_H__
#define __HANDLE_H__
#include <copyright.h>
#include <kernel/basic/types.h>
#include <kernel/basic/macros.h>
#include <kernel/basic/message.h>
//-------------------------------------------------------------------
// Class.........: Handle
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Provides a smart pointer to class objects.
// The advantage of using handles instead of standard
// C++ pointers is that the memory management of (large)
// objects is significantly simplified and the safety of
// memory operations is increased.
//
// Note that the current scheme fails if the structure
// formed by the objects in memory is not a directed
// acyclic graph (DAG)! Make therefore sure that you
// do not use the present handle template if you introduce
// circular references. Or, perhaps even better, redesign.
//
// Comments......: Can probably be improved upon a little, Take a look at
// Meyers' book ("More Effective C++: 35 New Ways to...")
// for a discussion.
//
// For some reason MSVC++ 6.0 seems to accept member templates
// only if they are declared inside the class body...
//
// It seems that MSVC++ 6.0 is somewhat unstable in its
// support for member templates, since I encounter mysterious
// crashes elsewhere if member templates are used. If they are
// not used, everything works just fine...
//
// Revisions.....: A
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -