70 |
/* ************************ * |
/* ************************ * |
71 |
* PAMCUTCOLLECTION |
* PAMCUTCOLLECTION |
72 |
* ************************ */ |
* ************************ */ |
73 |
|
PamCutCollection::~PamCutCollection(){ |
74 |
|
|
75 |
void PamCutCollection::AddCut(PamCut &cut) { |
if (_owns){ |
76 |
_cuts.push_back(&cut); |
for (unsigned int i = 0; i < _cuts.size(); i++) |
77 |
|
if (_cuts[i] != NULL){ |
78 |
|
delete _cuts[i]; |
79 |
|
_cuts[i] = NULL; |
80 |
|
} |
81 |
|
} |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
void PamCutCollection::AddCut(PamCut *cut) { |
86 |
|
_cuts.push_back(cut); |
87 |
} |
} |
88 |
|
|
89 |
int PamCutCollection::Check(PamLevel2 *event) { |
int PamCutCollection::Check(PamLevel2 *event) { |