Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c38992fe authored by Fabien Sanglard's avatar Fabien Sanglard
Browse files

Document FlattenableHelper design decision

Change-Id: I163979c7b1b868e4396a9c70b262d0c4815f4e40
parent 8e7b508b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -479,6 +479,8 @@ private:
    #pragma clang diagnostic ignored "-Wweak-vtables"
    #endif

    // FlattenableHelperInterface and FlattenableHelper avoid generating a vtable entry in objects
    // following Flattenable template/protocol.
    class FlattenableHelperInterface {
    protected:
        ~FlattenableHelperInterface() { }
@@ -493,6 +495,9 @@ private:
    #pragma clang diagnostic pop
    #endif

    // Concrete implementation of FlattenableHelperInterface that delegates virtual calls to the
    // specified class T implementing the Flattenable protocol. It "virtualizes" a compile-time
    // protocol.
    template<typename T>
    class FlattenableHelper : public FlattenableHelperInterface {
        friend class Parcel;