In newer versions of Clang calling operator[] on a map with a component that has a default constructor is an error, thus utilizing a map directly to store a ExecFlagEnum is not possible. More...
#include <AdvancedOutputUtils.h>
Public Member Functions | |
OutputMapWrapper () | |
Constructor. More... | |
T & | operator[] (const std::string &name) |
A map accessor that errors if the key is not found. More... | |
bool | contains (const std::string &name) const |
A method for testing of a key exists. More... | |
std::map< std::string, T >::iterator | begin () |
Provide iterator and find access to the underlying map data. More... | |
std::map< std::string, T >::iterator | end () |
std::map< std::string, T >::iterator | find (const std::string &name) |
std::map< std::string, T >::const_iterator | begin () const |
std::map< std::string, T >::const_iterator | end () const |
const std::map< std::string, T >::const_iterator | find (const std::string &name) const |
Protected Attributes | |
std::map< std::string, T > | _map |
Data storage. More... | |
In newer versions of Clang calling operator[] on a map with a component that has a default constructor is an error, thus utilizing a map directly to store a ExecFlagEnum is not possible.
This template class is a map wrapper that provides the basic map-like functionality for accessing map types with operator[] by using find internally. It also produces an error if the map key does not exists, this it provides a layer of protection not available to maps operator[] in general.
This class is used here to create two different warehouse containers below.
Definition at line 60 of file AdvancedOutputUtils.h.
|
inline |
|
inline |
Provide iterator and find access to the underlying map data.
Definition at line 84 of file AdvancedOutputUtils.h.
|
inline |
Definition at line 90 of file AdvancedOutputUtils.h.
|
inline |
A method for testing of a key exists.
Definition at line 101 of file AdvancedOutputUtils.h.
Referenced by AdvancedOutput::hasOutput(), AdvancedOutput::hasOutputHelper(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), and AdvancedOutput::wantOutput().
|
inline |
Definition at line 85 of file AdvancedOutputUtils.h.
Referenced by OutputMapWrapper< ExecFlagEnum >::contains(), and AdvancedOutput::wantOutput().
|
inline |
Definition at line 91 of file AdvancedOutputUtils.h.
|
inline |
Definition at line 86 of file AdvancedOutputUtils.h.
Referenced by OutputMapWrapper< ExecFlagEnum >::contains(), CSV::initialSetup(), and AdvancedOutput::wantOutput().
|
inline |
Definition at line 92 of file AdvancedOutputUtils.h.
|
inline |
A map accessor that errors if the key is not found.
Definition at line 71 of file AdvancedOutputUtils.h.
|
protected |
Data storage.
Definition at line 105 of file AdvancedOutputUtils.h.
Referenced by OutputMapWrapper< ExecFlagEnum >::begin(), OutputMapWrapper< ExecFlagEnum >::end(), OutputMapWrapper< ExecFlagEnum >::find(), and OutputMapWrapper< ExecFlagEnum >::operator[]().