ATLAS Offline Software
Loading...
Searching...
No Matches
RtRelationContainer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace TRTCond
8{
9
11 {
12 // delete owned objects
13 clear() ;
14 }
15
21
23 {
24 // this is a bit tricky since we own the contents. the following
25 // solution is not particularly efficient, , but the least amount
26 // of work for me.
27
28 // first delete owned objects
29 clear() ;
30
31 // now create a 'FlatContainer'
32 FlatContainer allentries;
33 rhs.getall(allentries) ;
34
35 // store them one-by-one
36 for(const auto & allentrie : allentries)
37 set( allentrie.first, *(allentrie.second) ) ;
38
39 return *this ;
40 }
41
42}
Class for storing/accessing trt rtrelations.
std::vector< std::pair< ExpandedIdentifier, const RtRelation ** > > FlatContainer
Nested container class, ie a base class at level l with daugthers at level l+1.
virtual ~RtRelationContainer()
destructor
RtRelationContainer & operator=(const RtRelationContainer &rhs)
assignment
RtRelationContainer()
default constructor
Base class for rt-relations in the TRT.
Definition RtRelation.h:27
NestedContainerPointerTrait< RtRelation * > RtRelationTrait