#include <vector>
#include <omnetpp.h>
#include "IntServ.h"
Functions | |
void | removeDuplicates (std::vector< int > &vec) |
bool | find (std::vector< int > &vec, int value) |
bool | find (const IPAddressVector &vec, IPAddress addr) |
void | append (std::vector< int > &dest, const std::vector< int > &src) |
int | nodepos (const EroVector &ERO, IPAddress node) |
cModule * | payloadOwner (cMessage *msg) |
|
TODO documentation 00065 { 00066 for (unsigned int i = 0; i < src.size(); i++) 00067 dest.push_back(src[i]); 00068 }
|
|
TODO documentation 00055 { 00056 for (unsigned int i = 0; i < vec.size(); i++) 00057 { 00058 if (vec[i] == addr) 00059 return true; 00060 } 00061 return false; 00062 }
|
|
TODO documentation 00045 { 00046 for (unsigned int i = 0; i < vec.size(); i++) 00047 { 00048 if (vec[i] == value) 00049 return true; 00050 } 00051 return false; 00052 }
|
|
TODO documentation 00035 { 00036 for (unsigned int i = 0; i < ERO.size(); i++) 00037 { 00038 if (ERO[i].node == node) 00039 return i; 00040 } 00041 ASSERT(false); 00042 }
|
|
TODO documentation 00071 { 00072 while(msg->encapsulatedMsg()) 00073 msg = msg->encapsulatedMsg(); 00074 00075 if (msg->hasPar("owner")) 00076 { 00077 return simulation.module(msg->par("owner")); 00078 } 00079 else 00080 { 00081 return NULL; 00082 } 00083 }
|
|
TODO documentation 00019 { 00020 for (unsigned int i = 0; i < vec.size(); i++) 00021 { 00022 unsigned int j; 00023 for (j = 0; j < i; j++) 00024 if (vec[j] == vec[i]) 00025 break; 00026 if (j < i) 00027 { 00028 vec.erase(vec.begin() + i); 00029 --i; 00030 } 00031 } 00032 }
|