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 three ways. 1: with an std::vector<HandleKey> as a parameter SG::Cond<foo>::ReadHandleKeyArray m_foo ( std::vector<ReadCondHandleKey> ); SG::Cond<foo>::WriteHandleKeyArray m_foo ( std::vector<WriteCondHandleKey> ); 2: with an initializer list of HandleKeys SG::Cond<foo>::ReadHandleKeyArray m_foo { ReadCondHandleKey<foo> k1, ReadCondHandleKey<foo> k2 }; SG::Cond<foo>::WriteHandleKeyArray m_foo { WriteCondHandleKey<foo> k1, WriteCondHandleKey<foo> k2 }; 3: with an initializer list of std::strings, that will be used to internally create HandleKeys with those initializers SG::Cond<foo>::ReadHandleKeyArray m_foo { "key1", "key2", "key3" }; SG::Cond<foo>::WriteHandleKeyArray m_foo { "key1", "key2", "key3" };