Namespaces | |
namespace | endian |
namespace | internals |
namespace | lr |
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 | addr |
Generic network address. More... | |
struct | datafile |
Output file which creation/opening is delayed until the first output. More... | |
struct | user_interruption |
Exception: user manually interrupted execution. More... | |
struct | file_error |
Exception: a file-related operation failed. More... | |
struct | read_error |
Exception: read failed. More... | |
struct | write_error |
Exception: write failed. More... | |
struct | seek_error |
Exception: seek failed. More... | |
struct | bad_file |
Exception: file contains invalid/inconsistent data. More... | |
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 | mapping |
Mapping from designed to be stored into a database file. More... | |
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::anonymizer< I, P, A, B > > |
struct | types< wifi::frame::filter::internals::anonymizer_iterator< I, P, A, B1, B2 > > |
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 > > |
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 | |
template<class VT , unsigned N, bool HN, char SN> | |
std::ostream & | operator<< (std::ostream &os, const addr< VT, N, HN, SN > &a) |
template<class VT , unsigned N, bool HN, char SN> | |
std::istream & | operator>> (std::istream &is, addr< VT, N, HN, SN > &a) |
template<class VT , unsigned N, bool HN, char SN> | |
std::string | make_string (const addr< VT, N, HN, SN > &a) |
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()) |
bool | eq_timeval (const struct timeval &lhs, const struct timeval &rhs, const unsigned prec=0) |
Variables | |
struct tool::addr | __packed__ |
typedef internals::SI_unit<8> tool::B |
typedef internals::SI_unit<1> tool::b |
typedef internals::SI_unit<8000> tool::kB |
typedef internals::SI_unit<1000> tool::kb |
typedef internals::SI_unit<8192> tool::KiB |
typedef internals::SI_unit<1024> tool::Kib |
typedef internals::SI_unit<8000000> tool::MB |
typedef internals::SI_unit<1000000> tool::Mb |
typedef internals::SI_unit<8388608> tool::MiB |
typedef internals::SI_unit<1048576> tool::Mib |
bool tool::eq_timeval | ( | const struct timeval & | lhs, | |
const struct timeval & | rhs, | |||
const unsigned | prec = 0 | |||
) | [inline] |
Compare timeval values.
Return whether the two timestamps are equals. When the time difference between each value is lower or equal than prec
microseconds, then consider the values are equal.
int32_t tool::extract_big_endian_long_s | ( | const int32_t | l | ) | [inline] |
Swap s
if needed (i.e. host is little endian).
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.
uint32_t tool::extract_big_endian_long_u | ( | const uint32_t | l | ) | [inline] |
Swap s
if needed (i.e. host is little endian).
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.
uint16_t tool::extract_big_endian_short_u | ( | const uint16_t | s | ) | [inline] |
Swap s
if needed (i.e. host is little endian).
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.
int32_t tool::extract_little_endian_long_s | ( | const int32_t | l | ) | [inline] |
Swap s
if needed (i.e. host is big endian).
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.
uint32_t tool::extract_little_endian_long_u | ( | const uint32_t | l | ) | [inline] |
Swap s
if needed (i.e. host is big endian).
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.
uint16_t tool::extract_little_endian_short_u | ( | const uint16_t | s | ) | [inline] |
Swap s
if needed (i.e. host is big endian).
uint16_t tool::extract_little_endian_short_u | ( | const void * | p | ) | [inline] |
Consider p
as a pointer to little-endian unsigned shorts and return *p.
int32_t tool::extract_long_s | ( | const int32_t | l, | |
bool | swapped | |||
) | [inline] |
Return s
, possibly with endianness adjustment if swapped
.
int32_t tool::extract_long_s | ( | const void * | p, | |
bool | swapped | |||
) | [inline] |
Return *p
, possibly with endianness adjustment if swapped
.
uint32_t tool::extract_long_u | ( | const uint32_t | l, | |
bool | swapped | |||
) | [inline] |
Return s
, possibly with endianness adjustment if swapped
.
uint32_t tool::extract_long_u | ( | const void * | p, | |
bool | swapped | |||
) | [inline] |
Return *p
, possibly with endianness adjustment if swapped
.
uint16_t tool::extract_short_u | ( | const uint16_t | s, | |
bool | swapped | |||
) | [inline] |
Return s
, possibly with endianness adjustment if swapped
.
uint16_t tool::extract_short_u | ( | const void * | p, | |
bool | swapped | |||
) | [inline] |
Return *p
, possibly with endianness adjustment if swapped
.
int32_t tool::extract_swapped_long_s | ( | const void * | p | ) | [inline] |
Consider p
as a pointer to endian-swapped unsigned longs and return *p.
int32_t tool::extract_swapped_long_s | ( | const int32_t | l | ) | [inline] |
Return s
with swapped low and high bytes.
uint32_t tool::extract_swapped_long_u | ( | const void * | p | ) | [inline] |
Consider p
as a pointer to endian-swapped unsigned longs and return *p.
uint32_t tool::extract_swapped_long_u | ( | const uint32_t | l | ) | [inline] |
Return s
with swapped low and high bytes.
uint16_t tool::extract_swapped_short_u | ( | const void * | p | ) | [inline] |
Consider p
as a pointer to endian-swapped unsigned shorts and return *p.
uint16_t tool::extract_swapped_short_u | ( | const uint16_t | s | ) | [inline] |
Return s
with swapped low and high bytes.
int32_t tool::extract_unswapped_long_s | ( | const void * | p | ) | [inline] |
Consider p
as a pointer to unsigned longs and return *p.
uint32_t tool::extract_unswapped_long_u | ( | const void * | p | ) | [inline] |
Consider p
as a pointer to unsigned longs and return *p.
uint16_t tool::extract_unswapped_short_u | ( | const void * | p | ) | [inline] |
Consider p
as a pointer to unsigned shorts and return *p.
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.
std::string tool::make_string | ( | const addr< VT, N, HN, SN > & | a | ) | [inline] |
Make a human readable string from an address .
std::ostream & tool::operator<< | ( | std::ostream & | os, | |
const addr< VT, N, HN, SN > & | a | |||
) | [inline] |
Dump an address in human readable notation.
std::istream & tool::operator>> | ( | std::istream & | is, | |
addr< VT, N, HN, SN > & | a | |||
) | [inline] |
Load an address from a stream (in string representation).
struct tool::addr tool::__packed__ |
Generic network address.
Protocol-agnostic network address, considered as a sequence of N
values of type ValueType
. For instance, IPv4 addresses are 4 uint8_t, MAC addresses are 6 uint8_t, and IPv6 addresses are 8 uint16_t. HexNotation
indicates whether the address' string representation uses hexadecimal or decimal values. SepNotation
is the character one should use to separate bytes in the string representation.