Namespaces | |
AddressingPolicyBase | |
console | |
Detail | |
detail | |
emu | |
format | |
log | |
mpl | |
PacketInterpreterBase | |
phoenix | |
ppi | |
ReadPolicyBase | |
scheduler | |
SocketHandle | |
term | |
test | |
WLAN_MCSInfo | |
WritePolicyBase | |
Typedefs | |
typedef unspecified | StatisticsStream |
Logging stream for statistics messages. More... | |
Enumerations | |
enum | NoThrow_t { nothrow } |
Type tag selecting non-throwing variant of something. More... | |
enum | NoInit_t { noinit } |
Type tag selecting uninitialized variant of something. More... | |
Functions | |
template<typename InputIterator , typename ValueType > | |
bool | contains (InputIterator first, InputIterator last, ValueType const &value) |
template<typename Container , typename ValueType > | |
bool | contains (Container const &container, ValueType const &value) |
template<typename ValueType > | |
bool | contains (std::set< ValueType > const &container, ValueType const &value) |
template<typename KeyType , typename ValueType > | |
bool | contains (std::map< KeyType, ValueType > const &container, KeyType const &key) |
template<typename KeyType , typename ValueType > | |
bool | contains (boost::ptr_map< KeyType, ValueType > const &container, KeyType const &key) |
template<typename KeyType , typename ValueType > | |
bool | contains (boost::ptr_unordered_map< KeyType, ValueType > const &container, KeyType const &key) |
bool | contains (std::string const &str, std::string const &substr) |
bool | contains (std::string const &str, char c) |
void | formatBacktrace (std::ostream &os, void **backtrace, int numEntries) |
Format a given backtrace. More... | |
void | backtrace (std::ostream &os, int numEntries) |
Write a backtrace to os. More... | |
std::ostream & | operator<< (std::ostream &os, CpuStat const &cs) |
template<class BaseException > | |
WrapException< BaseException > | make_WrapException (BaseException const &base) |
template<class Exc , class Arg > | |
boost::enable_if< boost::is_convertible< Exc *, ExceptionMixin * >, Exc &>::type | operator<< (Exc const &exc, Arg const &arg) |
Extend exception description. More... | |
template<class Iterator > | |
void | hexdump (Iterator i, Iterator i_end, std::ostream &stream, unsigned block_size=16) |
Write range [ i, i_end ) to output stream in hexadecimal format. More... | |
template<class Iterator > | |
std::string | hexdumpQuote (Iterator i, Iterator i_end) |
Return quoted iterator range. More... | |
template<class T > | |
void | IGNORE (T const &) |
Explicitly ignore a value. More... | |
template<class T > | |
void | IGNORE (T const *) |
template<class Self > | |
void | intrusive_ptr_add_ref (intrusive_refcount_t< Self > const *p) |
template<class Self > | |
void | intrusive_ptr_release (intrusive_refcount_t< Self > const *p) |
template<class Iterator > | |
std::iterator_traits< Iterator >::pointer | storage_iterator (Iterator i) |
Convert contiguous storage iterator to pointer. More... | |
template<typename R , typename T , typename Args > | |
boost::function< R(Args)> | membind (R(T::*fn)(Args), T *ob) |
Build bound member function object. More... | |
template<class Range , class Fn > | |
boost::iterator_range< boost::transform_iterator< Fn, typename boost::range_const_iterator< Range >::type > > | make_transform_range (Range const &range, Fn const &fn) |
Make a boost::iterator_range from boost::trasform_iterator . More... | |
template<class Range , class Fn > | |
boost::iterator_range< boost::transform_iterator< Fn, typename boost::range_iterator< Range >::type > > | make_transform_range (Range &range, Fn const &fn) |
template<class Range , class Iterator > | |
void | copy_range (Range const &range, Iterator const &i) |
template<class Range , class Iterator > | |
void | copy_range (Range &range, Iterator const &i) |
template<class Range > | |
bool | has_one_elt (Range r) |
template<class Base , class Tag , typename OtherType > | |
RestrictedInt< Base, Tag > | operator* (OtherType a, RestrictedInt< Base, Tag > b) |
template<class Base , class Tag , typename OtherType > | |
RestrictedInt< Base, Tag > | operator* (RestrictedInt< Base, Tag > a, OtherType b) |
template<class Base , class Tag , typename OtherType > | |
RestrictedInt< Base, Tag > | operator/ (OtherType a, RestrictedInt< Base, Tag > b) |
template<class Base , class Tag , typename OtherType > | |
RestrictedInt< Base, Tag > | operator/ (RestrictedInt< Base, Tag > a, OtherType b) |
template<class Base , class Tag > | |
std::ostream & | operator<< (std::ostream &os, RestrictedInt< Base, Tag > value) |
template<class Base , class Tag > | |
std::istream & | operator>> (std::istream &is, RestrictedInt< Base, Tag > &value) |
template<typename T , typename U > | |
void | operator== (const safe_bool< T > &lhs, const safe_bool< U > &rhs) |
template<typename T , typename U > | |
void | operator!= (const safe_bool< T > &lhs, const safe_bool< U > &rhs) |
std::string const & | signalName (int signal) |
Convert signal number to signal name. More... | |
std::ostream & | operator<< (std::ostream &os, StatisticsData const &_data) |
template<class ForwardReadableRange > | |
std::string | stringJoin (ForwardReadableRange const &range, std::string sep) |
Join string range with separator into single string. More... | |
template<class T > | |
std::string | str (T const &t) |
Get string representation. More... | |
template<class Target , class Source > | |
Target | lexical_cast (Source const &arg) |
template<class Target > | |
detail::lexical_caster< Target > | lexical_cast () |
std::string | prettyName (std::type_info const &type) |
Try to return readable type for given type_info. More... | |
std::string | prettyBaseName (std::type_info const &type) |
Try to return readable type name without namespace or template arguments. More... | |
bool senf::contains | ( | InputIterator | first, |
InputIterator | last, | ||
ValueType const & | value | ||
) |
bool senf::contains | ( | Container const & | container, |
ValueType const & | value | ||
) |
bool senf::contains | ( | std::set< ValueType > const & | container, |
ValueType const & | value | ||
) |
bool senf::contains | ( | std::map< KeyType, ValueType > const & | container, |
KeyType const & | key | ||
) |
bool senf::contains | ( | boost::ptr_map< KeyType, ValueType > const & | container, |
KeyType const & | key | ||
) |
bool senf::contains | ( | boost::ptr_unordered_map< KeyType, ValueType > const & | container, |
KeyType const & | key | ||
) |
bool senf::contains | ( | std::string const & | str, |
std::string const & | substr | ||
) |
bool senf::contains | ( | std::string const & | str, |
char | c | ||
) |
void senf::copy_range | ( | Range const & | range, |
Iterator const & | i | ||
) |
void senf::copy_range | ( | Range & | range, |
Iterator const & | i | ||
) |
bool senf::has_one_elt | ( | Range | r | ) |
void senf::hexdump | ( | Iterator | i, |
Iterator | i_end, | ||
std::ostream & | stream, | ||
unsigned | block_size = 16 |
||
) |
Write range [ i, i_end ) to output stream in hexadecimal format.
std::string senf::hexdumpQuote | ( | Iterator | i, |
Iterator | i_end | ||
) |
Return quoted iterator range.
void senf::IGNORE | ( | T const & | ) |
Explicitly ignore a value.
To explicitly ignore a value (e.g. the return value of a function), pass that value to senf::IGNORE(). This has the added benefit of silencing any warnings about ignored values by g++.
void senf::IGNORE | ( | T const * | ) |
void senf::intrusive_ptr_add_ref | ( | intrusive_refcount_t< Self > const * | p | ) |
void senf::intrusive_ptr_release | ( | intrusive_refcount_t< Self > const * | p | ) |
Target senf::lexical_cast | ( | Source const & | arg | ) |
detail::lexical_caster<Target> senf::lexical_cast | ( | ) |
boost::iterator_range< boost::transform_iterator< Fn, typename boost::range_const_iterator<Range>::type > > senf::make_transform_range | ( | Range const & | range, |
Fn const & | fn | ||
) |
Make a boost::iterator_range
from boost::trasform_iterator
.
This helper is like boost::make_transform_iterator
, however for ranges instead of iterators.
boost::iterator_range< boost::transform_iterator< Fn, typename boost::range_iterator<Range>::type > > senf::make_transform_range | ( | Range & | range, |
Fn const & | fn | ||
) |
WrapException<BaseException> senf::make_WrapException | ( | BaseException const & | base | ) |
void senf::operator!= | ( | const safe_bool< T > & | lhs, |
const safe_bool< U > & | rhs | ||
) |
RestrictedInt<Base, Tag> senf::operator* | ( | OtherType | a, |
RestrictedInt< Base, Tag > | b | ||
) |
Definition at line 98 of file RestrictedInt.hh.
RestrictedInt<Base, Tag> senf::operator* | ( | RestrictedInt< Base, Tag > | a, |
OtherType | b | ||
) |
Definition at line 104 of file RestrictedInt.hh.
RestrictedInt<Base, Tag> senf::operator/ | ( | OtherType | a, |
RestrictedInt< Base, Tag > | b | ||
) |
Definition at line 110 of file RestrictedInt.hh.
RestrictedInt<Base, Tag> senf::operator/ | ( | RestrictedInt< Base, Tag > | a, |
OtherType | b | ||
) |
Definition at line 116 of file RestrictedInt.hh.
std::ostream & senf::operator<< | ( | std::ostream & | os, |
senf::StatisticsData const & | _data | ||
) |
Definition at line 30 of file StatisticAccumulator.cc.
std::ostream & senf::operator<< | ( | std::ostream & | os, |
CpuStat const & | cs | ||
) |
Definition at line 103 of file CpuStat.cc.
std::ostream& senf::operator<< | ( | std::ostream & | os, |
RestrictedInt< Base, Tag > | value | ||
) |
Definition at line 122 of file RestrictedInt.hh.
boost::enable_if< boost::is_convertible<Exc*,ExceptionMixin*>, Exc & >::type senf::operator<< | ( | Exc const & | exc, |
Arg const & | arg | ||
) |
Extend exception description.
Adds arg converted to string to the end of the exception description string. This operator allows to use Exception instances like streams. The conversion is performed using boost::lexical_cast
and is therefore identical to a streaming operation.
void senf::operator== | ( | const safe_bool< T > & | lhs, |
const safe_bool< U > & | rhs | ||
) |
std::istream& senf::operator>> | ( | std::istream & | is, |
RestrictedInt< Base, Tag > & | value | ||
) |
Definition at line 129 of file RestrictedInt.hh.
std::string senf::prettyBaseName | ( | std::type_info const & | type | ) |
Try to return readable type name without namespace or template arguments.
This function will try to return a demangled type name for the given type_info object. If the demangling fails, the possibly mangled name (type->name()) will be returned. The namespace prefix and template arguments will be stripped.
[in] | type | type_info object |
Definition at line 39 of file TypeInfo.cc.
std::string senf::prettyName | ( | std::type_info const & | type | ) |
Try to return readable type for given type_info.
This function will try to return a demangled type name for the given type_info object. If the demangling fails, the possibly mangled name (type->name()) will be returned.
[in] | type | type_info object |
Definition at line 28 of file TypeInfo.cc.
std::string const & senf::signalName | ( | int | signal | ) |
Convert signal number to signal name.
Definition at line 24 of file signalnames.cc.
std::iterator_traits<Iterator>::pointer senf::storage_iterator | ( | Iterator | i | ) |
Convert contiguous storage iterator to pointer.
storage_iterator will convert a contiguous storage iterator into a pointer to the same element in the container. This allows to directly access the containers storage.
true
for the given iterator type ! std::string senf::str | ( | T const & | t | ) |
Get string representation.
Returns the result of streaming the argument into a standard library string-based stream and then out as a std::string object. The conversion is done with boost::lexical_cast
. The call is equivalent to
boost::lexical_cast<std::string>(t);
t
must be OutputStreamable, meaning that an operator<<
is definedt
must be CopyConstructiblestd::string senf::stringJoin | ( | ForwardReadableRange const & | range, |
std::string | sep | ||
) |
Join string range with separator into single string.
This utility will build string by joining all elements of range into a single string using sep as separator. The range may contain values of any streamable type.