#include <Edge.h>
default constructor - does not create a useful object
Edge::Edge |
( |
Vertex * |
v1, |
|
|
unsigned short |
idx1, |
|
|
Vertex * |
v2, |
|
|
unsigned short |
idx2 |
|
) |
| |
constructs an edge object
Edge::Edge |
( |
const Edge & |
e | ) |
|
bool Edge::contains |
( |
const Vertex * |
v | ) |
const |
- Returns
- true iff this edge contains the vertex v
unsigned short Edge::getIndex1 |
( |
void |
| ) |
const |
|
inline |
unsigned short Edge::getIndex2 |
( |
void |
| ) |
const |
|
inline |
get the old sample value that will be replaced to embed the bit represented by the vertex v
get the vertex on this edge that is not equal to v
get the sample value that should replace the previous sample value to embed the bit represented by the vertex v
get the position of the sample that should be changed to embed the bit represented by the vertex v
Vertex* Edge::getVertex1 |
( |
void |
| ) |
const |
|
inline |
Vertex* Edge::getVertex2 |
( |
void |
| ) |
const |
|
inline |
bool Edge::operator!= |
( |
const Edge & |
e | ) |
const |
bool Edge::operator== |
( |
const Edge & |
e | ) |
const |
void Edge::print |
( |
unsigned short |
spc = 0 | ) |
const |
void Edge::set |
( |
Vertex * |
v1, |
|
|
unsigned short |
idx1, |
|
|
Vertex * |
v2, |
|
|
unsigned short |
idx2 |
|
) |
| |
void Edge::set1 |
( |
Vertex * |
v1, |
|
|
unsigned short |
idx1 |
|
) |
| |
void Edge::set2 |
( |
Vertex * |
v2, |
|
|
unsigned short |
idx2 |
|
) |
| |
void Edge::setIndex1 |
( |
unsigned short |
i | ) |
|
|
inline |
void Edge::setVertex1 |
( |
Vertex * |
v | ) |
|
|
inline |
swap vertices 1 and 2 in this edge (weight is not altered)
unsigned short Edge::Index1 |
|
private |
unsigned short Edge::Index2 |
|
private |
The documentation for this class was generated from the following files: