<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>steghide: SampleValueTest Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>SampleValueTest Class Reference</h1><!-- doxytag: class="SampleValueTest" --><!-- doxytag: inherits="UnitTest" --><code>#include <<a class="el" href="SampleValueTest_8h_source.html">SampleValueTest.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for SampleValueTest:</div> <div class="dynsection"> <p><center><img src="classSampleValueTest.png" usemap="#SampleValueTest_map" border="0" alt=""></center> <map name="SampleValueTest_map"> <area href="classUnitTest.html" alt="UnitTest" shape="rect" coords="362,56,533,80"> <area href="classTest.html" alt="Test" shape="rect" coords="362,0,533,24"> <area href="classAudioSampleValueTest.html" alt="AudioSampleValueTest" shape="rect" coords="0,168,171,192"> <area href="classBmpPaletteSampleValueTest.html" alt="BmpPaletteSampleValueTest" shape="rect" coords="181,168,352,192"> <area href="classBmpRGBSampleValueTest.html" alt="BmpRGBSampleValueTest" shape="rect" coords="362,168,533,192"> <area href="classJpegSampleValueTest.html" alt="JpegSampleValueTest" shape="rect" coords="543,168,714,192"> <area href="classWavPCMSampleValueTest.html" alt="WavPCMSampleValueTest" shape="rect" coords="724,168,895,192"> </map> </div> <p> <a href="classSampleValueTest-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSampleValueTest.html#65687e9172466f10ec1f3f97b367b76a">SampleValueTest</a> (std::string n, <a class="el" href="classTestSuite.html">TestSuite</a> *s)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSampleValueTest.html#d7df3ef7a3b8fd9029143cb1db012318">genericTestDistance</a> (<a class="el" href="classSampleValue.html">SampleValue</a> *s1, <a class="el" href="classSampleValue.html">SampleValue</a> *s2, <a class="el" href="common_8h.html#6b8592979b076e06aa233e3f586ac999">UWORD32</a> dist)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSampleValueTest.html#df6d6ba56d2a98be8435b1bb2933febc">genericTestIsNeighbour</a> (<a class="el" href="classSampleValue.html">SampleValue</a> *s1, <a class="el" href="classSampleValue.html">SampleValue</a> *s2, bool res)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSampleValueTest.html#4b337a7a2aa6e95d1c8ecfd31b2a1c03">genericTestEValue</a> (<a class="el" href="classSampleValue.html">SampleValue</a> *s, <a class="el" href="common_8h.html#cf820202f81f25eb00734eac0d7aed2d">EmbValue</a> ev)</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="65687e9172466f10ec1f3f97b367b76a"></a><!-- doxytag: member="SampleValueTest::SampleValueTest" ref="65687e9172466f10ec1f3f97b367b76a" args="(std::string n, TestSuite *s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">SampleValueTest::SampleValueTest </td> <td>(</td> <td class="paramtype">std::string </td> <td class="paramname"> <em>n</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classTestSuite.html">TestSuite</a> * </td> <td class="paramname"> <em>s</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="d7df3ef7a3b8fd9029143cb1db012318"></a><!-- doxytag: member="SampleValueTest::genericTestDistance" ref="d7df3ef7a3b8fd9029143cb1db012318" args="(SampleValue *s1, SampleValue *s2, UWORD32 dist)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool SampleValueTest::genericTestDistance </td> <td>(</td> <td class="paramtype"><a class="el" href="classSampleValue.html">SampleValue</a> * </td> <td class="paramname"> <em>s1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classSampleValue.html">SampleValue</a> * </td> <td class="paramname"> <em>s2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="common_8h.html#6b8592979b076e06aa233e3f586ac999">UWORD32</a> </td> <td class="paramname"> <em>dist</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> generic distance test <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s1</em> </td><td>a sample value </td></tr> <tr><td valign="top"></td><td valign="top"><em>s2</em> </td><td>another sample value </td></tr> <tr><td valign="top"></td><td valign="top"><em>dist</em> </td><td>this should be the distance between s1 and s2 </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true iff distance is commutative and return dist </dd></dl> </div> </div><p> <a class="anchor" name="4b337a7a2aa6e95d1c8ecfd31b2a1c03"></a><!-- doxytag: member="SampleValueTest::genericTestEValue" ref="4b337a7a2aa6e95d1c8ecfd31b2a1c03" args="(SampleValue *s, EmbValue ev)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool SampleValueTest::genericTestEValue </td> <td>(</td> <td class="paramtype"><a class="el" href="classSampleValue.html">SampleValue</a> * </td> <td class="paramname"> <em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="common_8h.html#cf820202f81f25eb00734eac0d7aed2d">EmbValue</a> </td> <td class="paramname"> <em>ev</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> generic evalue test <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>a sample value </td></tr> <tr><td valign="top"></td><td valign="top"><em>ev</em> </td><td>an embedded value </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true iff s->getEmbeddedValue() == ev </dd></dl> </div> </div><p> <a class="anchor" name="df6d6ba56d2a98be8435b1bb2933febc"></a><!-- doxytag: member="SampleValueTest::genericTestIsNeighbour" ref="df6d6ba56d2a98be8435b1bb2933febc" args="(SampleValue *s1, SampleValue *s2, bool res)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool SampleValueTest::genericTestIsNeighbour </td> <td>(</td> <td class="paramtype"><a class="el" href="classSampleValue.html">SampleValue</a> * </td> <td class="paramname"> <em>s1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classSampleValue.html">SampleValue</a> * </td> <td class="paramname"> <em>s2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>res</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> generic neighbourhood test <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s1</em> </td><td>a sample value </td></tr> <tr><td valign="top"></td><td valign="top"><em>s2</em> </td><td>another sample value </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>true iff they are neighbours </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true iff calling isNeighbour (with reflexivity) equals res </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="SampleValueTest_8h_source.html">SampleValueTest.h</a><li><a class="el" href="SampleValueTest_8cc.html">SampleValueTest.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Aug 17 10:58:32 2009 for steghide by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>