stl_utils.h File Reference

#include <functional>
#include <algorithm>
#include <utility>
#include <string>
#include <string.h>
#include <ctype.h>
#include <stdexcept>
#include <hugin_utils/utils.h>

Include dependency graph for stl_utils.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  hugin_utils

Functions

std::string tolower (const std::string &s)
 convert a string to lowercase
template<typename _Container>
bool set_contains (const _Container &c, const typename _Container::key_type &key)
template<typename _Container>
void fill_set (_Container &c, typename _Container::key_type begin, typename _Container::key_type end)
template<typename Map>
Map::mapped_type & map_get (Map &m, const typename Map::key_type &key)
 get a map element.
template<typename Map>
const Map::mapped_type & const_map_get (const Map &m, const typename Map::key_type &key)
template<typename Map>
Map::mapped_type & map_get (Map &m, const char *key)
template<typename Map>
const Map::mapped_type & const_map_get (const Map &m, const char *key)


Function Documentation

template<typename Map>
const Map::mapped_type& const_map_get const Map &  m,
const char *  key
 

Definition at line 126 of file stl_utils.h.

References DEBUG_WARN.

Referenced by OptimizePanel::AskApplyResult(), HuginBase::CalculateMeanExposure::calcMeanExposure(), HuginBase::StraightenPanorama::calcStraighteningRotation(), HuginBase::Lens::getFocalLength(), HuginBase::Lens::getHFOV(), HuginBase::PTools::initCPrefs(), ImageVariableDialog::InitValues(), HFOVDialog::OnLoadLensParameters(), GLPreviewFrame::panoramaChanged(), CPEditorPanel::panoramaImagesChanged(), SaveLensParameters(), HuginBase::PTools::setFullImage(), CPEditorPanel::setLeftImage(), CPEditorPanel::setRightImage(), and HuginBase::SmartOptimise::smartOptimize().

template<typename Map>
const Map::mapped_type& const_map_get const Map &  m,
const typename Map::key_type &  key
 

Definition at line 101 of file stl_utils.h.

References DEBUG_WARN.

template<typename _Container>
void fill_set _Container &  c,
typename _Container::key_type  begin,
typename _Container::key_type  end
[inline]
 

Definition at line 72 of file stl_utils.h.

Referenced by AutoPanoSiftMultiRowStack::automatch(), AutoPanoSiftMultiRow::automatch(), HuginBase::PTools::calcCtrlPointErrors(), HuginBase::CalculateImageOverlap::CalculateImageOverlap(), ImagesPanel::CPGenerate(), PanoPanel::DoStitch(), PossiblePano::GeneratePanorama(), PanoOperation::ResetOperation::GetInternalCommand(), PanoOperation::RemoveControlPointsOperation::GetInternalCommand(), main(), main2(), DragTool::MouseButtonEvent(), OptimizePhotometricPanel::OnOptimizeButton(), OptimizePanel::OnOptimizeButton(), MaskImageCtrl::OnRightMouseDown(), iCPApp::OnRun(), MainFrame::OnSaveProject(), LensCalFrame::OnSaveProject(), MainFrame::OnSavePTStitcherAs(), HuginBase::PTools::optimize(), ImagesTreeCtrl::panoramaChanged(), ImagesTreeCtrl::panoramaImagesChanged(), MainFrame::RunAssistant(), OptimizePanel::runOptimizer(), MaskImageCtrl::selectAllMarkers(), ImagesTreeCtrl::SelectAllParameters(), ImagesTreeCtrl::SetGroupMode(), and RunStitchPanel::StitchProject().

template<typename Map>
Map::mapped_type& map_get Map &  m,
const char *  key
 

Definition at line 114 of file stl_utils.h.

References DEBUG_WARN.

Referenced by HuginBase::PTools::Transform::createInvTransform(), HuginBase::PTools::Transform::createTransform(), PanoOperation::ResetOperation::GetInternalCommand(), LoadLensParametersChoose(), PanoDetector::matchMultiRow(), PanoDetector::matchPrealigned(), HuginBase::Lens::setEV(), HuginBase::Lens::setHFOV(), and HuginBase::Panorama::updateLineCtrlPoints().

template<typename Map>
Map::mapped_type& map_get Map &  m,
const typename Map::key_type &  key
 

get a map element.

does not create a new element in the map, like operator[] does

Throws an error if the element does not exist

Definition at line 89 of file stl_utils.h.

References DEBUG_WARN.

template<typename _Container>
bool set_contains const _Container &  c,
const typename _Container::key_type &  key
[inline]
 

Definition at line 65 of file stl_utils.h.

Referenced by AddToOptVec(), AutoPanoSiftPreAlign::automatch(), MaskImageCtrl::DrawPolygon(), CPEditorPanel::FineTuneSelectedPoint(), PanoOperation::CleanControlPointsOperation::GetInternalCommand(), PanoOperation::RemoveControlPointsOperation::GetInternalCommand(), HuginBase::SmallRemappedImageCache::getRemapped(), HuginBase::SmallRemappedImageCache::invalidate(), main(), PanoDetector::match(), PanoDetector::matchMultiRow(), PanoDetector::matchPrealigned(), ImagesTreeCtrl::OnContextMenu(), ImagesTreeCtrl::OnHeaderContextMenu(), ImagesTreeCtrl::OnLeftDown(), MaskImageCtrl::OnRightMouseUp(), CPEditorPanel::OnTextPointChange(), HuginBase::PhotometricOptimizer::OptimData::OptimData(), PreviewFrame::panoramaImagesChanged(), MaskEditorPanel::panoramaImagesChanged(), GLPreviewFrame::panoramaImagesChanged(), HuginBase::Panorama::parseOptimizerScript(), PT::UpdateCropFactorCmd::processPanorama(), PT::SetActiveImagesCmd::processPanorama(), AutoCtrlPointCreator::readUpdatedControlPoints(), RemoveFromOptVec(), OptimizePhotometricPanel::runOptimizer(), ImagesList::SelectImages(), MaskImageCtrl::SelectPointsInsideMouseRect(), SetGeometricControlPointsUnconnected(), hugin_utils::traverseEdges(), hugin_utils::traverseVertices(), UnLinkVars(), HuginBase::Panorama::updateCtrlPointErrors(), ImagesTreeCtrl::UpdateGroup(), PreviewLayoutLinesTool::updateLineInformation(), and ImagesTreeCtrl::UpdateOptimizerVariables().

std::string tolower const std::string s  )  [inline]
 

convert a string to lowercase

Definition at line 49 of file stl_utils.h.

Referenced by BuildMountName(), HuginBase::LensDB::LensDB::FindLens(), and HuginBase::LensDB::LensDB::FindLenses().


Generated on Mon Sep 15 01:25:43 2014 for Hugintrunk by  doxygen 1.3.9.1