ATLAS Offline Software
Loading...
Searching...
No Matches
TOBArray.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4// TOBArray.cxx
5// TopoCore
6// Created by Joerg Stelzer on 11/17/12.
7
13
14#include <algorithm>
15
16void TCS::TOBArray::print(std::ostream &o) const {
17 for(const_iterator tob = m_data.begin(); tob != m_data.end(); ++tob) {
18 if( tob!=begin() ) o << std::endl;
19 o << **tob;
20 }
21}
22
23void
27
28void
30 std::sort(m_data.begin(), m_data.end(), fnc);
31}
static CompositeTOB * createOnHeap(const CompositeTOB &tob)
data_t::const_iterator const_iterator
virtual void print(std::ostream &) const
Definition TOBArray.cxx:16
void push_back(const CompositeTOB &tob)
Definition TOBArray.cxx:24
void sort(sort_fnc)
Definition TOBArray.cxx:29
bool sort_fnc(GenericTOB *tob1, GenericTOB *tob2)
Definition TOBArray.h:22
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.