IBR-DTNSuite  0.12
dtn::data::SDNV< E > Class Template Reference

#include <SDNV.h>

Collaboration diagram for dtn::data::SDNV< E >:
Collaboration graph

Public Member Functions

 SDNV (const E value)
 
 SDNV ()
 
 ~SDNV ()
 
size_t getLength () const
 
template<typename T >
get () const
 
const E & get () const
 
const SDNVoperator= (const E value)
 
bool operator== (const E value) const
 
bool operator== (const SDNV< E > &value) const
 
bool operator!= (const E value) const
 
bool operator!= (const SDNV< E > &value) const
 
SDNV< E > operator+ (const E value)
 
SDNV< E > operator+ (const SDNV< E > &value)
 
SDNV< E > & operator+= (const E value)
 
SDNV< E > & operator+= (const SDNV< E > &value)
 
SDNV< E > & operator++ ()
 
SDNV< E > operator++ (int)
 
SDNV< E > operator- (const E value)
 
SDNV< E > operator- (const SDNV< E > &value)
 
SDNV< E > & operator-= (const E value)
 
SDNV< E > & operator-= (const SDNV< E > &value)
 
SDNV< E > & operator-- ()
 
SDNV< E > operator-- (int)
 
SDNV< E > operator/ (const E value)
 
SDNV< E > operator/ (const SDNV< E > &value)
 
SDNV< E > & operator/= (const E value)
 
SDNV< E > & operator/= (const SDNV< E > &value)
 
SDNV< E > operator* (const E value)
 
SDNV< E > operator* (const SDNV< E > &value)
 
SDNV< E > & operator*= (const E value)
 
SDNV< E > & operator*= (const SDNV< E > &value)
 
bool operator& (const SDNV< E > &value) const
 
bool operator| (const SDNV< E > &value) const
 
SDNV< E > & operator&= (const SDNV< E > &value)
 
SDNV< E > & operator|= (const SDNV< E > &value)
 
bool operator< (const E value) const
 
bool operator<= (const E value) const
 
bool operator> (const E value) const
 
bool operator>= (const E value) const
 
bool operator< (const SDNV< E > &value) const
 
bool operator<= (const SDNV< E > &value) const
 
bool operator> (const SDNV< E > &value) const
 
bool operator>= (const SDNV< E > &value) const
 
SDNV< E > & random ()
 
std::string toString () const
 
void fromString (const std::string &data)
 
void read (std::istream &stream)
 
void encode (std::ostream &stream) const
 
void decode (std::istream &stream)
 

Static Public Member Functions

static SDNV< E > max ()
 

Static Public Attributes

static const size_t MAX_LENGTH = 10
 

Friends

SDNV< E > operator+ (const SDNV< E > &left, const SDNV< E > &right)
 
SDNV< E > operator+ (const SDNV< E > &left, const E right)
 
SDNV< E > operator- (const SDNV< E > &left, const SDNV< E > &right)
 
SDNV< E > operator- (const SDNV< E > &left, const E right)
 
SDNV< E > operator/ (const SDNV< E > &left, const SDNV< E > &right)
 
SDNV< E > operator/ (const SDNV< E > &left, const E right)
 
SDNV< E > operator* (const SDNV< E > &left, const SDNV< E > &right)
 
SDNV< E > operator* (const SDNV< E > &left, const E right)
 
std::ostream & operator<< (std::ostream &stream, const dtn::data::SDNV< E > &obj)
 
std::istream & operator>> (std::istream &stream, dtn::data::SDNV< E > &obj)
 

Detailed Description

template<class E>
class dtn::data::SDNV< E >

Definition at line 69 of file SDNV.h.

Constructor & Destructor Documentation

template<class E>
dtn::data::SDNV< E >::SDNV ( const E  value)
inline

Constructor for a SDNV object

Parameters
valueThe new value of the SDNV

Definition at line 82 of file SDNV.h.

template<class E>
dtn::data::SDNV< E >::SDNV ( )
inline

Definition at line 85 of file SDNV.h.

template<class E>
dtn::data::SDNV< E >::~SDNV ( )
inline

Destructor

Returns

Definition at line 92 of file SDNV.h.

Member Function Documentation

template<class E>
void dtn::data::SDNV< E >::decode ( std::istream &  stream)
inline

Definition at line 450 of file SDNV.h.

Referenced by dtn::routing::operator>>().

template<class E>
void dtn::data::SDNV< E >::encode ( std::ostream &  stream) const
inline

Definition at line 423 of file SDNV.h.

Referenced by dtn::routing::operator<<().

template<class E>
void dtn::data::SDNV< E >::fromString ( const std::string &  data)
inline

Definition at line 414 of file SDNV.h.

Referenced by dtn::api::PlainDeserializer::operator>>().

template<class E>
const E& dtn::data::SDNV< E >::get ( ) const
inline

Definition at line 117 of file SDNV.h.

template<class E>
static SDNV<E> dtn::data::SDNV< E >::max ( )
inlinestatic

Definition at line 394 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator!= ( const E  value) const
inline

Definition at line 136 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator!= ( const SDNV< E > &  value) const
inline

