#include <Edge.h>
Public Member Functions | |
Edge (void) | |
Edge (Vertex *v1, unsigned short idx1, Vertex *v2, unsigned short idx2) | |
Edge (const Edge &e) | |
Vertex * | getVertex1 (void) const |
void | setVertex1 (Vertex *v) |
Vertex * | getVertex2 (void) const |
unsigned short | getIndex1 (void) const |
void | setIndex1 (unsigned short i) |
unsigned short | getIndex2 (void) const |
UWORD32 | getWeight (void) |
void | set (Vertex *v1, unsigned short idx1, Vertex *v2, unsigned short idx2) |
void | set1 (Vertex *v1, unsigned short idx1) |
void | set2 (Vertex *v2, unsigned short idx2) |
bool | operator== (const Edge &e) const |
bool | operator!= (const Edge &e) const |
void | swap (void) |
bool | contains (const Vertex *v) const |
Vertex * | getOtherVertex (const Vertex *v) const |
SamplePos | getSamplePos (Vertex *v) const |
SampleValue * | getOriginalSampleValue (Vertex *v) const |
SampleValue * | getReplacingSampleValue (Vertex *v) const |
void | print (unsigned short spc=0) const |
Private Attributes | |
Vertex * | Vertex1 |
unsigned short | Index1 |
contains the index of the sample (of those in Vertex1) that will be changed (if this edge is used) | |
Vertex * | Vertex2 |
unsigned short | Index2 |
contains the index of the sample (of those in Vertex2) that will be changed (if this edge is used) | |
UWORD32 | Weight |
|
default constructor - does not create a useful object |
|
constructs an edge object |
|
copy constructor |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swap vertices 1 and 2 in this edge (weight is not altered) |
|
|
|
|
|
|
|
|
|
|