triskele/include/TreeStats.tpp
Git Merciol caa6e85da2 modifié : MakefileNoOTB
modifié :         include/ArrayTree/ArrayTreeBuilder.hpp
	modifié :         include/ArrayTree/ArrayTreeBuilder.tpp
	modifié :         include/TreeStats.hpp
	modifié :         include/TreeStats.tpp
	modifié :         src/TreeStats.cpp
2018-03-14 14:27:59 +01:00

25 lines
627 B
C++

#ifndef _OTB_TRISKELE_TREE_STATS_TPP
#define _OTB_TRISKELE_TREE_STATS_TPP
// ========================================
inline void
TreeStats::addDim (const TreeType &treeType, const DimImg& leafCount, const DimImg& compCount) {
leavesStats[treeType] (leafCount);
compStats[treeType] (compCount);
}
inline void
TreeStats::addTime (const TimeType &timeType, const double &duration) {
timeStats[timeType] (duration);
}
inline const TreeStatsDouble &
TreeStats::getTimeStats (const TimeType &timeType) {
return timeStats [timeType];
}
// ========================================
#endif // _OTB_TRISKELE_TREE_STATS_TPP