SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_workflow_OperationFilterSort_h
11 #define smtk_workflow_OperationFilterSort_h
13 #include "smtk/CoreExports.h"
17 #include "smtk/operation/Metadata.h"
50 using Index = smtk::operation::Operation::Index;
54 std::string description;
58 using WorkingSet = std::set<Index>;
59 using Output = std::vector<Index>;
60 using FilterList = std::map<Index, Data>;
61 using Observer = std::function<void()>;
67 FilterList& filterList() {
return m_filterList; }
68 const FilterList& filterList()
const {
return m_filterList; }
71 void apply(
const WorkingSet& workingSet, Output& operationsToDisplay);
75 const Observers& observers()
const {
return m_observers; }
78 void triggerObservers()
const;
81 OperationFilterSort();
83 FilterList m_filterList;
84 Observers m_observers;
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
std::enable_if< I==sizeof...(Ts), void >::type apply(Functor &f, std::tuple< Ts... > tup)
Apply a functor to each element of a tuple.
Definition: TupleTraits.h:455
Observers & observers()
Return the observers associated filter sort.
Definition: OperationFilterSort.h:74
#define smtkCreateMacro(...)
Add static create() methods to a class.
Definition: SharedFromThis.h:173
#define smtkEnableSharedPtr(...)
An abbreviation for enabling shared pointers.
Definition: SharedFromThis.h:214
Choose how to present operations to users.
Definition: OperationFilterSort.h:47
Macros for dealing with shared-pointer classes.
#define smtkTypeMacroBase(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:131