#include <neighbors.hh>
Inheritance diagram for olsr::set::Neighbor:
Public Types | |
typedef val_lset_t | linkset_t |
Public Member Functions | |
Neighbor (const address_t &maddr, const std::set< ulink_t >::iterator &i, unsigned w) | |
Neighbor (const This &) | |
virtual | ~Neighbor () |
const address_t & | main_addr () const |
unsigned | willingness () const |
const timeval_t & | mprsel_time () const |
void | set_willingness (unsigned w) |
bool | is_sym () const |
bool | is_mpr () const |
bool | is_mprsel () const |
bool | was_mprsel () |
void | set_sym (bool state) |
void | set_mpr (bool state) |
void | set_mprsel (const timeval_t &validity) |
void | unset_mprsel () |
std::pair< linkset_t::const_iterator, linkset_t::const_iterator > | find_lifaces (const address_t &laddr) const |
linkset_t & | linkset () |
void | insert (const std::set< ulink_t >::iterator &pos) |
void | erase (const lset_t::iterator &pos) |
void | erase (const std::set< ulink_t >::iterator &pos) |
bool | operator< (const This &rhs) const |
Static Public Member Functions | |
static const This & | make_key (const address_t &m) |
Private Types | |
typedef Neighbor | This |
typedef utl::MultiStampable< 1, address_t > | Super |
typedef sch::Updatable< Link > | ulink_t |
typedef utl::Index< std::multiset, std::set< ulink_t >, ilinkless > | lset_t |
typedef utl::Subset< utl::MultiAdapt< lset_t >, utl::NoAction< This, lset_t::iterator >, lset_valid, This > | val_lset_t |
Private Member Functions | |
Neighbor () | |
Private Attributes | |
const address_t | m_addr_ |
lset_t | lset_ |
val_lset_t | val_lset_ |
bool | sym_ |
bool | mpr_ |
timeval_t | mprsel_time_ |
bool | was_mprsel_ |
unsigned | willingness_ |
Static Private Attributes | |
static Neighbor | dummy_for_find_ |
Friends | |
class | sch::StatePrinter |
Classes | |
struct | ilinkless |
struct | lset_valid |
typedef Neighbor olsr::set::Neighbor::This [private] |
Reimplemented from olsr::utl::MultiStampable< Dim, Key, Compare >.
typedef utl::MultiStampable<1, address_t> olsr::set::Neighbor::Super [private] |
typedef sch::Updatable<Link> olsr::set::Neighbor::ulink_t [private] |
typedef utl::Index<std::multiset, std::set<ulink_t>, ilinkless> olsr::set::Neighbor::lset_t [private] |
typedef utl::Subset<utl::MultiAdapt<lset_t>, utl::NoAction<This, lset_t::iterator>, lset_valid, This> olsr::set::Neighbor::val_lset_t [private] |
olsr::set::Neighbor::Neighbor | ( | ) | [inline, explicit, private] |
olsr::set::Neighbor::Neighbor | ( | const address_t & | maddr, | |
const std::set< ulink_t >::iterator & | i, | |||
unsigned | w | |||
) | [inline] |
olsr::set::Neighbor::Neighbor | ( | const This & | ) | [inline] |
virtual olsr::set::Neighbor::~Neighbor | ( | ) | [inline, virtual] |
const address_t& olsr::set::Neighbor::main_addr | ( | ) | const [inline] |
unsigned olsr::set::Neighbor::willingness | ( | ) | const [inline] |
const timeval_t& olsr::set::Neighbor::mprsel_time | ( | ) | const [inline] |
void olsr::set::Neighbor::set_willingness | ( | unsigned | w | ) | [inline] |
bool olsr::set::Neighbor::is_sym | ( | ) | const [inline] |
bool olsr::set::Neighbor::is_mpr | ( | ) | const [inline] |
bool olsr::set::Neighbor::is_mprsel | ( | ) | const [inline] |
bool olsr::set::Neighbor::was_mprsel | ( | ) | [inline] |
void olsr::set::Neighbor::set_sym | ( | bool | state | ) | [inline] |
void olsr::set::Neighbor::set_mpr | ( | bool | state | ) | [inline] |
void olsr::set::Neighbor::set_mprsel | ( | const timeval_t & | validity | ) | [inline] |
void olsr::set::Neighbor::unset_mprsel | ( | ) | [inline] |
std::pair< Neighbor::linkset_t::const_iterator, Neighbor::linkset_t::const_iterator > olsr::set::Neighbor::find_lifaces | ( | const address_t & | laddr | ) | const [inline] |
linkset_t& olsr::set::Neighbor::linkset | ( | ) | [inline] |
void olsr::set::Neighbor::insert | ( | const std::set< ulink_t >::iterator & | pos | ) | [inline] |
void olsr::set::Neighbor::erase | ( | const lset_t::iterator & | pos | ) | [inline] |
void olsr::set::Neighbor::erase | ( | const std::set< ulink_t >::iterator & | pos | ) | [inline] |
bool olsr::set::Neighbor::operator< | ( | const This & | rhs | ) | const [inline] |
friend class sch::StatePrinter [friend] |
const address_t olsr::set::Neighbor::m_addr_ [private] |
lset_t olsr::set::Neighbor::lset_ [private] |
val_lset_t olsr::set::Neighbor::val_lset_ [private] |
bool olsr::set::Neighbor::sym_ [private] |
bool olsr::set::Neighbor::mpr_ [private] |
timeval_t olsr::set::Neighbor::mprsel_time_ [private] |
bool olsr::set::Neighbor::was_mprsel_ [private] |
unsigned olsr::set::Neighbor::willingness_ [private] |
Neighbor olsr::set::Neighbor::dummy_for_find_ [static, private] |