Definition in file OverlayKey.h.
#include <gmp.h>
#include <sys/types.h>
Go to the source code of this file.
Classes | |
| class | OverlayKey |
| A common overlay key class. More... | |
| class | OverlayKeyBit |
| An auxiliary class for single bits in OverlayKey. More... | |
Functions | |
| void | omnet_random (mp_limb_t *r1p, mp_size_t r1n) |
| replacement function for mpn_random() using omnet's rng | |
| void | doPacking (cCommBuffer *b, OverlayKey &obj) |
| netPack for OverlayKey | |
| void | doUnpacking (cCommBuffer *b, OverlayKey &obj) |
| netUnpack for OverlayKey | |
| void doPacking | ( | cCommBuffer * | b, | |
| OverlayKey & | obj | |||
| ) | [inline] |
netPack for OverlayKey
| b | the buffer | |
| obj | the OverlayKey to serialise |
Definition at line 568 of file OverlayKey.h.
00568 {obj.netPack(b);}
| void doUnpacking | ( | cCommBuffer * | b, | |
| OverlayKey & | obj | |||
| ) | [inline] |
netUnpack for OverlayKey
| b | the buffer | |
| obj | the OverlayKey to unserialise |
Definition at line 576 of file OverlayKey.h.
00576 {obj.netUnpack(b);}
| void omnet_random | ( | mp_limb_t * | r1p, | |
| mp_size_t | r1n | |||
| ) | [inline] |
replacement function for mpn_random() using omnet's rng
Definition at line 811 of file OverlayKey.cc.
Referenced by OverlayKey::random(), OverlayKey::randomPrefix(), and OverlayKey::randomSuffix().
00812 { 00813 // fill in 32 bit chunks 00814 uint32_t* chunkPtr = (uint32_t*)r1p; 00815 00816 for (uint32_t i=0; i < ((r1n*sizeof(mp_limb_t) + 3) / 4); i++) { 00817 chunkPtr[i] = intuniform(0, 0xFFFFFFFF); 00818 } 00819 }
1.5.5