IBR-DTNSuite  0.10
dtn::data::Bitset< E > Class Template Reference

#include <Number.h>

Inheritance diagram for dtn::data::Bitset< E >:
Inheritance graph
Collaboration diagram for dtn::data::Bitset< E >:
Collaboration graph

Public Member Functions

 Bitset (Size initial)
 
 Bitset ()
 
 ~Bitset ()
 
void setBit (E flag, const bool &value)
 
bool getBit (E flag) const
 
- Public Member Functions inherited from dtn::data::SDNV< Size >
 SDNV (const Sizevalue)
 
 SDNV ()
 
 ~SDNV ()
 
size_t getLength () const
 
get () const
 
const Sizeget () const
 
const SDNVoperator= (const Sizevalue)
 
bool operator== (const Sizevalue) const
 
bool operator== (const SDNV< Size > &value) const
 
bool operator!= (const Sizevalue) const
 
bool operator!= (const SDNV< Size > &value) const
 
SDNV< Sizeoperator+ (const Sizevalue)
 
SDNV< Sizeoperator+ (const SDNV< Size > &value)
 
SDNV< Size > & operator+= (const Sizevalue)
 
SDNV< Size > & operator+= (const SDNV< Size > &value)
 
SDNV< Size > & operator++ ()
 
SDNV< Sizeoperator++ (int)
 
SDNV< Sizeoperator- (const Sizevalue)
 
SDNV< Sizeoperator- (const SDNV< Size > &value)
 
SDNV< Size > & operator-= (const Sizevalue)
 
SDNV< Size > & operator-= (const SDNV< Size > &value)
 
SDNV< Size > & operator-- ()
 
SDNV< Sizeoperator-- (int)
 
SDNV< Sizeoperator/ (const Sizevalue)
 
SDNV< Sizeoperator/ (const SDNV< Size > &value)
 
SDNV< Size > & operator/= (const Sizevalue)
 
SDNV< Size > & operator/= (const SDNV< Size > &value)
 
SDNV< Sizeoperator* (const Sizevalue)
 
SDNV< Sizeoperator* (const SDNV< Size > &value)
 
SDNV< Size > & operator*= (const Sizevalue)
 
SDNV< Size > & operator*= (const SDNV< Size > &value)
 
bool operator& (const SDNV< Size > &value) const
 
bool operator| (const SDNV< Size > &value) const
 
SDNV< Size > & operator&= (const SDNV< Size > &value)
 
SDNV< Size > & operator|= (const SDNV< Size > &value)
 
bool operator< (const Sizevalue) const
 
bool operator< (const SDNV< Size > &value) const
 
bool operator<= (const Sizevalue) const
 
bool operator<= (const SDNV< Size > &value) const
 
bool operator> (const Sizevalue) const
 
bool operator> (const SDNV< Size > &value) const
 
bool operator>= (const Sizevalue) const
 
bool operator>= (const SDNV< Size > &value) const
 
SDNV< Size > & 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from dtn::data::SDNV< Size >
static SDNV< Sizemax ()
 
- Static Public Attributes inherited from dtn::data::SDNV< Size >
static const size_t MAX_LENGTH
 

Detailed Description

template<typename E>
class dtn::data::Bitset< E >

Definition at line 44 of file Number.h.

Constructor & Destructor Documentation

template<typename E>
dtn::data::Bitset< E >::Bitset ( Size  initial)
inline

Definition at line 46 of file Number.h.

template<typename E>
dtn::data::Bitset< E >::Bitset ( )
inline

Definition at line 49 of file Number.h.

template<typename E>
dtn::data::Bitset< E >::~Bitset ( )
inline

Definition at line 52 of file Number.h.

Member Function Documentation


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