Added callee_filter for including/excluding messages based on receiver type (#152)
This commit is contained in:
@@ -74,7 +74,7 @@ public:
|
||||
*/
|
||||
template <typename T>
|
||||
common::optional_ref<T> get_participant(
|
||||
common::model::diagram_element::id_t id)
|
||||
common::model::diagram_element::id_t id) const
|
||||
{
|
||||
if (participants_.find(id) == participants_.end()) {
|
||||
return {};
|
||||
@@ -202,6 +202,16 @@ public:
|
||||
*/
|
||||
void print() const;
|
||||
|
||||
// Implicitly import should_include overloads from base class
|
||||
using common::model::diagram::should_include;
|
||||
|
||||
/**
|
||||
* @brief Convenience `should_include` overload for participant
|
||||
* @param p Participant model
|
||||
* @return True, if the participant should be included in the diagram
|
||||
*/
|
||||
bool should_include(const sequence_diagram::model::participant &p) const;
|
||||
|
||||
private:
|
||||
/**
|
||||
* This method checks the last messages in sequence (current_messages),
|
||||
|
||||
Reference in New Issue
Block a user