bpp-core3  3.0.0
bpp::MapTools Class Reference

A fiew tools working on map objects. More...

#include <Bpp/Utils/MapTools.h>

Static Public Member Functions

template<class Key , class T , class Cmp >
static std::vector< Key > getKeys (const std::map< Key, T, Cmp > &myMap)
 Get a vector of all keys in a map. More...
 
template<class Key , class T >
static std::vector< Key > getKeys (const std::map< Key, T > &myMap)
 Get a vector of all keys in a map. More...
 
template<class Key , class T , class Cmp >
static std::vector< T > getValues (const std::map< Key, T, Cmp > &myMap)
 Get a vector of all values in a map. More...
 
template<class Key , class T >
static std::vector< T > getValues (const std::map< Key, T > &myMap)
 Get a vector of all values in a map. More...
 

Detailed Description

A fiew tools working on map objects.

Definition at line 53 of file MapTools.h.

Member Function Documentation

◆ getKeys() [1/2]

template<class Key , class T >
static std::vector<Key> bpp::MapTools::getKeys ( const std::map< Key, T > &  myMap)
inlinestatic

Get a vector of all keys in a map.

Parameters
myMapthe map to check.
Returns
a vector of all keys.

Definition at line 80 of file MapTools.h.

◆ getKeys() [2/2]

template<class Key , class T , class Cmp >
static std::vector<Key> bpp::MapTools::getKeys ( const std::map< Key, T, Cmp > &  myMap)
inlinestatic

Get a vector of all keys in a map.

Parameters
myMapthe map to check.
Returns
a vector of all keys.

Definition at line 63 of file MapTools.h.

Referenced by bpp::AbstractColorSet::getColorNames().

◆ getValues() [1/2]

template<class Key , class T >
static std::vector<T> bpp::MapTools::getValues ( const std::map< Key, T > &  myMap)
inlinestatic

Get a vector of all values in a map.

Parameters
myMapthe map to check.
Returns
a vector of all values.

Definition at line 114 of file MapTools.h.

◆ getValues() [2/2]

template<class Key , class T , class Cmp >
static std::vector<T> bpp::MapTools::getValues ( const std::map< Key, T, Cmp > &  myMap)
inlinestatic

Get a vector of all values in a map.

Parameters
myMapthe map to check.
Returns
a vector of all values.

Definition at line 97 of file MapTools.h.


The documentation for this class was generated from the following file: