tool Namespace Reference

Independent helper tools. More...


Classes

struct  datafile
 Output file which creation/opening is delayed until the first output. More...
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< iterator_base< B > >
 Virtual types for iterator_base. More...
struct  iterator_base
 Common implementation for most iterators. More...
struct  microseconds
 Represent an arbitrary number of microseconds. 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< 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< 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< wifi::frame::filter::intersector< I1, I2, B > >
struct  types< wifi::frame::filter::unique_synchronizer< I, B > >
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::intersector_iterator< I1, I2, B1, B2 > >
struct  types< wifi::frame::filter::internals::u_sync_iterator< I, B1, B2 > >
struct  types< wifi::frame::filter::internals::ui_iterator< U, I, H, B1, B2 > >
 Virtual types for wifi::frame::filter::internals::ui_iterator. More...

Namespaces

namespace  internals

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)
template<class ImplType, class InputIterator>
std::pair< ImplType,
ImplType > 
linear_regression (const InputIterator &start, const InputIterator &last)


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.

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.

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 InputIterator>
std::pair< ImplType, ImplType > tool::linear_regression ( const InputIterator &  start,
const InputIterator &  last 
) [inline]

Perform a linear regression.

Input data is provided by start and last. InputIterator::value_type must have a first and second attribute. ImplType is used as the algorithm's underlying implementation type.

Returns:
a pair of coefficients.


Generated on Wed Sep 12 16:02:47 2007 for trace-tools by  doxygen 1.5.3