SampleValueTest Class Reference

#include <SampleValueTest.h>

Inheritance diagram for SampleValueTest:

UnitTest Test AudioSampleValueTest BmpPaletteSampleValueTest BmpRGBSampleValueTest JpegSampleValueTest WavPCMSampleValueTest List of all members.

Public Member Functions

 SampleValueTest (std::string n, TestSuite *s)

Protected Member Functions

bool genericTestDistance (SampleValue *s1, SampleValue *s2, UWORD32 dist)
bool genericTestIsNeighbour (SampleValue *s1, SampleValue *s2, bool res)
bool genericTestEValue (SampleValue *s, EmbValue ev)

Constructor & Destructor Documentation

SampleValueTest::SampleValueTest ( std::string  n,
TestSuite s 
) [inline]


Member Function Documentation

bool SampleValueTest::genericTestDistance ( SampleValue s1,
SampleValue s2,
UWORD32  dist 
) [protected]

generic distance test

Parameters:
s1 a sample value
s2 another sample value
dist this should be the distance between s1 and s2
Returns:
true iff distance is commutative and return dist

bool SampleValueTest::genericTestEValue ( SampleValue s,
EmbValue  ev 
) [protected]

generic evalue test

Parameters:
s a sample value
ev an embedded value
Returns:
true iff s->getEmbeddedValue() == ev

bool SampleValueTest::genericTestIsNeighbour ( SampleValue s1,
SampleValue s2,
bool  res 
) [protected]

generic neighbourhood test

Parameters:
s1 a sample value
s2 another sample value
res true iff they are neighbours
Returns:
true iff calling isNeighbour (with reflexivity) equals res


The documentation for this class was generated from the following files:
Generated on Mon Oct 23 09:06:10 2006 for steghide by  doxygen 1.4.7