|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
22 #include "gtest/gtest.h"
46 visited_non_const_ =
true;
51 visited_const_ =
true;
54 bool visited_non_const_{
false};
55 bool visited_const_{
false};
58 TEST(TestVisitor, simple_non_const)
67 TEST(TestVisitor, simple_const)
79 : visited_const_(false)
85 visited_const_ =
true;
91 TEST(TestVisitor, const_visit_accept_non_const_visitable)
99 TEST(TestVisitor, const_visit_accept_const_visitable)
103 visitable.
accept(visitor);
122 bool visited_{
false};
132 TEST(TestVisitor, test_class_hierarchy)
136 visitable.
accept(visitor);
TEST(TestVisitor, test_class_hierarchy)
void visit(const DummyVisitable &) override
void visit(DummyVisitable &) override
void visit(const DummyVisitable &) override
This is the header file for a generated source file, GitSHA1.cpp.
Visitor2 that is ready to visit object of type DummyVisitable, but not of type DummyChildVisitable.
#define MAKE_VISITABLE_FALLBACK(PARENT_CLASS)
Similar to the MAKE_VISITABLE() macro, with 1 major difference.
#define MAKE_VISITABLE()
Provide the object calling this macro in its definition with an accept() method that will accept Base...
void visit(const DummyVisitable &) override