SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Decorate operations that should be presented to the user. More...
#include <OperationDecorator.h>
Classes | |
class | Entry |
An entry indicating how to present an operation to users. More... | |
Public Types | |
using | Override = std::pair< bool, std::reference_wrapper< const Entry > > |
Public Member Functions | |
OperationDecorator (std::initializer_list< Entry > entries) | |
OperationDecorator (const std::shared_ptr< smtk::operation::Manager > &manager, const Configuration::Component &config) | |
void | dump () const |
Print debug info. | |
int | insert (const Entry &entry) |
Add an entry for an operation. | |
template<typename OperationType > | |
Override | at () const |
Return the entry for an operation. | |
Override | at (smtk::operation::Operation::Index index) const |
Return the entry for an operation. | |
std::size_t | size () const |
Return the number of operation entries. | |
Static Public Member Functions | |
static Override | none () |
Protected Attributes | |
std::set< Entry > | m_entries |
Decorate operations that should be presented to the user.
This class should be used to whitelist, decorate, group, and/or sort sets of operations that will be presented to users.
You may construct an operation decorator in three ways:
If you choose to configure an operation decorator using view configuration information, it should follow the example below