Predator
[unstable] git snapshot
|
#include <algorithm>
#include <cstring>
Go to the source code of this file.
Macros | |
#define | STREQ(s1, s2) (0 == strcmp(s1, s2)) |
#define | FIXW(w) std::fixed << std::setfill('0') << std::setw(w) |
#define | RETURN_IF_COMPARED(a, b, member) |
Functions | |
template<typename T > | |
void | swapValues (T &a, T &b) |
template<typename T > | |
void | sortValues (T &a, T &b) |
template<typename TCont > | |
bool | hasItem (const TCont &cont, const typename TCont::value_type &key) |
template<typename TCont > | |
bool | hasKey (const TCont &cont, const typename TCont::key_type &key) |
template<typename TCont > | |
bool | hasKey (const TCont *cont, const typename TCont::key_type &key) |
template<typename TCont > | |
bool | insertOnce (TCont &cont, const typename TCont::key_type &key) |
template<class TStack , class TFirst , class TSecond > | |
void | push (TStack &dst, const TFirst &first, const TSecond &second) |
template<class TStack , class TFirst , class TSecond > | |
void | push (TStack *dst, const TFirst &first, const TSecond &second) |
#define FIXW | ( | w | ) | std::fixed << std::setfill('0') << std::setw(w) |
#define RETURN_IF_COMPARED | ( | a, | |
b, | |||
member | |||
) |
Definition at line 32 of file util.hh.
Referenced by operator<(), AdtOp::operator<(), and FixedPoint::operator<().
bool hasItem | ( | const TCont & | cont, |
const typename TCont::value_type & | key | ||
) |
bool hasKey | ( | const TCont & | cont, |
const typename TCont::key_type & | key | ||
) |
Definition at line 62 of file util.hh.
Referenced by SymPairMap< TKey, TVal >::add(), SymPairSet< TKey, IREFLEXIVE >::chk(), hasKey(), IdMapper< TId, MIN, MAX >::insert(), IntervalArena< TInt, TFld >::reverseLookup(), WorkList< T, TSched >::schedule(), and WorkList< T, TSched >::seen().
bool hasKey | ( | const TCont * | cont, |
const typename TCont::key_type & | key | ||
) |
bool insertOnce | ( | TCont & | cont, |
const typename TCont::key_type & | key | ||
) |
Definition at line 74 of file util.hh.
Referenced by traverseProgramVarsGeneric().
void push | ( | TStack & | dst, |
const TFirst & | first, | ||
const TSecond & | second | ||
) |
void push | ( | TStack * | dst, |
const TFirst & | first, | ||
const TSecond & | second | ||
) |
void sortValues | ( | T & | a, |
T & | b | ||
) |
Definition at line 49 of file util.hh.
References swapValues().
Referenced by SymPairSet< TKey, IREFLEXIVE >::add(), SymPairMap< TKey, TVal >::add(), SymPairSet< TKey, IREFLEXIVE >::chk(), SymPairMap< TKey, TVal >::chk(), and SymPairSet< TKey, IREFLEXIVE >::del().
void swapValues | ( | T & | a, |
T & | b | ||
) |
Definition at line 40 of file util.hh.
Referenced by sortValues().