senf Namespace Reference

Namespaces

 AddressingPolicyBase
 
 console
 
 Detail
 
 detail
 
 emu
 
 format
 
 log
 
 mpl
 
 PacketInterpreterBase
 
 phoenix
 
 ppi
 
 ReadPolicyBase
 
 scheduler
 
 SocketHandle
 
 term
 
 test
 
 WLAN_MCSInfo
 
 WritePolicyBase
 

Classes

class  AddressableBSDSocketProtocol
 
struct  AddressException
 
struct  AddressingPolicyBase
 
struct  AddressingPolicyIs
 
struct  AddressSyntaxException
 
struct  AnnotationsPacketParser
 
struct  AnnotationsPacketType
 
struct  ArrayParser
 
struct  ArrayValueParserBase
 
class  back_insert_iterator
 
class  Beeper
 Helper class to beep the pc speaker. More...
 
struct  BitsetParser
 
struct  BSDAddressingPolicy
 
struct  BSDAddressingPolicyMixin
 
struct  BSDAddressingPolicyMixinBase
 
class  BSDSocketAddress
 
class  BSDSocketProtocol
 
class  CheckINet4Network
 
struct  CheckINet6Network
 
class  ClientSocketHandle
 
class  ClockService
 
class  Collector
 Accumulated statistics collector. More...
 
struct  CommunicationPolicyBase
 
class  comparable_safe_bool
 Mixin class for safe bool conversion support (comparable classes) More...
 
struct  ComplexAnnotation
 
class  ConcretePacket
 
class  ConcreteSocketProtocol
 
struct  ConnectedCommunicationPolicy
 
class  ConnectedMMapPacketSocketProtocol
 
class  ConnectedRawV4SocketProtocol
 
class  ConnectedRawV6SocketProtocol
 
class  ConnectedUDPv4SocketProtocol
 
class  ConnectedUDPv6SocketProtocol
 
class  ConnectedUNDatagramSocketProtocol
 
struct  contiguous_storage_iterator
 Check for contiguous mutable storage. More...
 
struct  contiguous_storage_iterator< T * >
 Check for contiguous mutable storage. Pointer specialization. More...
 
struct  CpuStat
 
class  CpuStatConsole
 
class  CpuStatProb
 
class  CyclicTimestamp
 
class  Daemon
 
struct  DatagramFramingPolicy
 
class  DatagramSocketProtocol
 
struct  DataPacketType
 
class  DiscardSink
 
class  DiscardStream
 
struct  DTCPHelloPacketParser
 
struct  DTCPHelloPacketType
 
struct  DTCPIPv4AddressListParser
 
struct  DTCPIPv6AddressListParser
 
class  DVBConfigParser
 
class  DVBDemuxPESSocketProtocol
 
class  DVBDemuxSectionSocketProtocol
 
class  DVBDemuxSocketProtocol
 
class  DVBDvrSocketProtocol
 
class  DVBFrontendSocketProtocol
 
class  DVBPESProtocolWrapper
 
class  DVBProtocolWrapper
 
class  DVBSectionProtocolWrapper
 
class  DVBSocketController
 
class  DVBSocketProtocol
 
class  EnumParser
 
struct  EthernetPacketParser
 
struct  EthernetPacketType
 
struct  EtherOUIExtTypes
 
struct  EtherTypes
 
struct  EthOUIExtensionPacketParser
 
struct  EthOUIExtensionPacketType
 
struct  EthVLanCPacketType
 
struct  EthVLanPacketParser
 
struct  EthVLanSPacketType
 
struct  EUI64
 
struct  EUI64Parser
 
struct  ExampleListPolicy
 
class  Exception
 Extensible exception base-class. More...
 
class  ExceptionMixin
 Generic extensible exception mixin. More...
 
class  FileHandle
 
class  FileHandleAccess
 
class  FixedSizeStringParser
 
struct  FlagParser
 
struct  FramingPolicyBase
 
struct  function_arity
 Get arity of function T. More...
 
struct  function_traits_arg_type
 Get argument type from function traits. More...
 
struct  function_traits_remove_arg
 Strip first parameter from function traits. More...
 
class  GenericBSDSocketAddress
 
class  GenericTLVParserBase
 
class  GenericTLVParserRegistry
 
struct  GREChecksumParser
 
struct  GREPacketParser
 
struct  GREPacketType
 
struct  has_parameter
 Test ArgumentPack, whether the TagType argument was supplied. More...
 
struct  ICMPTypes
 
struct  ICMPv6EchoReplyParser
 
struct  ICMPv6EchoReplyType
 
struct  ICMPv6EchoRequestParser
 
struct  ICMPv6EchoRequestType
 
struct  ICMPv6ErrDestUnreachableParser
 
struct  ICMPv6ErrDestUnreachableType
 
struct  ICMPv6ErrParamProblemParser
 
struct  ICMPv6ErrParamProblemType
 
struct  ICMPv6ErrTimeExceededParser
 
struct  ICMPv6ErrTimeExceededType
 
struct  ICMPv6ErrTooBigParser
 
struct  ICMPv6ErrTooBigType
 
struct  ICMPv6PacketParser
 
struct  ICMPv6PacketType
 
struct  IfAddressingPolicyIs
 
struct  IfAddressingPolicyIsNot
 
class  INet4Address
 
struct  INet4AddressingPolicy
 
struct  INet4AddressParser
 
class  INet4MulticastSocketProtocol
 
class  INet4Network
 
class  INet4SocketAddress
 
class  INet6Address
 
struct  INet6AddressingPolicy
 
struct  INet6AddressParser
 
class  INet6MulticastSocketProtocol
 
class  INet6Network
 
class  INet6SocketAddress
 
class  INetSocketProtocol
 
struct  InformationElementsPacketParser
 
struct  InformationElementsPacketType
 
struct  init_bytes
 
struct  Int16LSBParser
 
struct  Int16Parser
 
struct  Int24Parser
 
struct  Int32Parser
 
struct  Int64Parser
 
struct  Int8Parser
 
struct  IntFieldParser
 
class  intrusive_refcount
 Reference count mixin for intrusive_ptr. More...
 
class  intrusive_refcount_base
 Reference count mixin interface baseclass. More...
 
class  intrusive_refcount_t
 Customizable reference count mixin for intrusive_ptr. More...
 
struct  InvalidArgumentException
 
struct  InvalidMIHPacketException
 
struct  InvalidPacketChainException
 
class  IpChecksum
 Calculate TCP/IP 16bit checksum value. More...
 
struct  IPTypes
 
struct  IPv4PacketParser
 
struct  IPv4PacketType
 
struct  IPv6DestinationOptionsPacketParser
 
struct  IPv6DestinationOptionsPacketType
 
struct  IPv6FragmentPacketParser
 
struct  IPv6FragmentPacketType
 
struct  IPv6HopByHopOptionsPacketParser
 
struct  IPv6HopByHopOptionsPacketType
 
class  IPv6OptionParser
 
struct  IPv6PacketParser
 
struct  IPv6PacketType
 
struct  IPv6RoutingPacketParser
 
struct  IPv6RoutingPacketType
 
struct  is_any_function
 Test object if it is a function or member-function (pointer) More...
 
struct  is_fixed
 
struct  is_pair
 
class  LinuxPacketSocketProtocol
 
class  ListParser
 
class  ListParser_Container
 
struct  LLAddressingPolicy
 
struct  LlcSnapPacketParser
 
struct  LlcSnapPacketType
 
class  LLSocketAddress
 
struct  LSB0Endianness
 
struct  MACAddress
 
struct  MACAddressParser
 
struct  MakeSocketPolicy
 
struct  member_class
 Get class of a member pointer. More...
 
struct  MIHBaseListTLVParser
 
class  MIHBaseTLVParser
 
struct  MIHFDstIdTLVParser
 
class  MIHFId
 
class  MIHFIdTLVParser
 
struct  MIHFSrcIdTLVParser
 
struct  MIHGenericPayloadPacketParser
 
struct  MIHGenericPayloadPacketType
 
struct  MIHGenericTLVParser
 
struct  MIHLengthException
 
class  MIHLengthParser
 
struct  MIHListTLVParserMixin
 
class  MIHMessageRegistry
 
struct  MIHPacketParser
 
struct  MIHPacketType
 
struct  MIHRegisterReqCodeTLVParser
 
struct  MIHStatusTLVParser
 
struct  MIHValidTimeIntervalTLVParser
 
struct  MLDv2AddressRecordParser
 
struct  MLDv2ListenerQueryParser
 
struct  MLDv2ListenerQueryType
 
struct  MLDv2ListenerReportParser
 
struct  MLDv2ListenerReportType
 
class  mmapFile
 
class  MMapReadableSocketProtocol
 
class  MMapSocketProtocol
 
struct  MPERealTimeParametersParser
 
class  MPESectionParser
 
struct  MPESectionType
 
struct  MPLSPacketParser
 
struct  MPLSPacketType
 
struct  MSB0Endianness
 
class  MulticastSocketProtocol
 
struct  NDPGenericOptionParser
 
struct  NDPMTUTLVParser
 
struct  NDPNeighborAdvertisementMessageType
 
struct  NDPNeighborAdvertisementParser
 
struct  NDPNeighborSolicitationMessageType
 
struct  NDPNeighborSolicitationParser
 
struct  NDPOptionParser
 
struct  NDPPrefixInformationTLVParser
 
struct  NDPRedirectMessageType
 
struct  NDPRedirectParser
 
struct  NDPRouterAdvertisementMessageType
 
struct  NDPRouterAdvertisementParser
 
struct  NDPRouterSolicitationMessageType
 
struct  NDPRouterSolicitationParser
 
struct  NDPSourceLLAddressTLVParser
 
struct  NDPTargetLLAddressTLVParser
 
class  NetdeviceController
 
struct  NoAddressingPolicy
 
struct  NotReadablePolicy
 
struct  NotWriteablePolicy
 
class  Packet
 
class  PacketData
 
class  PacketInfo
 
class  PacketInterpreter
 
class  PacketInterpreterBase
 
class  PacketParserBase
 
class  PacketRegistry
 
class  PacketSocketProtocol
 
struct  PacketTypeBase
 
class  PacketTypeMixin
 
struct  PacketTypeNotRegisteredException
 
class  PacketVector
 
class  pimpl_ptr
 
class  pool_alloc_mixin
 Mixin to assign pool allocator to a class. More...
 
struct  PPPoEDPacketType
 
struct  PPPoEPacketParser
 
struct  PPPoEPacketTypeBase
 
struct  PPPoESPacketType
 
class  ProtocolClientSocketHandle
 
class  ProtocolServerSocketHandle
 
struct  QueueReadPolicy
 
struct  QueueWritePolicy
 
struct  RadiotapPacket_AMPDUStatusParser
 
struct  RadiotapPacket_ChannelOptionsParser
 
struct  RadiotapPacket_FlagsParser
 
struct  RadiotapPacket_FrameTypeParser
 
struct  RadiotapPacket_HeaderParser
 
struct  RadiotapPacket_MCSParser
 
struct  RadiotapPacket_RxFlagsParser
 
struct  RadiotapPacket_TxFlagsParser
 
struct  RadiotapPacket_VHTParser
 
struct  RadiotapPacketParser
 
struct  RadiotapPacketType
 
class  RawINetSocketProtocol
 
class  RawV4SocketProtocol
 
class  RawV6SocketProtocol
 
class  ReadableLinuxPacketProtocol
 
struct  ReadablePolicy
 
class  ReadHelper
 
struct  ReadPolicyBase
 
struct  ReadUntil
 
struct  remove_any_pointer
 Remove any type of pointer from type. More...
 
struct  remove_cvref
 Remove reference and CV qualification from type. More...
 
struct  remove_member_pointer
 Remove member pointer from type. More...
 
class  RestrictedInt
 
struct  RTPPacketParser
 
struct  RTPPacketType
 
class  safe_bool
 Mixin class for safe boolean conversion support. More...
 
class  safe_bool_base
 internal safe_bool base class More...
 
class  safe_data_iterator
 
class  SafePacketParserWrapper
 
class  ScopeExit
 
class  SequenceNumberStatistics
 
class  ServerSocketHandle
 
class  singleton
 Mark a class as singleton and provide singleton accessor. More...
 
struct  SNDUPacketParser
 
struct  SNDUPacketType
 
class  SocketHandle
 
struct  SocketPolicy
 
struct  SocketPolicyBase
 
struct  SocketPolicyIsBaseOf
 
class  SocketProtocol
 
class  SocketQueueBuffer
 
class  StatisticAccumulator
 Accumulate measurement values. More...
 
class  Statistics
 Collect statistics and generate log messages. More...
 
class  StatisticsBase
 Internal: Generic Statistics collection. More...
 
struct  StatisticsData
 
class  StatisticsEWMA
 
struct  StreamFramingPolicy
 
struct  strict_totally_ordered1
 
class  StringParser
 
class  SystemException
 Exception handling standard UNIX errors (errno) More...
 
class  TapSocketProtocol
 
struct  TCPPacketParser
 
struct  TCPPacketType
 
class  TCPSocketProtocol
 
class  TCPv4SocketProtocol
 
class  TCPv6SocketProtocol
 
struct  TimestampStatistics
 
struct  TIMPacketParser
 
struct  TIMPacketType
 
class  TIMSeqNoStats
 
class  TIMTimestampStats
 
class  TLVListParser
 
struct  TLVParserNotRegisteredException
 
struct  TransportPacketParser
 
struct  TransportPacketType
 
struct  TruncatedPacketException
 
class  TypeIdValue
 Wrapper to use types as key's in a map. More...
 
struct  UDPPacketParser
 
struct  UDPPacketType
 
class  UDPSocketProtocol
 
class  UDPv4SocketProtocol
 
class  UDPv6SocketProtocol
 
struct  UInt16LSBParser
 
struct  UInt16Parser
 
struct  UInt24Parser
 
struct  UInt32LSBParser
 
struct  UInt32Parser
 
struct  UInt64LSBParser
 
struct  UInt64Parser
 
struct  UInt8Parser
 
struct  UIntFieldParser
 
struct  ULEExtHeaderTypes
 
struct  UNAddressingPolicy
 
struct  UnconnectedCommunicationPolicy
 
class  UNDatagramSocketProtocol
 
struct  UnknownHostnameException
 
struct  UnknownInterfaceException
 
class  UNSocketAddress
 
class  UNSocketProtocol
 
class  VariantParser
 
struct  VectorParser
 
class  VectorParser_Container
 
struct  VoidPacketParser
 
struct  WLAN_MCSInfo
 
struct  WLANAMPDUParametersParser
 
struct  WLANAntennaSelectionCapabilityParser
 
struct  WLANBeaconPacketParser
 
struct  WLANBeaconPacketType
 
struct  WLANHTCapabilitiesInfoElementParser
 
struct  WLANHTCapabilitiesInfoFieldParser
 
struct  WLANHTExtendedCapabilitiesParser
 
struct  WLANHTOperationInfoElementParser
 
struct  WLANHTOperationInfoFieldParser
 
struct  WLANInfoElementParser
 
struct  WLANManagementSubtypes
 
struct  WLANMeshIdInfoElementParser
 
struct  WLANPacket_CtrlFrameParser
 
struct  WLANPacket_CtrlFrameType
 
struct  WLANPacket_DataFrameParser
 
struct  WLANPacket_DataFrameType
 
struct  WLANPacket_MeshControlFieldParser
 
struct  WLANPacket_MgtFrameParser
 
struct  WLANPacket_MgtFrameType
 
struct  WLANPacketParser
 
struct  WLANPowerConstraintInfoElementParser
 
struct  WLANSSIDInfoElementParser
 
struct  WLANSupportedMCSSetParser
 
struct  WLANSupportedRatesInfoElementParser
 
struct  WLANSupportedVHTMCSSetParser
 
struct  WLANTxBeamformingCapabilitiesParser
 
struct  WLANVendorSpecificInfoElementParser
 
struct  WLANVHTCapabilitiesInfoElementParser
 
struct  WLANVHTCapabilitiesInfoFieldParser
 
struct  WLANVHTHighestSupportedDataRateParser
 
struct  WLANVHTMCSMapParser
 
struct  WLANVHTOperationInfoElementParser
 
struct  WLANVHTOperationInfoFieldParser
 
class  WrapException
 Wrapper for standard non-senf exceptions. More...
 
struct  WriteablePolicy
 
class  WriteHelper
 
struct  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...
 

Function Documentation

◆ contains() [1/8]

template<typename InputIterator , typename ValueType >
bool senf::contains ( InputIterator  first,
InputIterator  last,
ValueType const &  value 
)

◆ contains() [2/8]

template<typename Container , typename ValueType >
bool senf::contains ( Container const &  container,
ValueType const &  value 
)

◆ contains() [3/8]

template<typename ValueType >
bool senf::contains ( std::set< ValueType > const &  container,
ValueType const &  value 
)

◆ contains() [4/8]

template<typename KeyType , typename ValueType >
bool senf::contains ( std::map< KeyType, ValueType > const &  container,
KeyType const &  key 
)

◆ contains() [5/8]

template<typename KeyType , typename ValueType >
bool senf::contains ( boost::ptr_map< KeyType, ValueType > const &  container,
KeyType const &  key 
)

◆ contains() [6/8]

template<typename KeyType , typename ValueType >
bool senf::contains ( boost::ptr_unordered_map< KeyType, ValueType > const &  container,
KeyType const &  key 
)

◆ contains() [7/8]

bool senf::contains ( std::string const &  str,
std::string const &  substr 
)

◆ contains() [8/8]

bool senf::contains ( std::string const &  str,
char  c 
)

◆ copy_range() [1/2]

template<class Range , class Iterator >
void senf::copy_range ( Range const &  range,
Iterator const &  i 
)

◆ copy_range() [2/2]

template<class Range , class Iterator >
void senf::copy_range ( Range &  range,
Iterator const &  i 
)

◆ has_one_elt()

template<class Range >
bool senf::has_one_elt ( Range  r)

◆ hexdump()

template<class Iterator >
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.

◆ hexdumpQuote()

template<class Iterator >
std::string senf::hexdumpQuote ( Iterator  i,
Iterator  i_end 
)

Return quoted iterator range.

◆ IGNORE() [1/2]

template<class T >
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++.

◆ IGNORE() [2/2]

template<class T >
void senf::IGNORE ( T const *  )

◆ intrusive_ptr_add_ref()

template<class Self >
void senf::intrusive_ptr_add_ref ( intrusive_refcount_t< Self > const *  p)

◆ intrusive_ptr_release()

template<class Self >
void senf::intrusive_ptr_release ( intrusive_refcount_t< Self > const *  p)

◆ lexical_cast() [1/2]

template<class Target , class Source >
Target senf::lexical_cast ( Source const &  arg)

◆ lexical_cast() [2/2]

template<class Target >
detail::lexical_caster<Target> senf::lexical_cast ( )

◆ make_transform_range() [1/2]

template<class Range , class Fn >
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.

◆ make_transform_range() [2/2]

template<class Range , class Fn >
boost::iterator_range< boost::transform_iterator< Fn, typename boost::range_iterator<Range>::type > > senf::make_transform_range ( Range &  range,
Fn const &  fn 
)

◆ make_WrapException()

template<class BaseException >
WrapException<BaseException> senf::make_WrapException ( BaseException const &  base)

◆ operator!=()

template<typename T , typename U >
void senf::operator!= ( const safe_bool< T > &  lhs,
const safe_bool< U > &  rhs 
)

◆ operator*() [1/2]

template<class Base , class Tag , typename OtherType >
RestrictedInt<Base, Tag> senf::operator* ( OtherType  a,
RestrictedInt< Base, Tag >  b 
)

Definition at line 98 of file RestrictedInt.hh.

◆ operator*() [2/2]

template<class Base , class Tag , typename OtherType >
RestrictedInt<Base, Tag> senf::operator* ( RestrictedInt< Base, Tag >  a,
OtherType  b 
)

Definition at line 104 of file RestrictedInt.hh.

◆ operator/() [1/2]

template<class Base , class Tag , typename OtherType >
RestrictedInt<Base, Tag> senf::operator/ ( OtherType  a,
RestrictedInt< Base, Tag >  b 
)

Definition at line 110 of file RestrictedInt.hh.

◆ operator/() [2/2]

template<class Base , class Tag , typename OtherType >
RestrictedInt<Base, Tag> senf::operator/ ( RestrictedInt< Base, Tag >  a,
OtherType  b 
)

Definition at line 116 of file RestrictedInt.hh.

◆ operator<<() [1/4]

std::ostream & senf::operator<< ( std::ostream &  os,
senf::StatisticsData const &  _data 
)

Definition at line 30 of file StatisticAccumulator.cc.

◆ operator<<() [2/4]

std::ostream & senf::operator<< ( std::ostream &  os,
CpuStat const &  cs 
)

Definition at line 103 of file CpuStat.cc.

◆ operator<<() [3/4]

template<class Base , class Tag >
std::ostream& senf::operator<< ( std::ostream &  os,
RestrictedInt< Base, Tag >  value 
)

Definition at line 122 of file RestrictedInt.hh.

◆ operator<<() [4/4]

template<class Exc , class Arg >
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.

See also
Exception classes

◆ operator==()

template<typename T , typename U >
void senf::operator== ( const safe_bool< T > &  lhs,
const safe_bool< U > &  rhs 
)

◆ operator>>()

template<class Base , class Tag >
std::istream& senf::operator>> ( std::istream &  is,
RestrictedInt< Base, Tag > &  value 
)

Definition at line 129 of file RestrictedInt.hh.

◆ prettyBaseName()

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.

Parameters
[in]typetype_info object
Returns
type name, possibly demangled and without namespace or template args

Definition at line 39 of file TypeInfo.cc.

◆ prettyName()

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.

Parameters
[in]typetype_info object
Returns
type name, possibly demangled

Definition at line 28 of file TypeInfo.cc.

◆ signalName()

std::string const & senf::signalName ( int  signal)

Convert signal number to signal name.

Definition at line 24 of file signalnames.cc.

◆ storage_iterator()

template<class Iterator >
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.

Warning
This conversion is only safe if contiguous_storage_iterator<Iterator>::value is true for the given iterator type !

◆ str()

template<class T >
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);
Precondition
t must be OutputStreamable, meaning that an operator<< is defined
t must be CopyConstructible
See also
boost::lexical_cast

◆ stringJoin()

template<class ForwardReadableRange >
std::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.