Wiselib
Public Types | Public Member Functions | Static Public Attributes
wiselib::ShawnDistanceModel< OsModel_P, Radio_P > Class Template Reference

#include <shawn_distance.h>

List of all members.

Public Types

enum  ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
enum  { READY = OsModel::READY, NO_VALUE = OsModel::NO_VALUE, INACTIVE = OsModel::INACTIVE }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Radio::node_id_t node_id_t
typedef ShawnDistanceModel
< OsModel
self_type
typedef self_typeself_pointer_t
typedef double distance_t
typedef distance_t value_t

Public Member Functions

 ShawnDistanceModel (ShawnOs &os)
int init (Radio &)
int state ()
distance_t operator() (node_id_t to)
distance_t distance (node_id_t to)

Static Public Attributes

static value_t UNKNOWN_DISTANCE

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio>
class wiselib::ShawnDistanceModel< OsModel_P, Radio_P >


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef double wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::distance_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef Radio::node_id_t wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef OsModel_P wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef Radio_P wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef self_type* wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::self_pointer_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef ShawnDistanceModel<OsModel> wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::self_type
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef distance_t wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::value_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
anonymous enum
Enumerator:
READY 
NO_VALUE 
INACTIVE 
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
enum wiselib::ShawnDistanceModel::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::ShawnDistanceModel ( ShawnOs os) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
distance_t wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::distance ( node_id_t  to) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
int wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::init ( Radio ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
distance_t wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::operator() ( node_id_t  to) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
int wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::state ( ) [inline]

Member Data Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
ShawnDistanceModel< OsModel_P, Radio_P >::value_t wiselib::ShawnDistanceModel< OsModel_P, Radio_P >::UNKNOWN_DISTANCE [static]
Initial value:
           std::numeric_limits<typename ShawnDistanceModel<OsModel_P, Radio_P>::distance_t>::max()

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines