TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsAlgorithm.h File Reference

Classes

class  ts::IOManipulatorProxy< OSTREAM, PARAM, TRAITS >

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.

Functions

template<typename ELEMENT, class CONTAINER>
bool ts::AppendUnique (CONTAINER &container, const ELEMENT &e)
template<typename T, class UnaryPredicate>
bool ts::EnumerateCombinations (const std::set< T > &values, const std::set< T > &fixed, size_t size, UnaryPredicate predicate)
template<class OSTREAM, class TRAITS = std::char_traits<typename OSTREAM::char_type>>
std::basic_ostream< typename OSTREAM::char_type, TRAITS > & ts::IOManipulator (std::basic_ostream< typename OSTREAM::char_type, TRAITS > &strm, OSTREAM &(OSTREAM::*func)())
template<class CONTAINER>
size_t ts::LargestSize (const CONTAINER &container)
template<class MAP>
std::list< typename MAP::key_type > ts::MapKeysList (const MAP &container)
template<class MAP>
std::set< typename MAP::key_type > ts::MapKeysSet (const MAP &container)
template<class MAP>
std::list< typename MAP::mapped_type > ts::MapValuesList (const MAP &container)
template<class OSTREAM, class PARAM, class TRAITS = std::char_traits<typename OSTREAM::char_type>>
std::basic_ostream< typename OSTREAM::char_type, TRAITS > & operator<< (std::basic_ostream< typename OSTREAM::char_type, TRAITS > &strm, const ts::IOManipulatorProxy< OSTREAM, PARAM, TRAITS > &proxy)
template<typename INT>
requires std::integral<INT>
std::vector< INT > ts::Range (INT first, INT last)
template<class CONTAINER>
void ts::RemoveDuplicates (CONTAINER &container)
template<class CONTAINER>
size_t ts::SmallestSize (const CONTAINER &container)

Detailed Description

Miscellaneous C++ algorithms supplementing the standard <algorithm>.

This file declares several template functions implementing general-purpose algorithms. This header may be considered as an extension of the standard header <algorithm>, implementing other algorithms.