Definition at line 141 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator& ( const SDNV< E > &  value) const
inline

Definition at line 332 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator&= ( const SDNV< E > &  value)
inline

Definition at line 342 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator* ( const E  value)
inline

Definition at line 292 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator* ( const SDNV< E > &  value)
inline

Definition at line 298 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator*= ( const E  value)
inline

Definition at line 320 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator*= ( const SDNV< E > &  value)
inline

Definition at line 326 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator+ ( const E  value)
inline

Definition at line 146 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator+ ( const SDNV< E > &  value)
inline

Definition at line 152 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator++ ( )
inline

Definition at line 186 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator++ ( int  )
inline

Definition at line 192 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator+= ( const E  value)
inline

Definition at line 174 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator+= ( const SDNV< E > &  value)
inline

Definition at line 180 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator- ( const E  value)
inline

Definition at line 199 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator- ( const SDNV< E > &  value)
inline

Definition at line 205 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator-- ( )
inline

Definition at line 239 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator-- ( int  )
inline

Definition at line 245 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator-= ( const E  value)
inline

Definition at line 227 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator-= ( const SDNV< E > &  value)
inline

Definition at line 233 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator/ ( const E  value)
inline

Definition at line 252 of file SDNV.h.

template<class E>
SDNV<E> dtn::data::SDNV< E >::operator/ ( const SDNV< E > &  value)
inline

Definition at line 258 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator/= ( const E  value)
inline

Definition at line 280 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator/= ( const SDNV< E > &  value)
inline

Definition at line 286 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator< ( const E  value) const
inline

Definition at line 354 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator< ( const SDNV< E > &  value) const
inline

Definition at line 374 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator<= ( const E  value) const
inline

Definition at line 359 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator<= ( const SDNV< E > &  value) const
inline

Definition at line 379 of file SDNV.h.

template<class E>
const SDNV& dtn::data::SDNV< E >::operator= ( const E  value)
inline

Definition at line 121 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator== ( const E  value) const
inline

Definition at line 126 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator== ( const SDNV< E > &  value) const
inline

Definition at line 131 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator> ( const E  value) const
inline

Definition at line 364 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator> ( const SDNV< E > &  value) const
inline

Definition at line 384 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator>= ( const E  value) const
inline

Definition at line 369 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator>= ( const SDNV< E > &  value) const
inline

Definition at line 389 of file SDNV.h.

template<class E>
bool dtn::data::SDNV< E >::operator| ( const SDNV< E > &  value) const
inline

Definition at line 337 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::operator|= ( const SDNV< E > &  value)
inline

Definition at line 348 of file SDNV.h.

template<class E>
SDNV<E>& dtn::data::SDNV< E >::random ( )
inline

Definition at line 399 of file SDNV.h.

Referenced by dtn::security::SecurityBlock::createCorrelatorValue().

template<class E>
void dtn::data::SDNV< E >::read ( std::istream &  stream)
inline

Friends And Related Function Documentation

template<class E>
SDNV<E> operator* ( const SDNV< E > &  left,
const SDNV< E > &  right 
)
friend

Definition at line 305 of file SDNV.h.

template<class E>
SDNV<E> operator* ( const SDNV< E > &  left,
const E  right 
)
friend

Definition at line 313 of file SDNV.h.

template<class E>
SDNV<E> operator+ ( const SDNV< E > &  left,
const SDNV< E > &  right 
)
friend

Definition at line 159 of file SDNV.h.

template<class E>
SDNV<E> operator+ ( const SDNV< E > &  left,
const E  right 
)
friend

Definition at line 167 of file SDNV.h.

template<class E>
SDNV<E> operator- ( const SDNV< E > &  left,
const SDNV< E > &  right 
)
friend

Definition at line 212 of file SDNV.h.

template<class E>
SDNV<E> operator- ( const SDNV< E > &  left,
const E  right 
)
friend

Definition at line 220 of file SDNV.h.

template<class E>
SDNV<E> operator/ ( const SDNV< E > &  left,
const SDNV< E > &  right 
)
friend

Definition at line 265 of file SDNV.h.

template<class E>
SDNV<E> operator/ ( const SDNV< E > &  left,
const E  right 
)
friend

Definition at line 273 of file SDNV.h.

template<class E>
std::ostream& operator<< ( std::ostream &  stream,
const dtn::data::SDNV< E > &  obj 
)
friend

Definition at line 483 of file SDNV.h.

template<class E>
std::istream& operator>> ( std::istream &  stream,
dtn::data::SDNV< E > &  obj 
)
friend

Definition at line 490 of file SDNV.h.

Member Data Documentation

template<class E>
const size_t dtn::data::SDNV< E >::MAX_LENGTH = 10
static

The maximum length for this SDNV implementation is 10 bytes, since the maximum value is 64 bits wide.

Definition at line 76 of file SDNV.h.

Referenced by dtn::data::SDNV< int >::decode(), and dtn::data::SDNV< int >::encode().


The documentation for this class was generated from the following file: