Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zipios_referencecount(3) [debian man page]

zipios::ReferenceCount(3)				     Library Functions Manual					 zipios::ReferenceCount(3)

NAME
zipios::ReferenceCount - ReferenceCount is useful to ensure proper handling of the reference count for (objects of) classes handled through a SimpleSmartPointer. SYNOPSIS
#include <simplesmartptr.h> Public Member Functions ReferenceCount () Constructor intializes count to zero. ReferenceCount (const ReferenceCount &src) Copy-constructor intializes count to zero. const ReferenceCount & operator= (const ReferenceCount &src) The assignment operator doesn't copy the reference count, it leaves it unchanged. Friends class SimpleSmartPointer< Type > SimpleSmartPointer needs to be a friend to invoke the private ref() and unref() methods. class SimpleSmartPointer< const Type > class FileEntry Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit ReferenceCount and thus needs to invoke ref() and unref() through forwarding member functions. class Bogus Detailed Description template<class Type>class zipios::ReferenceCount< Type > ReferenceCount is useful to ensure proper handling of the reference count for (objects of) classes handled through a SimpleSmartPointer. Subclassing ReferenceCount is all a class needs to become ready for being handled by SimpleSmartPointer. Another way is to add a ReferenceCount member variable to a class and write two methods 'void ref() const' and 'unsigned int unref() const' that invoke the same methods in the ReferenceCount variable. Definition at line 99 of file simplesmartptr.h. Constructor &; Destructor Documentation template<class Type> zipios::ReferenceCount< Type >::ReferenceCount () [inline] Constructor intializes count to zero. Definition at line 122 of file simplesmartptr.h. template<class Type> zipios::ReferenceCount< Type >::ReferenceCount (const ReferenceCount< Type > &src) [inline] Copy-constructor intializes count to zero. It doesn't copy it from src. Definition at line 126 of file simplesmartptr.h. Member Function Documentation template<class Type> const ReferenceCount& zipios::ReferenceCount< Type >::operator= (const ReferenceCount< Type > &src) [inline] The assignment operator doesn't copy the reference count, it leaves it unchanged. Definition at line 130 of file simplesmartptr.h. Friends And Related Function Documentation template<class Type> friend class FileEntry [friend] Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit ReferenceCount and thus needs to invoke ref() and unref() through forwarding member functions. Definition at line 117 of file simplesmartptr.h. template<class Type> friend class SimpleSmartPointer< Type > [friend] SimpleSmartPointer needs to be a friend to invoke the private ref() and unref() methods. Definition at line 102 of file simplesmartptr.h. Author Generated automatically by Doxygen for Zipios++ from the source code. Zipios++ Mon Oct 10 2011 zipios::ReferenceCount(3)

Check Out this Related Man Page

zipios::ZipCDirEntry(3) 				     Library Functions Manual					   zipios::ZipCDirEntry(3)

NAME
zipios::ZipCDirEntry - Specialization of ZipLocalEntry, that add fields for storing the extra information, that is only present in the entries in the zip central directory and not in the local entry headers. SYNOPSIS
#include <ziphead.h> Inherits zipios::ZipLocalEntry. Public Member Functions ZipCDirEntry (const string &_filename='', const string &_file_comment='', const vector< unsigned char > &_extra_field=vector< unsigned char >()) void setDefaultWriter () ZipCDirEntry & operator= (const class ZipCDirEntry &src) virtual string toString () const Returns a human-readable string representation of the entry. virtual string getComment () const Returns the comment of the entry, if it has one. virtual void setComment (const string &comment) Sets the comment field for the FileEntry. virtual uint32 getLocalHeaderOffset () const virtual void setLocalHeaderOffset (uint32 offset) int getCDirHeaderSize () const virtual FileEntry * clone () const Create a heap allocated clone of the object this method is called for. Friends istream & operator>> (istream &is, ZipCDirEntry &zcdh) ostream & operator<< (ostream &os, const ZipCDirEntry &zcdh) bool operator== (const ZipLocalEntry &zlh, const ZipCDirEntry &ze) Detailed Description Specialization of ZipLocalEntry, that add fields for storing the extra information, that is only present in the entries in the zip central directory and not in the local entry headers. Definition at line 102 of file ziphead.h. Member Function Documentation FileEntry * zipios::ZipCDirEntry::clone () const [virtual] Create a heap allocated clone of the object this method is called for. The caller is responsible for deallocating the clone when he is done with it. Returns: A heap allocated copy of the object this method is called for. Reimplemented from zipios::ZipLocalEntry. Definition at line 231 of file ziphead.cpp. string zipios::ZipCDirEntry::getComment () const [virtual] Returns the comment of the entry, if it has one. Otherwise it returns an empty string. Returns: the comment associated with the entry, if there is one. Reimplemented from zipios::ZipLocalEntry. Definition at line 199 of file ziphead.cpp. void zipios::ZipCDirEntry::setComment (const string &comment) [virtual] Sets the comment field for the FileEntry. Parameters: comment string with the new comment. Reimplemented from zipios::ZipLocalEntry. Definition at line 212 of file ziphead.cpp. string zipios::ZipCDirEntry::toString () const [virtual] Returns a human-readable string representation of the entry. Returns: a human-readable string representation of the entry. Reimplemented from zipios::ZipLocalEntry. Definition at line 218 of file ziphead.cpp. Author Generated automatically by Doxygen for Zipios++ from the source code. Zipios++ Mon Oct 10 2011 zipios::ZipCDirEntry(3)
Man Page