OpenASIP  2.0
Static Public Member Functions | List of all members
ContainerTools Class Reference

#include <ContainerTools.hh>

Collaboration diagram for ContainerTools:
Collaboration graph

Static Public Member Functions

template<typename ContainerType , typename ElementType >
static bool containsValue (const ContainerType &aContainer, const ElementType &aKey)
 
template<typename ContainerType , typename ElementType >
static bool removeValueIfExists (ContainerType &aContainer, const ElementType &aKey)
 
template<typename ContainerType , typename ElementType >
static bool deleteValueIfExists (ContainerType &aContainer, const ElementType &aKey)
 
template<typename ContainerType >
static void removeValues (ContainerType &aContainer, const ContainerType &toRemove)
 
template<typename E , typename I >
static void swapRemoveValue (std::vector< E > &aContainer, I index)
 

Detailed Description

Definition at line 39 of file ContainerTools.hh.

Member Function Documentation

◆ containsValue()

template<typename ContainerType , typename ElementType >
static bool ContainerTools::containsValue ( const ContainerType &  aContainer,
const ElementType &  aKey 
)
static

◆ deleteValueIfExists()

template<typename ContainerType , typename ElementType >
static bool ContainerTools::deleteValueIfExists ( ContainerType &  aContainer,
const ElementType &  aKey 
)
static

◆ removeValueIfExists()

template<typename ContainerType , typename ElementType >
static bool ContainerTools::removeValueIfExists ( ContainerType &  aContainer,
const ElementType &  aKey 
)
static

◆ removeValues()

template<typename ContainerType >
static void ContainerTools::removeValues ( ContainerType &  aContainer,
const ContainerType &  toRemove 
)
static

◆ swapRemoveValue()

template<typename E , typename I >
static void ContainerTools::swapRemoveValue ( std::vector< E > &  aContainer,
index 
)
static

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