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 70 of file Parser.h.

Constructor & Destructor Documentation

◆ OverrideParamWalker()

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

Definition at line 73 of file Parser.h.

73 : _map(map) {}
const CompileParamWalker::ParamMap & _map
Definition: Parser.h:79

Member Function Documentation

◆ walk()

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

Definition at line 194 of file Parser.C.

197 {
198  const auto it = _map.find(fullpath);
199  if (it != _map.end())
200  warnings.push_back(hit::errormsg(n,
201  " Parameter '",
202  fullpath,
203  "' overrides the same parameter in ",
204  it->second->filename(),
205  ":",
206  it->second->line()));
207 }
std::vector< std::string > warnings
Definition: Parser.h:76
const CompileParamWalker::ParamMap & _map
Definition: Parser.h:79

Member Data Documentation

◆ _map

const CompileParamWalker::ParamMap& OverrideParamWalker::_map
private

Definition at line 79 of file Parser.h.

Referenced by walk().

◆ warnings

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

Definition at line 76 of file Parser.h.

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


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