Pointer.h

Go to the documentation of this file.
00001 #ifndef _POINTER_H
00002 #define _POINTER_H
00003 
00004 class Pointer {
00005   public:
00006 
00007   void *data;
00008 
00009   Pointer() { }
00010   Pointer(void *_data): data(_data) { }
00011 
00012   void pup(PUP::er &p) {
00013     pup_bytes(&p,&data,sizeof(data));
00014   }
00015 };
00016 
00017 class ConstPointer {
00018   public:
00019 
00020   const void *data;
00021 
00022   ConstPointer() { }
00023   ConstPointer(const void *_data): data(_data) { }
00024 
00025   void pup(PUP::er &p) {
00026     pup_bytes(&p,&data,sizeof(data));
00027   }
00028 };
00029 
00030 #endif
00031 

Generated on Fri Jun 22 01:17:15 2018 for NAMD by  doxygen 1.4.7