Alex Bikfalvi
SimStream Documentation
MulticastTree.h
00001 #pragma once 00002 00003 #include "Topo.h" 00004 #include "MulticastNode.h" 00005 00006 class CMulticastTree 00007 { 00008 private: 00009 __uint32 source; 00010 __uint32 group; 00011 CTopo* topology; 00012 00013 CMulticastNode* nodes; 00014 00015 __uint32 sizeCoreLast; 00016 __time sizeCoreTime; 00017 double sizeCore; 00018 00019 __uint32 sizeEdgeLast; 00020 __time sizeEdgeTime; 00021 double sizeEdge; 00022 00023 public: 00024 CMulticastTree(CTopo* topology, __uint32 group, __uint32 source); 00025 virtual ~CMulticastTree(); 00026 00027 void Add(__time time, __uint32 host, __uint32 gw); 00028 void Remove(__time time, __uint32 host, __uint32 gw); 00029 00030 void Clear(); 00031 00032 void Finalize(__time time); 00033 00034 inline double SizeCore() { return this->sizeCore; } 00035 inline double SizeEdge() { return this->sizeEdge; } 00036 00037 inline __uint32 SizeCoreLast() { return this->sizeCoreLast; } 00038 inline __uint32 SizeEdgeLast() { return this->sizeEdgeLast; } 00039 };
Last updated: February 8, 2011