Composite of all diagrams filters.
More...
Composite of all diagrams filters.
Instances of this class contain all filters specified in configuration file for a given diagram.
- See also
- clanguml::common::model::filter_visitor
Definition at line 775 of file diagram_filter.h.
#include <diagram_filter.h>
◆ diagram_filter()
◆ add_exclusive_filter()
void clanguml::common::model::diagram_filter::add_exclusive_filter |
( |
std::unique_ptr< filter_visitor > |
fv | ) |
|
◆ add_filter()
void clanguml::common::model::diagram_filter::add_filter |
( |
filter_t |
filter_type, |
|
|
std::unique_ptr< filter_visitor > |
fv |
|
) |
| |
◆ add_inclusive_filter()
void clanguml::common::model::diagram_filter::add_inclusive_filter |
( |
std::unique_ptr< filter_visitor > |
fv | ) |
|
◆ mode()
filter_mode_t clanguml::common::model::diagram_filter::mode |
( |
| ) |
const |
◆ set_mode()
void clanguml::common::model::diagram_filter::set_mode |
( |
filter_mode_t |
mode | ) |
|
◆ should_include() [1/2]
bool clanguml::common::model::diagram_filter::should_include |
( |
const namespace_ & |
ns, |
|
|
const std::string & |
name |
|
) |
| const |
should_include
overload for namespace and name.
- Parameters
-
- Returns
- Match result.
Definition at line 1371 of file diagram_filter.cc.
1373{
1376 e.set_name(name);
1377 e.set_namespace(ns);
1378
1380 }
1381
1382 return false;
1383}
◆ should_include() [2/2]
template<typename T >
bool clanguml::common::model::diagram_filter::should_include |
( |
const T & |
e | ) |
const |
|
inline |
Generic should_include
overload for various diagram elements.
- Template Parameters
-
- Parameters
-
e | Value of type T to match |
- Returns
- Match result.
Definition at line 814 of file diagram_filter.h.
815 {
818 assert(ex.get() != nullptr);
819
820 return ex->match(diagram_, e);
821 });
822
824 return false;
825
828 assert(in.get() != nullptr);
829
830 return in->match(diagram_, e);
831 });
832
834 }
◆ diagram_filter_factory
◆ diagram_
◆ exclusive_
std::vector<std::unique_ptr<filter_visitor> > clanguml::common::model::diagram_filter::exclusive_ |
|
private |
◆ inclusive_
std::vector<std::unique_ptr<filter_visitor> > clanguml::common::model::diagram_filter::inclusive_ |
|
private |
◆ mode_
filter_mode_t clanguml::common::model::diagram_filter::mode_ {filter_mode_t::basic} |
|
private |
The documentation for this class was generated from the following files: