https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ReporterMode.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#include "ReporterMode.h"
15
16ReporterMode::ReporterMode(const std::string & key) : MooseEnumItem(key, ID_COUNTER++) {}
17
19
21
22void
27
28void
30{
31 _items.clear();
32}
const ReporterMode REPORTER_MODE_UNSET("UNSET")
const ReporterMode REPORTER_MODE_DISTRIBUTED("DISTRIBUTED")
const ReporterMode REPORTER_MODE_REPLICATED("REPLICATED")
const ReporterMode REPORTER_MODE_ROOT("ROOT")
std::set< MooseEnumItem > _items
Storage for the assigned items.
const MooseEnumItem & addEnumerationItem(const MooseEnumItem &item)
Class for containing MooseEnum item information.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55
MooseEnumItem that automatically creates the ID and doesn't allow the ID to be assigned.
static int ID_COUNTER
ReporterMode(const std::string &key)
void insert(const ReporterMode &mode, Args... modes)
void clear()
Clear all available items (i.e., create an empty MooseEnum)