ATLAS Offline Software
Loading...
Searching...
No Matches
HandleKeyArray< T > Class Reference

class to hold an array of HandleKeys More...

#include <HandleKeyArray.h>

Collaboration diagram for HandleKeyArray< T >:

Detailed Description

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"} };


The documentation for this class was generated from the following file: