ATLAS Offline Software
Loading...
Searching...
No Matches
AODCollWidget.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// //
8// Implementation of class AODCollWidget //
9// //
10// Author: edward.moyse@cern.ch //
11// Initial version: June 2015 //
12// //
14
15#include "AODCollWidget.h"
16
17#include "VP1Base/VP1Msg.h"
18
19//____________________________________________________________________
21public:
23 static bool sectionSorting(const QString &s1, const QString &s2)
24 {
25 VP1Msg::messageDebug("AODCollWidget::Imp::sectionSorting() - s1: " + s1 + ", s2: " + s2);
26 return true; //FIXME! Don't really care about this for the moment.
27 }
28};
29
31
32//____________________________________________________________________
33void AODCollWidget::sortSections(QList<QString>& sections)
34{
35 Imp::theclass = this;//I guess this is not really threadsafe...
36 std::sort(sections.begin(),sections.end(),Imp::sectionSorting);
37 Imp::theclass = 0;
38}
static bool sectionSorting(const QString &s1, const QString &s2)
static AODCollWidget * theclass
void sortSections(QList< QString > &)
AODCollWidget(QWidget *parent=0)
static void messageDebug(const QString &)
Definition VP1Msg.cxx:39
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.