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:

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

Go to the source code of this file.

Namespaces

namespace  hugin_utils

Functions

std::string hugin_utils::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.

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.

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(), SaveLensParameters(), HuginBase::PTools::setFullImage(), CPEditorPanel::setLeftImage(), CPEditorPanel::setRightImage(), and HuginBase::SmartOptimise::smartOptimize().

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 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(), MainFrame::RunAssistant(), 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.

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.

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

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(), MaskImageCtrl::DrawPolygon(), CPEditorPanel::FineTuneSelectedPoint(), PanoOperation::CleanControlPointsOperation::GetInternalCommand(), PanoOperation::RemoveControlPointsOperation::GetInternalCommand(), HuginBase::SmallRemappedImageCache::getRemapped(), HuginBase::SmallRemappedImageCache::invalidate(), main(), ImagesTreeCtrl::OnContextMenu(), ImagesTreeCtrl::OnHeaderContextMenu(), ImagesTreeCtrl::OnLeftDown(), MaskImageCtrl::OnRightMouseUp(), CPEditorPanel::OnTextPointChange(), HuginBase::PhotometricOptimizer::OptimData::OptimData(), HuginBase::Panorama::parseOptimizerScript(), PT::UpdateCropFactorCmd::processPanorama(), PT::SetActiveImagesCmd::processPanorama(), AutoCtrlPointCreator::readUpdatedControlPoints(), RemoveFromOptVec(), HuginBase::Panorama::removeImage(), ImagesList::SelectImages(), MaskImageCtrl::SelectPointsInsideMouseRect(), SetGeometricControlPointsUnconnected(), hugin_utils::traverseEdges(), hugin_utils::traverseVertices(), HuginBase::Panorama::updateCtrlPointErrors(), ImagesTreeCtrl::UpdateGroup(), PreviewLayoutLinesTool::updateLineInformation(), and ImagesTreeCtrl::UpdateOptimizerVariables().


Generated on 23 Oct 2014 for Hugintrunk by  doxygen 1.4.7