MCPcopy Create free account
hub / github.com/devosoft/avida / Register

Method Register

avida-core/source/actions/cActionLibrary.h:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 static cActionLibrary& GetInstance();
52
53 template<typename ClassType> bool Register(const Apto::String& key)
54 {
55 ClassDescFunction func;
56 Apto::String lkey(key.AsLower());
57 if (m_desc_funcs.Get(lkey, func)) return false;
58 m_desc_funcs.Set(lkey, &ClassType::GetDescription);
59 return m_factory.Register<ClassType>(lkey);
60 }
61 bool Unregister(const Apto::String& key)
62 {
63 Apto::String lkey(key.AsLower());

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected