MCPcopy Create free account
hub / github.com/Icinga/icinga2 / IsScalar

Method IsScalar

lib/base/value.cpp:125–128  ·  view source on GitHub ↗

* Checks whether the variant is scalar (i.e. not an object and not empty). * * @returns true if the variant is scalar, false otherwise. */

Source from the content-addressed store, hash-verified

123 * @returns true if the variant is scalar, false otherwise.
124 */
125bool Value::IsScalar() const
126{
127 return !IsEmpty() && !IsObject();
128}
129
130/**
131* Checks whether the variant is a number.

Callers 4

ResolveMacrosMethod · 0.80
InternalResolveMacrosMethod · 0.80
GetServiceByShortNameMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected