/*
* Inkscape::Debug::EventTracker - semi-automatically track event lifetimes
*
* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2005 MenTaLguY
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
struct NoInitialEvent {};
virtual ~EventTrackerBase() {
if (_active) {
}
}
inline void set() {
if (_active) {
}
_active = true;
}
inline void set(A const &a) {
if (_active) {
}
_active = true;
}
inline void set(A const &a, B const &b) {
if (_active) {
}
_active = true;
}
inline void set(A const &a, B const &b, C const &c) {
if (_active) {
}
_active = true;
}
inline void set(A const &a, B const &b, C const &c, D const &d) {
if (_active) {
}
_active = true;
}
inline void set(A const &a, B const &b, C const &c, D const &d, E const &e)
{
if (_active) {
}
_active = true;
}
inline void set(A const &a, B const &b, C const &c,
D const &d, E const &e, F const &f)
{
if (_active) {
}
_active = true;
}
typename G>
inline void set(A const &a, B const &b, C const &c, D const &d,
E const &e, F const &f, G const &g)
{
if (_active) {
}
_active = true;
}
inline void set(A const &a, B const &b, C const &c, D const &d,
E const &e, F const &f, G const &g, H const &h)
{
if (_active) {
}
_active = true;
}
void clear() {
if (_active) {
_active = false;
}
}
bool _active;
};
}
}
}
EventTracker(A const &a, B const &b, C const &c, D const &d)
: EventTrackerBase(true)
{
}
EventTracker(A const &a, B const &b, C const &c, D const &d, E const &e)
: EventTrackerBase(true)
{
}
EventTracker(A const &a, B const &b, C const &c, D const &d,
E const &e, F const &f)
: EventTrackerBase(true)
{
}
EventTracker(A const &a, B const &b, C const &c, D const &d,
E const &e, F const &f, G const &g)
: EventTrackerBase(true)
{
}
EventTracker(A const &a, B const &b, C const &c, D const &d,
E const &e, F const &f, G const &g, H const &h)
: EventTrackerBase(true)
{
}
};
};
}
}
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :