comparison data/model/Dense3DModelPeakCache.cpp @ 1155:546d4e417346 3.0-integration

Tidy a bit
author Chris Cannam
date Fri, 22 Jan 2016 17:08:02 +0000
parents ece369c5bb68
children 2dc27f0f97ad
comparison
equal deleted inserted replaced
1154:aa588c391d1a 1155:546d4e417346
37 } 37 }
38 38
39 Dense3DModelPeakCache::~Dense3DModelPeakCache() 39 Dense3DModelPeakCache::~Dense3DModelPeakCache()
40 { 40 {
41 delete m_cache; 41 delete m_cache;
42 }
43
44 bool
45 Dense3DModelPeakCache::isColumnAvailable(int column) const
46 {
47 if (!m_source) return false;
48 if (haveColumn(column)) return true;
49 for (int i = m_resolution; i > 0; ) {
50 --i;
51 if (!m_source->isColumnAvailable(column * m_resolution + i)) {
52 return false;
53 }
54 }
55 return true;
56 } 42 }
57 43
58 Dense3DModelPeakCache::Column 44 Dense3DModelPeakCache::Column
59 Dense3DModelPeakCache::getColumn(int column) const 45 Dense3DModelPeakCache::getColumn(int column) const
60 { 46 {