| 132 | } |
| 133 | |
| 134 | Object::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 | |
| 144 | bool Type::IsAbstract() const |
| 145 | { |
no outgoing calls
no test coverage detected