Vertex.h
Go to the documentation of this file.
/*
* steghide 0.5.1 - a steganography program
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef SH_VERTEX_H
#define SH_VERTEX_H
#include "CvrStgFile.h"
#include "common.h"
class Edge ;
class SampleOccurence ;
class SampleValue ;
class Vertex {
public:
Vertex (VertexLabel l, SamplePos* sposs, SampleValue** svalues, EmbValue t) ;
~Vertex (void) ;
SamplePos getSamplePos (unsigned short i) const
{ return SamplePositions[i] ; } ;
SampleValue* getSampleValue (unsigned short i) const
{ return SampleValues[i] ; } ;
UWORD32 getDegree (void) const ;
Edge *getShortestEdge (void) const
{ return ShortestEdge ; } ;
void updateShortestEdge (void) ;
void markDeleted (void) ;
void unmarkDeleted (void) ;
VertexLabel getLabel (void) const
{ return Label ; } ;
void setLabel (VertexLabel l)
{ Label = l ; } ;
void setSampleOccurenceIt (unsigned short i, std::list<SampleOccurence>::iterator it)
{ SampleOccurenceIts[i] = it ; }
EmbValue getEmbeddedValue (void) const ;
EmbValue getTargetValue (unsigned short i) const
{ return TargetValues[i] ; } ;
void print (unsigned short spc = 0) const ;
void printEdges (void) const ;
private:
VertexLabel Label ;
SamplePos* SamplePositions ;
SampleValue** SampleValues ;
EmbValue* TargetValues ;
std::list<SampleOccurence>::iterator* SampleOccurenceIts ;
Edge *ShortestEdge ;
bool valid ;
unsigned short SelfDegree ;
} ;
#endif // ndef SH_VERTEX_H
Vertex::SampleOccurenceIts
std::list< SampleOccurence >::iterator * SampleOccurenceIts
point to entries in std::lists of sample occurences in the graph
Definition: Vertex.h:129
Vertex::printEdges
void printEdges(void) const
Definition: Vertex.cc:192
Vertex::TargetValues
EmbValue * TargetValues
the target values for the sample values (exactly one of them has to be reached (and the other left un...
Definition: Vertex.h:126
Vertex::ShortestEdge
Edge * ShortestEdge
the shortest edge of this vertex (as calculated by updateShortestEdge)
Definition: Vertex.h:132
Vertex::Vertex
Vertex(VertexLabel l, SamplePos *sposs, SampleValue **svalues, EmbValue t)
Definition: Vertex.cc:28
Vertex::getDegree
UWORD32 getDegree(void) const
Definition: Vertex.cc:155
SamplePos
UWORD32 SamplePos
Definition: common.h:67
Edge
Definition: Edge.h:28
SampleValue
the value of a sample in a CvrStgFile
Definition: SampleValue.h:61
Vertex::markDeleted
void markDeleted(void)
Definition: Vertex.cc:80
Vertex::updateShortestEdge
void updateShortestEdge(void)
Definition: Vertex.cc:128
VertexLabel
UWORD32 VertexLabel
Definition: common.h:68
Vertex::getSampleValue
SampleValue * getSampleValue(unsigned short i) const
Definition: Vertex.h:69
UWORD32
unsigned long UWORD32
Definition: common.h:45
Vertex::getSamplePos
SamplePos getSamplePos(unsigned short i) const
Definition: Vertex.h:61
Vertex::setLabel
void setLabel(VertexLabel l)
Definition: Vertex.h:101
SampleOccurence
Definition: SampleOccurence.h:26
Vertex::SelfDegree
unsigned short SelfDegree
the number of loop edges (loop edges are not valid edges)
Definition: Vertex.h:138
Vertex::Label
VertexLabel Label
the vertex label of this vertex
Definition: Vertex.h:117
CvrStgFile.h
Vertex::getTargetValue
EmbValue getTargetValue(unsigned short i) const
Definition: Vertex.h:109
Vertex::SampleValues
SampleValue ** SampleValues
the sample values at the SamplePositions
Definition: Vertex.h:123
Vertex::unmarkDeleted
void unmarkDeleted(void)
Definition: Vertex.cc:104
Vertex::~Vertex
~Vertex(void)
Definition: Vertex.cc:71
Vertex::valid
bool valid
true iff this vertex is not deleted
Definition: Vertex.h:135
Vertex::getLabel
VertexLabel getLabel(void) const
Definition: Vertex.h:98
Vertex::print
void print(unsigned short spc=0) const
Definition: Vertex.cc:166
Vertex::setSampleOccurenceIt
void setSampleOccurenceIt(unsigned short i, std::list< SampleOccurence >::iterator it)
Definition: Vertex.h:104
common.h
Vertex::getShortestEdge
Edge * getShortestEdge(void) const
Definition: Vertex.h:80
EmbValue
BYTE EmbValue
Definition: common.h:66
Vertex::SamplePositions
SamplePos * SamplePositions
the sample positions of the samples described by this vertex in the CvrStgFile
Definition: Vertex.h:120
Vertex::getEmbeddedValue
EmbValue getEmbeddedValue(void) const
Definition: Vertex.cc:145
Vertex
a vertex in a graph
Definition: Vertex.h:43