| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #ifndef __PDEBUGVECTOR_H__ | ||
| 8 | #define __PDEBUGVECTOR_H__ | ||
| 9 | |||
| 10 | #include <vector> | ||
| 11 | |||
| 12 | ///@brief Class which eases the use of a std::vector for debugging purpose | ||
| 13 | template<typename T> | ||
| 14 | class PDebugVector : public std::vector<T> { | ||
| 15 | public: | ||
| 16 | PDebugVector(); | ||
| 17 | PDebugVector(const PDebugVector<T> & other); | ||
| 18 | virtual ~PDebugVector(); | ||
| 19 | PDebugVector & operator << (const T & value); | ||
| 20 | |||
| 21 | private: | ||
| 22 | void initialisationPDebugVector(); | ||
| 23 | }; | ||
| 24 | |||
| 25 | #include "PDebugVector_impl.h" | ||
| 26 | |||
| 27 | |||
| 28 | #endif | ||
| 29 | |||
| 30 |