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< D, B > >
 Virtual types for pcapxx::internals::frame_iterator. More...
struct  types< pcapxx::list_of_traces< Desc, Bottom > >
struct  types< avs::header >
struct  types< phy::empty_time< B > >
struct  types< phy::empty_header< B > >
struct  types< phy::time< B > >
struct  types< phy::uint64_time< B > >
struct  types< phy::header< B > >
struct  types< prism::time >
struct  types< prism::header >
struct  types< rtap::header >
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  less_using_second
 Binary functor that returns lhs->second < rhs->second. 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::old_intersector_iterator< I1, I2, B1, B2 > >
struct  types< wifi::frame::filter::old_intersector< I1, I2, 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::fast_intersector_iterator< I1, I2, B1, B2 > >
struct  types< wifi::frame::filter::fast_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::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_u (const void *p)
uint16_t extract_swapped_short_u (const uint16_t s)
uint16_t extract_swapped_short_u (const void *p)
uint16_t extract_short_u (const void *p, bool swapped)
uint16_t extract_short_u (const uint16_t s, bool swapped)
uint16_t extract_big_endian_short_u (const void *p)
uint16_t extract_big_endian_short_u (const uint16_t s)
uint16_t extract_little_endian_short_u (const void *p)
uint16_t extract_little_endian_short_u (const uint16_t s)
uint32_t extract_unswapped_long_u (const void *p)
uint32_t extract_swapped_long_u (const uint32_t l)
uint32_t extract_swapped_long_u (const void *p)
uint32_t extract_long_u (const void *p, bool swapped)
uint32_t extract_long_u (const uint32_t l, bool swapped)
uint32_t extract_big_endian_long_u (const void *p)
uint32_t extract_big_endian_long_u (const uint32_t l)
uint32_t extract_little_endian_long_u (const void *p)
uint32_t extract_little_endian_long_u (const uint32_t l)
int32_t extract_unswapped_long_s (const void *p)
int32_t extract_swapped_long_s (const int32_t l)
int32_t extract_swapped_long_s (const void *p)
int32_t extract_long_s (const void *p, bool swapped)
int32_t extract_long_s (const int32_t l, bool swapped)
int32_t extract_big_endian_long_s (const void *p)
int32_t extract_big_endian_long_s (const int32_t l)
int32_t extract_little_endian_long_s (const void *p)
int32_t extract_little_endian_long_s (const int32_t l)
mpz_class mpz_of_uint64 (uint64_t)
uint64_t uint64_of_mpz (const mpz_class)
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

Bytes.

See also:
internals::SI_unit

Bits.

See also:
internals::SI_unit

Kilobytes.

See also:
internals::SI_unit

Kilobits.

See also:
internals::SI_unit

Kibibytes.

See also:
internals::SI_unit

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

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

Swap s if needed (i.e. host is little endian).

References extract_big_endian_long_u().

int32_t tool::extract_big_endian_long_s ( const void *  p  )  [inline]

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

References extract_big_endian_long_u().

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

Swap s if needed (i.e. host is little endian).

References extract_big_endian_long_u().

uint32_t tool::extract_big_endian_long_u ( const void *  p  )  [inline]

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

Referenced by extract_big_endian_long_s(), and extract_big_endian_long_u().

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

Swap s if needed (i.e. host is little endian).

References extract_big_endian_short_u().

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

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

Referenced by extract_big_endian_short_u().

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

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

References extract_little_endian_long_u().

int32_t tool::extract_little_endian_long_s ( const void *  p  )  [inline]

Consider p as a pointer to little-endian unsigned longs and return *p.

References extract_little_endian_long_u().

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

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

References extract_little_endian_long_u().

uint32_t tool::extract_little_endian_long_u ( const void *  p  )  [inline]

Consider p as a pointer to little-endian unsigned longs and return *p.

Referenced by extract_little_endian_long_s(), extract_little_endian_long_u(), rtap::header::first_field(), and rtap::header::tsft_get().

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

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

References extract_little_endian_short_u().

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

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

Return s, possibly with endianness adjustment if swapped.

References extract_long_u().

int32_t tool::extract_long_s ( const void *  p,
bool  swapped 
) [inline]

Return *p, possibly with endianness adjustment if swapped.

References extract_long_u().

Referenced by pcapxx::frame_descriptor< PCAPDescriptor >::frame_descriptor().

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

Return s, possibly with endianness adjustment if swapped.

References extract_swapped_long_u().

uint32_t tool::extract_long_u ( const void *  p,
bool  swapped 
) [inline]

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

Return s, possibly with endianness adjustment if swapped.

References extract_swapped_short_u().

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

Return *p, possibly with endianness adjustment if swapped.

References extract_swapped_short_u(), and extract_unswapped_short_u().

int32_t tool::extract_swapped_long_s ( const void *  p  )  [inline]

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

References extract_swapped_long_u().

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

Return s with swapped low and high bytes.

References extract_swapped_long_u().

uint32_t tool::extract_swapped_long_u ( const void *  p  )  [inline]

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

References extract_swapped_long_u(), and extract_unswapped_long_u().

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

Return s with swapped low and high bytes.

Referenced by extract_long_u(), extract_swapped_long_s(), and extract_swapped_long_u().

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

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

References extract_swapped_short_u(), and extract_unswapped_short_u().

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

Return s with swapped low and high bytes.

Referenced by extract_short_u(), and extract_swapped_short_u().

int32_t tool::extract_unswapped_long_s ( const void *  p  )  [inline]

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

References extract_unswapped_long_u().

uint32_t tool::extract_unswapped_long_u ( const void *  p  )  [inline]

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

Referenced by extract_long_u(), extract_swapped_long_u(), and extract_unswapped_long_s().

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

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

Referenced by extract_short_u(), and extract_swapped_short_u().

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 Thu Jul 31 16:39:04 2008 for wipal by  doxygen 1.5.6