Binc::PacketCombination Class Reference
[Binary Vectors]
#include <packet-combination.h>
List of all members.
Detailed Description
This class implements a coded packet using a CodingVector for the coding vector and and a BitVector for the payload.
Constructor & Destructor Documentation
Binc::PacketCombination::PacketCombination |
( |
|
) |
|
Binc::PacketCombination::~PacketCombination |
( |
|
) |
[virtual] |
copy constructor
- Parameters:
-
Create a Packet Combination with the given coding vector and payload
- Parameters:
-
| codingVector | the coding vector |
| payload | the payload |
Member Function Documentation
Ptr< BitVector > Binc::PacketCombination::GetPayloadCopy |
( |
|
) |
const |
- Returns:
- a Ptr to a newly created copy of the payload
bool Binc::PacketCombination::IsDecoded |
( |
unsigned int |
pos |
) |
|
check if the PacketCombination is decoded, i.e., if the cofficients of the coding vector are all zero except for the one at position pos which is equal to one.
- Parameters:
-
| pos | the position of the only non-zero coefficient of the coding vector. |
- Returns:
- true if the PacketCombination is decoded, false otherwise.
- Parameters:
-
- Returns:
- true if the PacketCombinations differ in coding vector or payload, false otherwise
Add the Right Hand Side of the operator to *this, bit by bit. Since we work over the GF2 (binary) field, this is equivalent to the bit by bit XOR operation.
- Parameters:
-
- Returns:
- a reference to *this
- Parameters:
-
- Returns:
- true if the PacketCombinations are identical (same payload and coding vector), false otherwise
Friends And Related Function Documentation
bitwise addition operator. Since we work over the GF2 (binary) field, this is equivalent to the bit by bit XOR operation.
- Parameters:
-
| lhs | Left Hand Side of the operator |
| rhs | Right Hand Side of the operator |
- Returns:
- the value of lhs + rhs
The documentation for this class was generated from the following files: