#include "Utils.h"
#include "IntServ.h"
Go to the source code of this file.
Function Documentation
| void append |
( |
std::vector< int > & |
dest, |
|
|
const std::vector< int > & |
src |
|
) |
| |
TODO documentation
Definition at line 59 of file Utils.cc.
{
for (unsigned int i = 0; i < src.size(); i++)
dest.push_back(src[i]);
}
TODO documentation
Definition at line 34 of file Utils.cc.
Referenced by TED::calculateShortestPath(), RTP::createProfile(), RTPProfile::createSenderModule(), RTPProfile::dataIn(), RoutingTable::deleteRoute(), AnsaRoutingTable::deleteRoute(), RSVP::refreshResv(), Blackboard::registerClient(), SCTP::removeAssociation(), RoutingTable6::removeRoute(), FailureManager::replaceNode(), LinkStateRouting::sendToPeers(), NotificationBoard::subscribe(), Blackboard::subscribe(), and NotificationBoard::unsubscribe().
{
for (unsigned int i = 0; i < ERO.size(); i++)
if (ERO[i].node == node)
return i;
ASSERT(false);
return -1;
}
| bool find |
( |
std::vector< int > & |
vec, |
|
|
int |
value |
|
) |
| |
TODO documentation
Definition at line 43 of file Utils.cc.
{
for (unsigned int i = 0; i < vec.size(); i++)
if (vec[i] == value)
return true;
return false;
}
TODO documentation
Definition at line 51 of file Utils.cc.
{
for (unsigned int i = 0; i < vec.size(); i++)
if (vec[i] == addr)
return true;
return false;
}
XXX function appears to be unused
Definition at line 65 of file Utils.cc.
{
while(msg->getEncapsulatedPacket())
msg = msg->getEncapsulatedPacket();
if (msg->hasPar("owner"))
return simulation.getModule(msg->par("owner"));
else
return NULL;
}
TODO documentation
Definition at line 18 of file Utils.cc.
{
for (unsigned int i = 0; i < vec.size(); i++)
{
unsigned int j;
for (j = 0; j < i; j++)
if (vec[j] == vec[i])
break;
if (j < i)
{
vec.erase(vec.begin() + i);
--i;
}
}
}