GeoModel - GeoModelCore
CellPartitioning.cxx
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GeoModelKernel/CellPartitioning.h"
6 
7 CellPartitioning::CellPartitioning(unsigned int firstDivisionNumber):
8  m_firstDivisionNumber(firstDivisionNumber)
9 {
10 }
11 
12 CellPartitioning::CellPartitioning(const CellPartitioning& right):
13  m_partition(right.m_partition),
14  m_firstDivisionNumber(right.m_firstDivisionNumber)
15 {
16 }
17 
18 CellPartitioning::~CellPartitioning()
19 {
20 }
21 
22 CellPartitioning& CellPartitioning::operator=(const CellPartitioning& right)
23 {
24  if (this!=&right) {
25  m_partition=right.m_partition;
26  m_firstDivisionNumber = right.m_firstDivisionNumber;
27  }
28  return *this;
29 }
30 
31 void CellPartitioning::addValue(double xVal)
32 {
33  m_partition.push_back(xVal);
34 }
35