O P A R - Open Architecture Particle in Cell Simulation - Version 3.0
Plasma simulations with dust particles
|
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>
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. |
A simple pointer wrapper. Wraps a pointer, so that it can be stored in an STL container. The current implementation has however little advantages.
|
inline |
Typecast to the original pointer type.
Explicit method for the typecast