tool Namespace Reference

Independent helper tools. More...


Classes

struct  types< pcapxx::descriptor< B > >
 Virtual types for pcapxx::descriptor. More...
struct  types< pcapxx::internals::frame_iterator< B > >
 Virtual types for pcapxx::internals::frame_iterator. More...
struct  types< pcapxx::list_of_traces< Desc, Bottom > >
struct  datafile
 Output file which creation/opening is delayed until the first output. More...
struct  user_interruption
struct  file_error
struct  read_error
struct  write_error
struct  seek_error
struct  types< internals::filter_iterator< I, P, B1, B2 > >
struct  types< filter< I, P, B > >
struct  filter
struct  types< iterable< B > >
 Virtual types for iterable. More...
struct  iterable
 Base class to represent iterable objects. More...
struct  types< iterator< B > >
 Virtual types for iterator. More...
struct  iterator
 Base interface for iterators. More...
struct  types< list_of_iterables_iterator< T, B, Bottom > >
struct  types< list_of_iterables< T, B > >
struct  list_of_iterables_iterator
struct  list_of_iterables
struct  microseconds
 Represent an arbitrary number of microseconds. More...
struct  microseconds_stamp
 Mixin class to add a microsecond count to an existing class. More...
struct  bottom
 Static hierarchy terminator. More...
struct  undefined_type
 Undefined virtual type for type traits. More...
struct  get_exact
 Get an exact type given a type and its Bottom parameter. More...
struct  get_exact< bottom, Up >
 Template specialization to make get_exact work. More...
struct  static_base
 Base class of all static hierachies. More...
struct  types
 Virual types for static hierarchies . More...
struct  types< valued_iterator< B > >
 Virtual types for valued_iterator. More...
struct  valued_iterator
 Iterator which embeds its value. More...
struct  types< window< I, Ws, S, B > >
 Virtual types for window. More...
struct  types< window_maker< I, Ws, S, B > >
 Virtual types for window_maker. More...
struct  window
 Sliding window. More...
struct  window_maker
 Iterable object that builds windows over a sequence. More...
struct  types< wifi::frame::filter::internals::fast_intersector_iterator< I1, I2, B1, B2 > >
struct  types< wifi::frame::filter::fast_intersector< I1, I2, B > >
struct  types< wifi::frame::filter::internals::intersector_iterator< I1, I2, B1, B2 > >
struct  types< wifi::frame::filter::intersector< I1, I2, B > >
struct  types< wifi::frame::filter::internals::lr_sync_iterator< I, B1, B2 > >
struct  types< wifi::frame::filter::linear_regression_synchronizer< I, B > >
struct  types< wifi::frame::filter::internals::microseconds_stamper_iterator< I, HT, B1, B2 > >
struct  types< wifi::frame::filter::microseconds_stamper< I, HT, B > >
struct  types< wifi::frame::filter::internals::non_noisy_prism_iterator< I, B1, B2 > >
 Virtual types for wifi::frame::filter::internals::non_noisy_prism_iterator. More...
struct  types< wifi::frame::filter::non_noisy_prism< I, B > >
 Virtual types for wifi::frame::filter::non_noisy_prism. More...
struct  types< wp_wff::reference_blacklist< I, B > >
struct  types< wifi::frame::filter::internals::simple_merge_iterator< HT, I1, I2, B1, B2 > >
struct  types< wifi::frame::filter::simple_merge< HT, I1, I2, B > >
struct  types< wifi::frame::filter::internals::time_adjuster_iterator< I1, I2, HT, B1, B2 > >
struct  types< wifi::frame::filter::time_adjuster< I1, I2, HT, B > >
struct  types< wifi::frame::filter::internals::uniquely_identifiable_iterator< U, I, H, B1, B2 > >
 Virtual types for wifi::frame::filter::internals::uniquely_identifiable_iterator. More...
struct  types< wifi::frame::filter::uniquely_identifiable< U, I, H, B > >
 Virtual types for wifi::frame::filter::uniquely_identifiable. More...
struct  types< wifi::frame::filter::internals::windowed_merge_iterator< HT, I1, I2, B1, B2 > >
struct  types< wifi::frame::filter::windowed_merge< HT, I1, I2, B > >

Namespaces

namespace  endian
namespace  internals
namespace  lr

Typedefs

typedef internals::SI_unit< 1 > b
typedef internals::SI_unit< 1000 > kb
typedef internals::SI_unit< 1024 > Kib
typedef internals::SI_unit< 1000000 > Mb
typedef internals::SI_unit< 1048576 > Mib
typedef internals::SI_unit< 8 > B
typedef internals::SI_unit< 8000 > kB
typedef internals::SI_unit< 8192 > KiB
typedef internals::SI_unit< 8000000 > MB
typedef internals::SI_unit< 8388608 > MiB

Functions

uint16_t extract_unswapped_short (const void *p)
uint16_t extract_swapped_short (const uint16_t s)
uint16_t extract_swapped_short (const void *p)
uint16_t extract_short (const uint16_t s, bool swapped)
uint16_t extract_short (const void *p, bool swapped)
uint16_t extract_big_endian_short (const void *p)
uint32_t extract_swapped_long_u (const uint32_t l)
int32_t extract_swapped_long_s (const int32_t l)
uint32_t extract_long_u (const uint32_t l, bool swapped)
int32_t extract_long_s (const int32_t l, bool swapped)
uint32_t extract_little_endian_long_u (const uint32_t l)
template<class ImplType, class Adapter, class InputIterator>
std::pair< ImplType, ImplType > linear_regression (const InputIterator &start, const InputIterator &last, Adapter adapt=Adapter())


Detailed Description

Independent helper tools.

Typedef Documentation

typedef internals::SI_unit<8> tool::B

Bytes.

See also:
internals::SI_unit

typedef internals::SI_unit<1> tool::b

Bits.

See also:
internals::SI_unit

typedef internals::SI_unit<8000> tool::kB

Kilobytes.

See also:
internals::SI_unit

typedef internals::SI_unit<1000> tool::kb

Kilobits.

See also:
internals::SI_unit

typedef internals::SI_unit<8192> tool::KiB

Kibibytes.

See also:
internals::SI_unit

typedef internals::SI_unit<1024> tool::Kib

Kibibits.

See also:
internals::SI_unit

typedef internals::SI_unit<8000000> tool::MB

Megabytes.

See also:
internals::SI_unit

typedef internals::SI_unit<1000000> tool::Mb

Megabits.

See also:
internals::SI_unit

typedef internals::SI_unit<8388608> tool::MiB

Mebibytes.

See also:
internals::SI_unit

typedef internals::SI_unit<1048576> tool::Mib

Mebibits.

See also:
internals::SI_unit


Function Documentation

uint16_t tool::extract_big_endian_short ( const void *  p  )  [inline]

Consider p as a pointer to big-endian unsigned shorts and return *p.

uint32_t tool::extract_little_endian_long_u ( const uint32_t  l  )  [inline]

Swap l if needed (i.e. host is big endian).

int32_t tool::extract_long_s ( const int32_t  l,
bool  swapped 
) [inline]

Return l, possibly with endianness adjustment if swapped.

uint32_t tool::extract_long_u ( const uint32_t  l,
bool  swapped 
) [inline]

Return l, possibly with endianness adjustment if swapped.

uint16_t tool::extract_short ( const void *  p,
bool  swapped 
) [inline]

Return *p, possibly with endianness adjustment if swapped.

uint16_t tool::extract_short ( const uint16_t  s,
bool  swapped 
) [inline]

Return s, possibly with endianness adjustment if swapped.

int32_t tool::extract_swapped_long_s ( const int32_t  l  )  [inline]

Return l with swapped endianness.

uint32_t tool::extract_swapped_long_u ( const uint32_t  l  )  [inline]

Return l with swapped endianness.

uint16_t tool::extract_swapped_short ( const void *  p  )  [inline]

Consider p as a pointer to endian-swapped unsigned shorts and return *p.

uint16_t tool::extract_swapped_short ( const uint16_t  s  )  [inline]

Return s with swapped low and high bytes.

uint16_t tool::extract_unswapped_short ( const void *  p  )  [inline]

Consider p as a pointer to unsigned shorts and return *p.

template<class ImplType, class Adapter, class InputIterator>
std::pair< ImplType, ImplType > tool::linear_regression ( const InputIterator &  start,
const InputIterator &  last,
Adapter  adapt = Adapter () 
) [inline]

Perform a linear regression.

Input data is provided by start and last. adapt is a function object containing both a x() and y() method which respectively convert an instance of InputIterator::value_type into its x and y components.

See also:
lr::pair, lr::pair_with_microseconds.
Returns:
a pair of coefficients.


Generated on Wed Jan 16 16:15:14 2008 for wipal by  doxygen 1.5.4