#include <boost/function.hpp>
Go to the source code of this file.
|
| template<typename IntType > |
| bool | BitIsSet (IntType value, size_t bit) |
| |
| template<typename IntType > |
| void | SetBit (IntType &value, size_t bit) |
| |
| template<typename IntType > |
| void | ClearBit (IntType &value, size_t bit) |
| |
| template<class InputIterator , class CompareOp > |
| int | STLSortedCompare (InputIterator first1, InputIterator last1, InputIterator first2, InputIterator last2, CompareOp op) |
| |
| template<typename Container > |
| void | STLDeleteValues (Container *container) |
| |
| template<typename Container > |
| void | STLDeleteElements (Container *container) |
| |
| template<typename Collection , typename T > |
| bool | STLKeyExists (const Collection &col, const T &key) |
| |
◆ BOOL_KEY_COMPARE
| #define BOOL_KEY_COMPARE |
( |
|
x, |
|
|
|
y |
|
) |
| |
Value: do { \
if ((x) < (y)) return true; \
if ((y) < (x)) return false; \
} while (false)
Definition at line 64 of file util.h.
◆ CHECK_INVARIANT
| #define CHECK_INVARIANT |
( |
|
Cond | ) |
|
Value: do { \
assert(Cond); \
} while (0)
Definition at line 29 of file util.h.
◆ DISALLOW_COPY_AND_ASSIGN
| #define DISALLOW_COPY_AND_ASSIGN |
( |
|
_Class | ) |
|
Value: _Class(const _Class &); \
_Class& operator=(const _Class &)
Definition at line 15 of file util.h.
◆ KEY_COMPARE
| #define KEY_COMPARE |
( |
|
x, |
|
|
|
y |
|
) |
| |
Value: do { \
if ((x) < (y)) return -1; \
if ((y) < (x)) return 1; \
} while (false)
Definition at line 70 of file util.h.
◆ MODULE_INITIALIZER
◆ TOKENPASTE
| #define TOKENPASTE |
( |
|
x, |
|
|
|
y |
|
) |
| x ## y |
◆ TOKENPASTE2
◆ BitIsSet()
template<typename IntType >
| bool BitIsSet |
( |
IntType |
value, |
|
|
size_t |
bit |
|
) |
| |
◆ ClearBit()
template<typename IntType >
| void ClearBit |
( |
IntType & |
value, |
|
|
size_t |
bit |
|
) |
| |
◆ SetBit()
template<typename IntType >
| void SetBit |
( |
IntType & |
value, |
|
|
size_t |
bit |
|
) |
| |
◆ STLDeleteElements()
template<typename Container >
| void STLDeleteElements |
( |
Container * |
container | ) |
|
◆ STLDeleteValues()
template<typename Container >
| void STLDeleteValues |
( |
Container * |
container | ) |
|
◆ STLKeyExists()
template<typename Collection , typename T >
| bool STLKeyExists |
( |
const Collection & |
col, |
|
|
const T & |
key |
|
) |
| |
◆ STLSortedCompare()
template<class InputIterator , class CompareOp >
| int STLSortedCompare |
( |
InputIterator |
first1, |
|
|
InputIterator |
last1, |
|
|
InputIterator |
first2, |
|
|
InputIterator |
last2, |
|
|
CompareOp |
op |
|
) |
| |