#include <PeerStorage.h>
Detailed Description
Definition at line 50 of file PeerStorage.h.
Constructor & Destructor Documentation
AddrPerOverlayVector::~AddrPerOverlayVector |
( |
| ) |
|
|
inline |
Definition at line 53 of file PeerStorage.h.
{
for (iterator it = begin(); it != end(); it++) {
delete it->ta;
}
}
Member Function Documentation
TransportAddress* AddrPerOverlayVector::getAddrForOverlayId |
( |
int32_t |
overlayId | ) |
|
|
inline |
Definition at line 68 of file PeerStorage.h.
{
if (it != end()) {
return it->ta;
}
return NULL;
};
const AddrPerOverlayVector::iterator AddrPerOverlayVector::getIterForOverlayId |
( |
int32_t |
overlayId | ) |
|
|
inline |
Definition at line 59 of file PeerStorage.h.
Referenced by getAddrForOverlayId().
{
iterator it;
for (it = begin(); it != end(); it++) {
if (it->overlayId == overlayId) return it;
}
return it;
};
void AddrPerOverlayVector::setAddrForOverlayId |
( |
TransportAddress * |
addr, |
|
|
int32_t |
overlayId |
|
) |
| |
|
inline |
Definition at line 78 of file PeerStorage.h.
{
for (iterator it = begin(); it != end(); it++) {
if (it->overlayId == overlayId) {
delete it->ta;
it->ta = addr;
return;
}
}
push_back(apo);
};
The documentation for this class was generated from the following file: