#include <AsympEdgesTest.hh>


Public Member Functions | |
| void | _succeed () |
| Explicitly succeds a test. | |
| AsympEdgesTest () | |
| long | getNumFailed () const |
| Returns number of failed tests. | |
| long | getNumPassed () const |
| Returns number of passed tests. | |
| const ostream * | getStream () const |
| Returns output stream. | |
| long | report () const |
| Prints a report on the number of passed and failed tests to the output stream. | |
| virtual void | reset () |
| Resets the counters for the failed and passed tests. | |
| virtual void | run () |
| Runs the tests. Must be overwritten by the specialization. | |
| void | setStream (ostream *osptr) |
| Sets the output stream. | |
| virtual | ~AsympEdgesTest () |
Test routines | |
| void | testTwoSquares () |
| Tests different spd matrices with CG. | |
| void | testFourSquares () |
| Tests different spd matrices with CG. | |
Protected Member Functions | |
| void | do_fail (const string &lbl, const char *fname, long lineno) |
| Internal function to report a failed test (besides increasing the failed counter) | |
| bool | do_numtest (double num, double orig, const string &lbl, const string &lbl2, const char *fname, long lineno, const double tol=1e-10) |
| Internal function to do a numerical test. | |
| bool | do_numtest (std::complex< double > num, std::complex< double > orig, const string &lbl, const string &lbl2, const char *fname, long lineno, const double tol=1e-10) |
| bool | do_test (bool cond, const string &lbl, const char *fname, long lineno) |
| Internal function to do a test. | |
Private Member Functions | |
| void | createSheetObject_ (const concepts::ThinSheetRule &rule) |
| Create the sheet object. | |
| void | loadMesh_ (const std::string name) |
| Loads a mesh. | |
| void | loadThickness_ (const std::string name) |
| Load thickness information. | |
| void | oneCell_ (const concepts::Quad2d *cell) const |
| Shows the information for one cell. | |
| void | scanCells_ () const |
| Scans over all cells and show if an edge is at one sheet. | |
| void | testEdge_ (const concepts::Quad2d *quad, uint i, bool top) const |
Private Attributes | |
| std::auto_ptr < concepts::HashMap< double > > | attr_thickness_ |
| Thickness. | |
| std::auto_ptr< concepts::Mesh2 > | msh_ |
| Mesh. | |
| const std::string | pathGitter_ |
| Directory with the meshes. | |
| std::auto_ptr < concepts::ThinSheetEdges > | thinEdges_ |
| Sheet object. | |
Definition at line 19 of file AsympEdgesTest.hh.
| test::AsympEdgesTest::AsympEdgesTest | ( | ) |
| virtual test::AsympEdgesTest::~AsympEdgesTest | ( | ) | [inline, virtual] |
Definition at line 22 of file AsympEdgesTest.hh.
| void test::TestCase::_succeed | ( | ) | [inline, inherited] |
Explicitly succeds a test.
Definition at line 109 of file testcase.hh.
| void test::AsympEdgesTest::createSheetObject_ | ( | const concepts::ThinSheetRule & | rule | ) | [private] |
Create the sheet object.
| void test::TestCase::do_fail | ( | const string & | lbl, |
| const char * | fname, | ||
| long | lineno | ||
| ) | [protected, inherited] |
Internal function to report a failed test (besides increasing the failed counter)
| bool test::TestCase::do_numtest | ( | std::complex< double > | num, |
| std::complex< double > | orig, | ||
| const string & | lbl, | ||
| const string & | lbl2, | ||
| const char * | fname, | ||
| long | lineno, | ||
| const double | tol = 1e-10 |
||
| ) | [protected, inherited] |
| bool test::TestCase::do_numtest | ( | double | num, |
| double | orig, | ||
| const string & | lbl, | ||
| const string & | lbl2, | ||
| const char * | fname, | ||
| long | lineno, | ||
| const double | tol = 1e-10 |
||
| ) | [protected, inherited] |
Internal function to do a numerical test.
| bool test::TestCase::do_test | ( | bool | cond, |
| const string & | lbl, | ||
| const char * | fname, | ||
| long | lineno | ||
| ) | [protected, inherited] |
Internal function to do a test.
| long test::TestCase::getNumFailed | ( | ) | const [inline, inherited] |
Returns number of failed tests.
Definition at line 102 of file testcase.hh.
| long test::TestCase::getNumPassed | ( | ) | const [inline, inherited] |
Returns number of passed tests.
Definition at line 100 of file testcase.hh.
| const ostream* test::TestCase::getStream | ( | ) | const [inline, inherited] |
Returns output stream.
Definition at line 104 of file testcase.hh.
| void test::AsympEdgesTest::loadMesh_ | ( | const std::string | name | ) | [private] |
Loads a mesh.
| void test::AsympEdgesTest::loadThickness_ | ( | const std::string | name | ) | [private] |
Load thickness information.
| void test::AsympEdgesTest::oneCell_ | ( | const concepts::Quad2d * | cell | ) | const [private] |
Shows the information for one cell.
| long test::TestCase::report | ( | ) | const [inherited] |
Prints a report on the number of passed and failed tests to the output stream.
| virtual void test::TestCase::reset | ( | ) | [inline, virtual, inherited] |
Resets the counters for the failed and passed tests.
Definition at line 116 of file testcase.hh.
| virtual void test::AsympEdgesTest::run | ( | ) | [virtual] |
Runs the tests. Must be overwritten by the specialization.
Implements test::TestCase.
| void test::AsympEdgesTest::scanCells_ | ( | ) | const [private] |
Scans over all cells and show if an edge is at one sheet.
| void test::TestCase::setStream | ( | ostream * | osptr | ) | [inline, inherited] |
Sets the output stream.
Definition at line 106 of file testcase.hh.
| void test::AsympEdgesTest::testEdge_ | ( | const concepts::Quad2d * | quad, |
| uint | i, | ||
| bool | top | ||
| ) | const [private] |
| void test::AsympEdgesTest::testFourSquares | ( | ) |
Tests different spd matrices with CG.
| void test::AsympEdgesTest::testTwoSquares | ( | ) |
Tests different spd matrices with CG.
std::auto_ptr<concepts::HashMap<double> > test::AsympEdgesTest::attr_thickness_ [private] |
Thickness.
Definition at line 38 of file AsympEdgesTest.hh.
std::auto_ptr<concepts::Mesh2> test::AsympEdgesTest::msh_ [private] |
Mesh.
Definition at line 36 of file AsympEdgesTest.hh.
const std::string test::AsympEdgesTest::pathGitter_ [private] |
Directory with the meshes.
Definition at line 34 of file AsympEdgesTest.hh.
std::auto_ptr<concepts::ThinSheetEdges> test::AsympEdgesTest::thinEdges_ [private] |
Sheet object.
Definition at line 40 of file AsympEdgesTest.hh.