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

Method Instantiate

lib/base/type.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134Object::Ptr Type::Instantiate(const std::vector<Value>& args) const
135{
136 ObjectFactory factory = GetFactory();
137
138 if (!factory)
139 BOOST_THROW_EXCEPTION(std::runtime_error("Type does not have a factory function."));
140
141 return factory(args);
142}
143
144bool Type::IsAbstract() const
145{

Callers 4

DeserializeObjectFunction · 0.80
ConstructorCallMethod · 0.80
CommitMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected