ATLAS Offline Software
Loading...
Searching...
No Matches
TrigByteStreamToolsDict.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "CTPfragment/CTPExtraWordsFormat.h"
6#include "CTPfragment/CTPdataformat.h"
7#include <algorithm>
8
9// Declare some additional types
10//template class std::map<const CTPfragment::FolderIndex, CTPfragment::FolderEntry>;
11//template class std::pair<const CTPfragment::FolderIndex, CTPfragment::FolderEntry>;
12
13namespace {
14 std::map<const CTPfragment::FolderIndex, CTPfragment::FolderEntry>::iterator my_iter;
15 std::pair<const CTPfragment::FolderIndex, CTPfragment::FolderEntry> my_pair;
16}
17
18/* Type conversion. The reference returned by CTPfragment::ExtraPayload::getFolderUpdates
19 doesn't work as python iterator. */
20namespace CTPfragment {
21 std::map<const FolderIndex, FolderEntry> getFolderUpdates(const CTPfragment::ExtraPayload& x) {
22 std::map<const FolderIndex, FolderEntry> m;
23 const std::map<FolderIndex, FolderEntry>& f = x.getFolderUpdates();
24 std::copy(f.begin(), f.end(), std::inserter(m,m.end()));
25 return m;
26 }
27}
#define x
std::map< const FolderIndex, FolderEntry > getFolderUpdates(const CTPfragment::ExtraPayload &x)