#include <FindClosest_fwd.hpp>
Class representing the engine for finding supports consisting of closest nodes.
Usage example:
Definition at line 23 of file FindClosest_fwd.hpp.
Collaboration diagram for mm::FindClosest:Public Member Functions | |
| FindClosest (int support_size) | |
| Constructs an engine for finding support with given support size. More... | |
| FindClosest & | forNodes (indexes_t for_which) |
| Find support only for these nodes. More... | |
| FindClosest & | searchAmong (indexes_t search_among) |
| Search only among given nodes. More... | |
| FindClosest & | forceSelf (bool b=true) |
| Put each node as the first of its support, even if it is not included in searchAmong(). More... | |
| FindClosest & | numClosest (int num) |
Find num closest nodes. This methods overrides the value set in the constructor. More... | |
| template<typename domain_t > | |
| void | operator() (domain_t &domain) const |
| Find support for nodes in domain. More... | |
Private Attributes | |
| int | support_size |
| Support size. More... | |
| Range< int > | for_which_ |
| Find support only for these nodes. More... | |
| Range< int > | search_among_ |
| Search only among these nodes. More... | |
| bool | force_self_ |
| Force each node as the first element of its support. More... | |
|
inline |
Constructs an engine for finding support with given support size.
Definition at line 32 of file FindClosest_fwd.hpp.
|
inline |
Put each node as the first of its support, even if it is not included in searchAmong().
Definition at line 46 of file FindClosest_fwd.hpp.
|
inline |
Find support only for these nodes.
If not given, finds support for all non-zero type domain nodes, as defined by domain.all().
Definition at line 38 of file FindClosest_fwd.hpp.
|
inline |
Find num closest nodes. This methods overrides the value set in the constructor.
Definition at line 48 of file FindClosest_fwd.hpp.
| template void mm::FindClosest::operator() | ( | domain_t & | domain | ) | const |
Find support for nodes in domain.
Definition at line 21 of file FindClosest.hpp.
|
inline |
Search only among given nodes.
If not given, searches among all nodes, including zero-type nodes.
Definition at line 43 of file FindClosest_fwd.hpp.
|
private |
Find support only for these nodes.
Definition at line 26 of file FindClosest_fwd.hpp.
|
private |
Force each node as the first element of its support.
Definition at line 28 of file FindClosest_fwd.hpp.
|
private |
Search only among these nodes.
Definition at line 27 of file FindClosest_fwd.hpp.
|
private |
Support size.
Definition at line 25 of file FindClosest_fwd.hpp.