OverSim
|
Stack of I3SubIdentifier, implementing the "identifier stack" proposed in Internet Indirection Infrastructure. More...
#include <I3IdentifierStack.h>
Public Member Functions | |
void | push (const I3Identifier &id) |
Pushes an I3Identifier. | |
void | push (const I3IPAddress &ip) |
Pushes an I3IPAddress. | |
void | push (const IPvXAddress &add, int port) |
Pushes an IP address with port. | |
void | push (const I3IdentifierStack &stack) |
Appends an I3IdentifierStack at the end. | |
I3SubIdentifier & | peek () |
Returns a reference to the top of the stack. | |
const I3SubIdentifier & | peek () const |
Returns a const reference to the top of the stack. | |
void | pop () |
Pops a subidentifier from the top of the stack. | |
void | clear () |
uint32_t | size () const |
Returns the size of the stack. | |
int | compareTo (const I3IdentifierStack &s) const |
Comparation function. | |
int | length () const |
void | replaceAddress (const I3IPAddress &source, const I3IPAddress &dest) |
Protected Attributes | |
std::list< I3SubIdentifier > | stack |
Stack of subidentifiers. |
Friends | |
std::ostream & | operator<< (std::ostream &os, const I3IdentifierStack &t) |
Stack of I3SubIdentifier, implementing the "identifier stack" proposed in Internet Indirection Infrastructure.
Definition at line 33 of file I3IdentifierStack.h.
void I3IdentifierStack::clear | ( | ) |
Definition at line 99 of file I3IdentifierStack.cc.
Referenced by I3Trigger::clear().
int I3IdentifierStack::compareTo | ( | const I3IdentifierStack & | s | ) | const |
Comparation function.
s | Stack to be compared against |
Definition at line 78 of file I3IdentifierStack.cc.
Referenced by I3Trigger::compareTo().
int I3IdentifierStack::length | ( | ) | const |
Definition at line 109 of file I3IdentifierStack.cc.
Referenced by I3Trigger::length().
I3SubIdentifier & I3IdentifierStack::peek | ( | ) |
Returns a reference to the top of the stack.
Definition at line 62 of file I3IdentifierStack.cc.
Referenced by I3::handleUDPMessage(), I3::sendPacket(), I3BaseApp::sendPacket(), and I3::sendToNode().
const I3SubIdentifier & I3IdentifierStack::peek | ( | ) | const |
Returns a const reference to the top of the stack.
Definition at line 67 of file I3IdentifierStack.cc.
void I3IdentifierStack::pop | ( | ) |
Pops a subidentifier from the top of the stack.
Definition at line 72 of file I3IdentifierStack.cc.
Referenced by I3::sendPacket(), I3BaseApp::sendPacket(), and I3::sendToNode().
void I3IdentifierStack::push | ( | const I3Identifier & | id | ) |
Pushes an I3Identifier.
id | Identifier to be pushed |
Definition at line 28 of file I3IdentifierStack.cc.
Referenced by I3Composite::createMessage(), I3TRTClient::handleTimerEvent(), I3BaseApp::insertTrigger(), I3::sendPacket(), and I3BaseApp::sendPacket().
void I3IdentifierStack::push | ( | const I3IPAddress & | ip | ) |
Pushes an I3IPAddress.
ip | IP address to be pushed |
Definition at line 45 of file I3IdentifierStack.cc.
void I3IdentifierStack::push | ( | const IPvXAddress & | add, |
int | port | ||
) |
Pushes an IP address with port.
add | IP address to be pushed |
port | Address port to be pushed |
Definition at line 36 of file I3IdentifierStack.cc.
void I3IdentifierStack::push | ( | const I3IdentifierStack & | stack | ) |
Appends an I3IdentifierStack at the end.
stack | Identifier stack to be appended |
Definition at line 53 of file I3IdentifierStack.cc.
void I3IdentifierStack::replaceAddress | ( | const I3IPAddress & | source, |
const I3IPAddress & | dest | ||
) |
Definition at line 119 of file I3IdentifierStack.cc.
uint32_t I3IdentifierStack::size | ( | ) | const |
Returns the size of the stack.
Definition at line 104 of file I3IdentifierStack.cc.
Referenced by compareTo(), I3::handleUDPMessage(), I3::insertTrigger(), and I3::sendPacket().
|
friend |
Definition at line 130 of file I3IdentifierStack.cc.
|
protected |
Stack of subidentifiers.
Definition at line 83 of file I3IdentifierStack.h.
Referenced by compareTo(), operator<<(), and push().