https://mooseframework.inl.gov
Public Member Functions | Public Attributes | Private Attributes | List of all members
OverrideParamWalker Class Reference

#include <Parser.h>

Inheritance diagram for OverrideParamWalker:
[legend]

Public Member Functions

 OverrideParamWalker (const CompileParamWalker::ParamMap &map)
 
void walk (const std::string &fullpath, const std::string &, hit::Node *n) override
 

Public Attributes

std::vector< std::string > warnings
 

Private Attributes

const CompileParamWalker::ParamMap_map
 

Detailed Description

Definition at line 83 of file Parser.h.

Constructor & Destructor Documentation

◆ OverrideParamWalker()

OverrideParamWalker::OverrideParamWalker ( const CompileParamWalker::ParamMap map)
inline

Definition at line 86 of file Parser.h.

86 : _map(map) {}
const CompileParamWalker::ParamMap & _map
Definition: Parser.h:92

Member Function Documentation

◆ walk()

void OverrideParamWalker::walk ( const std::string &  fullpath,
const std::string &  ,
hit::Node *  n 
)
override

Definition at line 200 of file Parser.C.

203 {
204  const auto it = _map.find(fullpath);
205  if (it != _map.end())
206  warnings.push_back(hit::errormsg(n,
207  " Parameter '",
208  fullpath,
209  "' overrides the same parameter in ",
210  it->second->filename(),
211  ":",
212  it->second->line()));
213 }
std::vector< std::string > warnings
Definition: Parser.h:89
const CompileParamWalker::ParamMap & _map
Definition: Parser.h:92

Member Data Documentation

◆ _map

const CompileParamWalker::ParamMap& OverrideParamWalker::_map
private

Definition at line 92 of file Parser.h.

Referenced by walk().

◆ warnings

std::vector<std::string> OverrideParamWalker::warnings

Definition at line 89 of file Parser.h.

Referenced by Parser::parse(), and walk().


The documentation for this class was generated from the following files: