VISH  0.2
Public Types | Public Member Functions
MemCore::StrongPtr Class Reference

A reference counting pointer class which keeps objects alive as long as strong pointers to these objects exist. More...

#include </home/werner/origo/vish/memcore/RefPtr.hpp>

List of all members.

Public Types

Public Member Functions


Detailed Description

A reference counting pointer class which keeps objects alive as long as strong pointers to these objects exist.

Note that StrongPtr (and RefPtr) are possible for classes that have not been defined. A class declaration is required and the WeakPtr<> template has to be explicitely told the base class of the respective declared class.

Examples:

ComputeGridStreamLines.cpp, and ComputeMultiStreamLines.cpp.


Member Function Documentation

StrongPtr& MemCore::StrongPtr::operator= ( const ReferenceBase< ObjectBase_t > *  Obj) [inline]

Assignment from object base class pointer.

Required to avoid creation of a temporary pointer when calling the assignment operator.


The documentation for this class was generated from the following file: