Added test case for context filter with radius option

This commit is contained in:
Bartek Kryza
2023-11-10 22:30:32 +01:00
parent 055897f11b
commit 39d3e1f0b0
10 changed files with 429 additions and 68 deletions

View File

@@ -175,6 +175,15 @@ public:
template <typename ElementT>
opt_ref<ElementT> find(diagram_element::id_t id) const;
/**
* @brief Get reference to vector of elements of specific type
*
* @tparam ElementT Type of elements view
* @return Reference to elements vector
*/
template <typename ElementT>
const common::reference_vector<ElementT> &elements() const;
/**
* @brief Add element to the diagram at a specified nested path.
*
@@ -383,6 +392,12 @@ opt_ref<ElementT> diagram::find(diagram_element::id_t id) const
return {};
}
template <typename ElementT>
const common::reference_vector<ElementT> &diagram::elements() const
{
return element_view<ElementT>::view();
}
//
// Template method specialization pre-declarations...
//