1 // $Id: gc_set_util.cpp,v 1.3 2011/03/08 19:22:00 bobgian Exp $
2
3 /*
4 Copyright 2002 Mary Kuhner, Jon Yamato, and Joseph Felsenstein
5
6 This software is distributed free of charge for non-commercial use
7 and is copyrighted. Of course, we do not guarantee that the software
8 works, and are not responsible for any damage you may cause or have.
9 */
10
11 #include "gc_set_util.h"
12 #include "wx/log.h"
13
gcIdSet()14 gcIdSet::gcIdSet()
15 {
16 }
17
~gcIdSet()18 gcIdSet::~gcIdSet()
19 {
20 }
21
22 void
DebugDump(wxString prefix) const23 gcIdSet::DebugDump(wxString prefix) const
24 {
25 wxString ids="";
26 for(const_iterator i=begin(); i != end(); i++)
27 {
28 size_t id = *i;
29 ids += wxString::Format("%d ",(int)id);
30 }
31 wxLogDebug("%s%s", prefix.c_str(), ids.c_str()); // EWDUMPOK
32 }
33
34 wxString
AsString() const35 gcIdSet::AsString() const
36 {
37 wxString ids="";
38 for(const_iterator i=begin(); i != end(); i++)
39 {
40 size_t blockId = *i;
41 ids += wxString::Format("%d ",(int)blockId);
42 }
43 return ids;
44 }
45
gcIdVec()46 gcIdVec::gcIdVec()
47 {
48 }
49
~gcIdVec()50 gcIdVec::~gcIdVec()
51 {
52 }
53
54 void
DebugDump(wxString prefix) const55 gcIdVec::DebugDump(wxString prefix) const
56 {
57 wxString ids="";
58 for(const_iterator i=begin(); i != end(); i++)
59 {
60 size_t id = *i;
61 ids += wxString::Format("%d ",(int)id);
62 }
63 wxLogDebug("%s%s", prefix.c_str(), ids.c_str()); // EWDUMPOK
64 }
65
66 wxString
AsString() const67 gcIdVec::AsString() const
68 {
69 wxString ids="";
70 for(const_iterator i=begin(); i != end(); i++)
71 {
72 size_t blockId = *i;
73 ids += wxString::Format("%d ",(int)blockId);
74 }
75 return ids;
76 }
77
78 //____________________________________________________________________________________
79