MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / ChaiScriptDerived

Method ChaiScriptDerived

samples/inheritance.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36{
37 public:
38 ChaiScriptDerived(const std::vector<chaiscript::Boxed_Value> &t_funcs)
39 {
40 // using the range-checked .at() methods to give us an exception
41 // instead of a crash if the user passed in too-few params
42 tie(t_funcs.at(0), m_doSomethingImpl);
43 tie(t_funcs.at(1), m_validateValueImpl);
44 }
45
46 std::string doSomething(float f, double d) const override
47 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected