MCPcopy Create free account
hub / github.com/Icinga/icinga2 / operator^

Method operator^

lib/base/value-operators.cpp:412–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412Value icinga::operator^(const Value& lhs, const Value& rhs)
413{
414 if ((lhs.IsNumber() || lhs.IsEmpty()) && (rhs.IsNumber() || rhs.IsEmpty()) && !(lhs.IsEmpty() && rhs.IsEmpty()))
415 return static_cast<int>(lhs) ^ static_cast<int>(rhs);
416 else
417 BOOST_THROW_EXCEPTION(std::invalid_argument("Operator & cannot be applied to values of type '" + lhs.GetTypeName() + "' and '" + rhs.GetTypeName() + "'"));
418}
419
420Value icinga::operator^(const Value& lhs, double rhs)
421{

Callers

nothing calls this directly

Calls 4

IsNumberMethod · 0.80
ValueClass · 0.70
IsEmptyMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected