Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 20:57, 13 December 2007.

CBase

From Forum Nokia Wiki

CBase is the base class for all classes to be instantiated on the heap. By convention, all classes derived from CBase have a name beginning with the letter 'C' (hence they're called C classes).

The class has three important features:

  • A virtual destructor that allows instances of derived classes to be destroyed and properly cleaned up through a CBase* pointer.
  • Initialisation of the CBase derived object to binary zeroes meaning that members, whose initial value should be zero, do not have to be initialised in the constructor. This allows safe destruction of a partially-constructed object.
  • private copy-constructor and assignment operator to prevent making "shallow copies" of objects.
Related Discussions
Thread Thread Starter Forum Replies Last Post
Problem with CSecureSocket::NewL giuseppeottelli Symbian Signing, Certification and Security 27 2008-08-28 08:41
Exit type 2,71,E32USER-CBase gemilib General Symbian C++ 3 2007-10-31 08:58
Shall it be named as a T class or a C class freezelion General Symbian C++ 5 2005-06-01 01:49
old navi pane problem: memory leaks kpoxa General Symbian C++ 2 2004-02-16 12:49
E32user-Cbase -42 error while receiving Images from Digital Camera microconint General Symbian C++ 0 2002-08-28 10:10
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX