OverSim
|
This class is for managing (search)keys. More...
#include <GiaKeyList.h>
Public Member Functions | |
void | addKeyItem (const OverlayKey &item) |
Add key-item to keyList. | |
void | removeKeyItem (const OverlayKey &item) |
Removes key-item from keyList. | |
bool | contains (const OverlayKey &item) |
const std::vector< OverlayKey > & | getVector () |
uint32_t | getSize () |
const OverlayKey & | get (uint32_t i) |
Protected Member Functions | |
int | getPosition (const OverlayKey &item) |
Protected Attributes | |
std::vector< OverlayKey > | keyList |
contains all search keys |
Friends | |
std::ostream & | operator<< (std::ostream &os, const GiaKeyList &k) |
This class is for managing (search)keys.
Definition at line 31 of file GiaKeyList.h.
void GiaKeyList::addKeyItem | ( | const OverlayKey & | item | ) |
Add key-item to keyList.
item | to add |
Definition at line 29 of file GiaKeyList.cc.
Referenced by Gia::handleAppMessage(), and Gia::handleUDPMessage().
bool GiaKeyList::contains | ( | const OverlayKey & | item | ) |
item | to check |
Definition at line 42 of file GiaKeyList.cc.
Referenced by addKeyItem(), Gia::processSearchMessage(), and removeKeyItem().
const OverlayKey & GiaKeyList::get | ( | uint32_t | i | ) |
Definition at line 68 of file GiaKeyList.cc.
Referenced by Gia::sendKeyListToNeighbor().
|
protected |
item | to get position |
Definition at line 49 of file GiaKeyList.cc.
Referenced by contains(), and removeKeyItem().
uint32_t GiaKeyList::getSize | ( | ) |
Definition at line 62 of file GiaKeyList.cc.
Referenced by Gia::addNeighbor(), Gia::handleTimerEvent(), and Gia::sendKeyListToNeighbor().
const std::vector< OverlayKey > & GiaKeyList::getVector | ( | ) |
Definition at line 57 of file GiaKeyList.cc.
Referenced by Gia::handleAppMessage().
void GiaKeyList::removeKeyItem | ( | const OverlayKey & | item | ) |
Removes key-item from keyList.
item | to remove |
Definition at line 35 of file GiaKeyList.cc.
|
friend |
Definition at line 73 of file GiaKeyList.cc.
|
protected |
contains all search keys
Definition at line 70 of file GiaKeyList.h.
Referenced by addKeyItem(), getPosition(), getSize(), getVector(), operator<<(), and removeKeyItem().