Alex Bikfalvi
SimStream Documentation
StreamBootPushMulti.h
00001 #pragma once 00002 00003 #include "Address.h" 00004 #include "StreamBootPushEntry.h" 00005 00006 class CStreamBootPushMulti 00007 { 00008 public: 00009 typedef map<CAddress, CStreamBootEntry> List; 00010 00011 private: 00012 __uint32 layers; 00013 CAddress root; 00014 List* hosts; 00015 00016 public: 00017 CStreamBootPushMulti(__uint32 layers, CAddress root); 00018 virtual ~CStreamBootPushMulti(); 00019 00020 void Register(__uint32 layer, CAddress host, CAddress source); 00021 void Deregister(__uint32 layer, CAddress host); 00022 00023 bool IsDependent(__uint32 layer, CAddress host, CAddress parent); 00024 00025 inline List* Fetch(__uint32 layer) { assert(layer < this->layers); return &this->hosts[layer]; } 00026 };
Last updated: February 8, 2011