ATLAS Offline Software
Loading...
Searching...
No Matches
TGCDatabase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace MuonTGC_Cabling
8{
9
11 : m_type(vtype)
12{
13}
14
16 const std::string& vfilename,
17 const std::string& vblockname)
18 : m_filename(vfilename),
19 m_blockname(vblockname),
20 m_type(vtype)
21{
22}
23
27
28int TGCDatabase::getEntry(int entry, int column) const {
29 return m_database[entry].at(column);
30}
31
32int TGCDatabase::getEntrySize(int entry) const {
33 return m_database[entry].size();
34}
35
36int TGCDatabase::getMaxEntry(void) const {
37 return m_database.size();
38}
39
40bool TGCDatabase::update(const std::vector<int>&)
41{
42 // not implemented in the base class
43 return false;
44}
45
46int TGCDatabase::find(const std::vector<int>&) const
47{
48 // not implemented in the base class
49 return -1;
50}
51
52int TGCDatabase::getIndexDBIn(int* indexIn) const
53{
54 // not implemented in the base class
55 if(!indexIn) return -1;
56
57 return -1;
58}
59
60int TGCDatabase::getIndexDBOut(int* indexOut) const
61{
62 // not implemented in the base class
63 if(!indexOut) return -1;
64
65 return -1;
66}
67
68} // end of namespace
virtual int getIndexDBIn(int *indexIn) const
virtual int getMaxEntry(void) const
virtual bool update(const std::vector< int > &)
std::vector< std::vector< int > > m_database
Definition TGCDatabase.h:54
TGCDatabase(DatabaseType type=NoDatabaseType)
virtual int getEntry(int entry, int column) const
virtual int find(const std::vector< int > &) const
virtual int getIndexDBOut(int *indexOut) const
virtual int getEntrySize(int entry) const