![]() |
ATLAS Offline Software
|
class to hold an array of HandleKeys More...
#include <HandleKeyArray.h>
class to hold an array of HandleKeys
since it inherits from std::vector, all vector operations are permitted.
initialization can be done in four ways. 1: with an std::vector<HandleKey> as a parameter SG::ReadHandleKeyArray<foo> m_foo ( std::vector<ReadHandleKey>(...) ); SG::WriteHandleKeyArray<foo> m_foo ( std::vector<WriteCondHandleKey>(...) ); 2: with an initializer list of HandleKeys SG::ReadHandleKeyArray<foo> m_foo { ReadHandleKey<foo>(...), ReadHandleKey<foo> (...) }; SG::WriteHandleKeyArray<foo> m_foo { WriteCondHandleKey<foo> (...), WriteCondHandleKey<foo> (...) }; 3: with an initializer list of std::strings, that will be used to internally create HandleKeys with those initializers SG::ReadHandleKeyArray<foo> m_foo { "key1", "key2", "key3" }; SG::WriteHandleKeyArray<foo> m_foo { "key1", "key2", "key3" }; 4: For decorations only: with a container handle and an initializer list of std::strings. The strings will be used to internally create HandleKeys, all with the same container key. SG::ReadHandleKey<foo> m_fooCont ("foo"); SG::ReadDecorHandleKeyArray<foo> m_foo { m_fooCont, {"key1", "key2", "key3"} }; SG::WriteDecorHandleKeyArray<foo> m_foo { m_fooCont, {"key1", "key2", "key3"} };