00001 #include "Headers.h"
00002 #include "Multicast.h"
00003
00004 CMulticast::CMulticast(__uint32 groups, CTopo* topology, __uint32 source)
00005 {
00006 this->groups = groups;
00007 this->trees = new CMulticastTree*[this->groups];
00008
00009 for(__uint32 index = 0; index < this->groups; index++)
00010 {
00011 this->trees[index] = new CMulticastTree(topology, index, source);
00012 }
00013 }
00014
00015 CMulticast::~CMulticast()
00016 {
00017 for(__uint32 index = 0; index < this->groups; index++)
00018 delete this->trees[index];
00019 delete[] this->trees;
00020 }