Parasol Planning Library (PPL)
Functions
CDInfo.cpp File Reference
#include "CDInfo.h"
#include "Geometry/Bodies/Body.h"
#include "Geometry/Bodies/MultiBody.h"
#include <limits>
Include dependency graph for CDInfo.cpp:

Functions

template<template< typename... > class MapType, typename KeyType , typename ValueType >
void UpdateMinimum (MapType< KeyType, ValueType > &_map, const KeyType _key, const ValueType _value)
 

Function Documentation

◆ UpdateMinimum()

template<template< typename... > class MapType, typename KeyType , typename ValueType >
void UpdateMinimum ( MapType< KeyType, ValueType > &  _map,
const KeyType  _key,
const ValueType  _value 
)

Insert a value into a map if it didn't already exist, or update it if it is less than the existing value.

Parameters
_mapThe map container.
_keyThe key.
_valueThe value. It will be set if _key was not already in _map, or if it is lower than the value currently mapped to _key.