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

Commit 9618a46d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Document FlattenableHelper design decision"

parents 35ce4a7c c38992fe
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;