#include <ParserNode.h>
|
template<typename T > |
decltype(auto) | operator() (T t) |
|
Definition at line 2228 of file ParserNode.h.
template<typename T >
decltype(auto) Parser::PositiveOrZeroValidate::operator() |
( |
T |
t | ) |
|
|
inline |
Definition at line 2230 of file ParserNode.h.
2231 const std::string property_name(boost::to_upper_copy<std::string>(*t->get_name()));
2232 if (!dynamic_cast<const IntLiteral*>(t->get_value())) {
2233 throw std::runtime_error(property_name +
" must be an integer literal.");
2235 const auto val =
static_cast<const IntLiteral*
>(t->get_value())->get_intval();
2237 throw std::runtime_error(property_name +
" must be greater than or equal to 0.");
The documentation for this struct was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/Parser/ParserNode.h