Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
chxmakesmartptr.h
Package: helix.src.0812.rar [view]
Upload User: zhongxx05
Upload Date: 2007-06-06
Package Size: 33641k
Code Size: 1k
Category:
Symbian
Development Platform:
C/C++
- /************************************************************************
- * chxmakesmartptr.h
- * -------------------
- * Easy way of making smart pointers.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- // Includes...
- #include "chxsmartptr.h"
- #ifndef _chxmakesmartptr_h_
- #define _chxmakesmartptr_h_
- #define MakeSmartPtr(T)
- class T ## Ptr : public CHXSmartPtr<T> {
- public:
- T ## Ptr(T* p=(T*)0)
- : CHXSmartPtr<T>(p) {}
- T ## Ptr(const T ## Ptr& p)
- : CHXSmartPtr<T>(p)
- {}
- T ## Ptr& operator=(T* p)
- {
- (void) CHXSmartPtr<T>::operator=(p);
- return *this;
- }
- };
- #define MakeSmartCPtr(T)
- class T ## CPtr : public CHXSmartCPtr<T> {
- public:
- T ## CPtr(const T* p=(const T*)0)
- : CHXSmartCPtr<T>(p) {}
- T ## CPtr(const T ## CPtr& p)
- : CHXSmartCPtr<T>(p)
- {}
- T ## CPtr& operator=(const T* p)
- {
- (void) CHXSmartCPtr<T>::operator=(p);
- return *this;
- }
- };
- #endif // _chxmakesmartptr_h_