19 |
* This collection differs from SmartCollection only because it is blind, ie., it will apply |
* This collection differs from SmartCollection only because it is blind, ie., it will apply |
20 |
* all the cuts to each events, even if some of them fail (see #BlindCutCollection to get |
* all the cuts to each events, even if some of them fail (see #BlindCutCollection to get |
21 |
* more info about blind collections). In current implementation, after a cut has failed, it |
* more info about blind collections). In current implementation, after a cut has failed, it |
22 |
* will call OnBad for all the actions that come after that cut, regardless if, for example, |
* will call OnBad for all the actions that come after that cut (also the ones at the end of |
23 |
* in a certain subsequent bunch all the cuts are satisfied. |
* successive bunches), regardless if, for example, in a certain subsequent bunch all the |
24 |
|
* cuts are satisfied. |
25 |
*/ |
*/ |
26 |
class SmartBlindCollection: public SmartCollection { |
class SmartBlindCollection: public SmartCollection { |
27 |
|
|
30 |
/*! @brief Constructor. |
/*! @brief Constructor. |
31 |
* |
* |
32 |
* @param collectionName The collection's name. |
* @param collectionName The collection's name. |
33 |
|
* @param owns If true, the collection will own the cuts and the actions, ie., it will |
34 |
|
* destroy them in its destructor. |
35 |
*/ |
*/ |
36 |
SmartBlindCollection(const char* collectionName) : |
SmartBlindCollection(const char* collectionName, bool owns = true) : |
37 |
SmartCollection(collectionName){ |
SmartCollection(collectionName, owns) { |
38 |
} |
} |
39 |
|
|
40 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |