Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

Edge Class Reference

#include <Edge.h>

List of all members.

Public Member Functions

 Edge (void)
 Edge (Vertex *v1, unsigned short idx1, Vertex *v2, unsigned short idx2)
 Edge (const Edge &e)
VertexgetVertex1 (void) const
void setVertex1 (Vertex *v)
VertexgetVertex2 (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
VertexgetOtherVertex (const Vertex *v) const
SamplePos getSamplePos (Vertex *v) const
SampleValuegetOriginalSampleValue (Vertex *v) const
SampleValuegetReplacingSampleValue (Vertex *v) const
void print (unsigned short spc=0) const

Private Attributes

VertexVertex1
unsigned short Index1
 contains the index of the sample (of those in Vertex1) that will be changed (if this edge is used)

VertexVertex2
unsigned short Index2
 contains the index of the sample (of those in Vertex2) that will be changed (if this edge is used)

UWORD32 Weight


Constructor & Destructor Documentation

Edge::Edge void   )  [inline]
 

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  ) 
 

copy constructor


Member Function Documentation

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]
 

SampleValue * Edge::getOriginalSampleValue Vertex v  )  const
 

get the old sample value that will be replaced to embed the bit represented by the vertex v

Vertex * Edge::getOtherVertex const Vertex v  )  const
 

get the vertex on this edge that is not equal to v

SampleValue * Edge::getReplacingSampleValue Vertex v  )  const
 

get the sample value that should replace the previous sample value to embed the bit represented by the vertex v

SamplePos Edge::getSamplePos Vertex v  )  const
 

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]
 

UWORD32 Edge::getWeight void   ) 
 

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]
 

void Edge::swap void   ) 
 

swap vertices 1 and 2 in this edge (weight is not altered)


Member Data Documentation

unsigned short Edge::Index1 [private]
 

unsigned short Edge::Index2 [private]
 

Vertex* Edge::Vertex1 [private]
 

Vertex* Edge::Vertex2 [private]
 

UWORD32 Edge::Weight [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Nov 13 23:44:23 2003 for steghide by doxygen 1.3.3