class mrpt::system::mrptEventOnDestroy

Overview

An event sent by any CObservable object (automatically) just before being destroyed and telling its observers to unsubscribe.

#include <mrpt/system/mrptEvent.h>

class mrptEventOnDestroy: public mrpt::system::mrptEvent
{
public:
    // fields

    const CObservable* source_object;

    // construction

    mrptEventOnDestroy(const CObservable* obj);
};

Inherited Members

public:
    // fields

    mrpt::Clock::time_point timestamp {mrpt::Clock::now()};

    // methods

    template <class EVENTTYPE>
    bool isOfType() const;

    template <class EVENTTYPE>
    const EVENTTYPE* getAs() const;

    template <class EVENTTYPE>
    EVENTTYPE* getAsNonConst() const;