25 #ifndef __PEERSTORAGE_H__ 
   26 #define __PEERSTORAGE_H__ 
   32 #include <IPvXAddress.h> 
   54         for (iterator it = begin(); it != end(); it++) {
 
   61         for (it = begin(); it != end(); it++) {
 
   62             if (it->overlayId == overlayId) 
return it;
 
   79         for (iterator it = begin(); it != end(); it++) {
 
   80             if (it->overlayId == overlayId) {
 
  122     const PeerHashMap::iterator 
find(
const IPvXAddress& ip);
 
  123     const PeerHashMap::iterator 
begin();
 
  124     const PeerHashMap::iterator 
end();
 
  126     std::pair<const PeerHashMap::iterator, bool> 
insert(
const std::pair<IPvXAddress, BootstrapEntry>& element);
 
  127     void erase(
const PeerHashMap::iterator it);
 
  135                                               bool bootstrappedNeeded,
 
  136                                               bool inoffensiveNeeded);
 
  138     void setMalicious(
const PeerHashMap::iterator it, 
bool malicious);
 
  140     void setBootstrapped(
const PeerHashMap::iterator it, int32_t overlayId,
 
  146     typedef std::vector<std::vector<PeerHashMap::iterator> > 
PeerVector;
 
  149                                      PeerHashMap::iterator it);
 
  152                                      PeerHashMap::iterator it);
 
  155     inline uint8_t 
calcOffset(
bool bootstrapped, 
bool malicious);