Unity Scopes API
|
Captures state of multiple filters. More...
#include <unity/scopes/FilterState.h>
Public Member Functions | |
FilterState () | |
Constructs a an empty filter state instance. | |
bool | has_filter (std::string const &id) const |
Check if state for the given filter has been stored. More... | |
void | remove (std::string const &id) |
Removes the state for a specific filter. More... | |
Copy and assignment | |
Copy and assignment operators (move and non-move versions) have the usual value semantics. | |
FilterState (FilterState const &other) | |
FilterState (FilterState &&) | |
FilterState & | operator= (FilterState const &other) |
FilterState & | operator= (FilterState &&other) |
Captures state of multiple filters.
State can be examined by passing an instance of FilterState to appropriate methods of filters (FilterBase implementations).
bool unity::scopes::FilterState::has_filter | ( | std::string const & | id | ) | const |
Check if state for the given filter has been stored.
void unity::scopes::FilterState::remove | ( | std::string const & | id | ) |
Removes the state for a specific filter.
id | The identity of the filter to remove. |