O P A R - Open Architecture Particle in Cell Simulation - Version 3.0
Plasma simulations with dust particles
 All Classes Files Functions Variables Friends Macros Groups Pages
Public Member Functions | Friends
PtrWrapper< TYPE > Class Template Reference

A simple pointer wrapper. Wraps a pointer, so that it can be stored in an STL container. The current implementation has however little advantages. More...

#include <stlpwrapper.h>

List of all members.

Public Member Functions

 PtrWrapper (TYPE *pObj=0)
 Constructor witha pointer to the TYPE.
 PtrWrapper (const PtrWrapper< TYPE > &wrapper)
 Copy constructor.
PtrWrapper< TYPE > & operator= (const PtrWrapper< TYPE > &wrapper)
 Assignment operator.
 ~PtrWrapper ()
 Destructor doesn't free pointer.
TYPE * pObj () const
 Typecast to the original pointer type.
 operator const TYPE * () const
 operator TYPE * ()

Friends

bool operator== (const PtrWrapper< TYPE > &left, const PtrWrapper< TYPE > &right)
 Compares the two objects.
bool operator!= (const PtrWrapper< TYPE > &left, const PtrWrapper< TYPE > &right)
 Compares the two objects.
bool operator< (const PtrWrapper< TYPE > &left, const PtrWrapper< TYPE > &right)
 Compares the two objects.

Detailed Description

template<class TYPE>
class PtrWrapper< TYPE >

A simple pointer wrapper. Wraps a pointer, so that it can be stored in an STL container. The current implementation has however little advantages.


Member Function Documentation

template<class TYPE>
TYPE* PtrWrapper< TYPE >::pObj ( ) const
inline

Typecast to the original pointer type.

Explicit method for the typecast


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