Added method type diagram filter (#145)
This commit is contained in:
@@ -18,11 +18,22 @@
|
||||
|
||||
#include "diagram.h"
|
||||
|
||||
#include "common/model/diagram_filter.h"
|
||||
#include "util/error.h"
|
||||
#include "util/util.h"
|
||||
|
||||
namespace clanguml::class_diagram::model {
|
||||
|
||||
bool diagram::should_include(const class_member &m) const
|
||||
{
|
||||
return filter().should_include(m);
|
||||
}
|
||||
|
||||
bool diagram::should_include(const class_method &m) const
|
||||
{
|
||||
return filter().should_include(m);
|
||||
}
|
||||
|
||||
const common::reference_vector<class_> &diagram::classes() const
|
||||
{
|
||||
return element_view<class_>::view();
|
||||
|
||||
@@ -58,6 +58,12 @@ public:
|
||||
|
||||
diagram_t type() const override;
|
||||
|
||||
using common::model::diagram::should_include;
|
||||
|
||||
bool should_include(const class_member &m) const;
|
||||
|
||||
bool should_include(const class_method &m) const;
|
||||
|
||||
opt_ref<diagram_element> get(const std::string &full_name) const override;
|
||||
|
||||
opt_ref<diagram_element> get(diagram_element::id_t id) const override;
|
||||
|
||||
Reference in New Issue
Block a user