Class access

Synopsis

#include <include/Visitor.h>

class access

Description

No description yet.

Mentioned in

Methods

construct
destroy
hibernate

Source

Lines 8-26 in include/Visitor.h.

class access{
public:
    template<class A, class C>
    static void hibernate(A& a, C& c) {
        c.hibernate(a);
    }

    template<class A, class C>
    static void construct(A& /*a*/, C** c)
    {
        *c=new C();
    }

    template<class A, class C>
    static void destroy(A& /*a*/, C* c)
    {
        delete c;
    }
};





Add Discussion as Guest

Log in