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
chxbody.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++
- /************************************************************************
- * chxbody.h
- * ------------
- *
- * Synopsis:
- * Simple ref counting class to derive from.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef _chxbody_h_
- #define _chxbody_h_
- typedef unsigned long CountType;
- class CHXBody {
- public:
- CountType ref();
- CountType unref();
- CountType refcount() const;
- static void ref(CHXBody*);
- static void unref(CHXBody*);
- protected:
- CHXBody();
- ~CHXBody();
- CHXBody(const CHXBody&);
- CHXBody& operator=(const CHXBody&);
- private:
- CountType refcount_;
- };
- inline
- CHXBody::CHXBody()
- : refcount_(0)
- {}
- inline
- CHXBody::CHXBody(const CHXBody&)
- : refcount_(0)
- {}
- inline
- CHXBody& CHXBody::operator=(const CHXBody&)
- {
- return *this;
- }
- inline
- CHXBody::~CHXBody()
- {}
- inline
- CountType CHXBody::ref()
- {
- return ++refcount_;
- }
- inline
- CountType CHXBody::unref()
- {
- return --refcount_;
- }
- inline
- void CHXBody::unref(CHXBody* b)
- {
- if (b) b->unref();
- }
- inline
- CountType CHXBody::refcount() const
- {
- return refcount_;
- }
- #endif // _chxbody_h_