DummySampleValue Class Reference

#include <DummySampleValue.h>

Inheritance diagram for DummySampleValue:

SampleValue List of all members.

Public Member Functions

 DummySampleValue (UWORD16 v)
UWORD16 getValue (void) const
UWORD32 calcDistance (const SampleValue *s) const
bool isNeighbour (const SampleValue *s) const
SampleValuegetNearestTargetSampleValue (EmbValue t) const
std::string getName (void) const

Private Attributes

UWORD16 Value

Constructor & Destructor Documentation

DummySampleValue::DummySampleValue ( UWORD16  v  )  [inline]


Member Function Documentation

UWORD16 DummySampleValue::getValue ( void   )  const [inline]

UWORD32 DummySampleValue::calcDistance ( const SampleValue s  )  const [virtual]

calculate the distance as | Value - s->Value |

Implements SampleValue.

bool DummySampleValue::isNeighbour ( const SampleValue s  )  const [virtual]

return from the contents of the SampleValueAdjacencyMatrix in the DummyFile

Reimplemented from SampleValue.

SampleValue * DummySampleValue::getNearestTargetSampleValue ( EmbValue  t  )  const [virtual]

get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target

Parameters:
t the target embedded value
If two or more target sample values have equal distance each of them should be returned with equal probability.

The returned SampleValue object should be deleted by the callser.

Implements SampleValue.

std::string DummySampleValue::getName ( void   )  const [virtual]

return a short name uniquely identifying this sample value

Implements SampleValue.


Member Data Documentation

UWORD16 DummySampleValue::Value [private]


The documentation for this class was generated from the following files:
Generated on Fri Feb 2 09:21:49 2007 for steghide by  doxygen 1.5.1