Files Classes Functions Hierarchy
#include <simplexD1listlinkedtest.h>
Static Public Member Functions | |
| static void | test01 () |
| Reading a simplexD1list from a vector. | |
| static void | test02 () |
| Test simplexD1listlinked::serializeInverse. | |
| static void | test03 () |
| Given a list of lines/segments link them up. | |
Static Public Attributes | |
| static string | doc [] |
| Brief description of each test. | |
Definition at line 8 of file simplexD1listlinkedtest.h.
| void simplexD1listlinkedtest::test01 | ( | ) | [static] |
Reading a simplexD1list from a vector.
Definition at line 21 of file simplexD1listlinkedtest.cpp.
References doc, and simplexD1listlinked< VI, INDX >::readindexed().
Referenced by main().
00022 { 00023 cout << doc[1] << endl; 00024 00025 typedef vector< simplexD1linked<uint> > vec; 00026 vec v2(8); 00027 simplexD1listlinked< vec &, uint > s1(v2,8); 00028 00029 uint v[] = 00030 { 00031 0, 0, 00032 2, 6, 00033 7, 5, 00034 4, 1, 00035 5, 4, 00036 6, 1, 00037 3, 7, 00038 2, 3 00039 }; 00040 s1.readindexed(v); 00041 00042 string str = (string)s1; 00043 cout << str << endl << endl; 00044 }
| void simplexD1listlinkedtest::test02 | ( | ) | [static] |
Test simplexD1listlinked::serializeInverse.
Definition at line 47 of file simplexD1listlinkedtest.cpp.
References doc, simplexD1listlinked< VI, INDX >::readindexed(), and simplexD1listlinked< VI, INDX >::serializeInverse().
Referenced by main().
00048 { 00049 cout << doc[2] << endl; 00050 00051 typedef vector< simplexD1linked<uint> > vec; 00052 vec v2(8); 00053 simplexD1listlinked< vec &, uint > s1(v2,8); 00054 00055 uint v[] = 00056 { 00057 0, 0, 00058 2, 6, 00059 7, 5, 00060 4, 1, 00061 5, 4, 00062 6, 1, 00063 3, 7, 00064 2, 3 00065 }; 00066 s1.readindexed(v); 00067 00068 string str = (string)s1; 00069 cout << "Writing the target string" << endl; 00070 cout << "********" << endl; 00071 cout << str << endl; 00072 cout << "********" << endl; 00073 cout << "Attempting to read the target string" << endl; 00074 00075 vec v3(8); 00076 simplexD1listlinked< vec &, uint > s2(v3,8); 00077 s2.serializeInverse(str); 00078 cout << "Writing what was read in" << endl; 00079 cout << "********" << endl; 00080 cout << (string)s2 << endl; 00081 cout << "********" << endl; 00082 }
| void simplexD1listlinkedtest::test03 | ( | ) | [static] |
Given a list of lines/segments link them up.
Definition at line 85 of file simplexD1listlinkedtest.cpp.
References simplexD1listlinked< VI, INDX >::consistantwinding(), doc, simplexD1listlinked< VI, INDX >::makelinks(), and simplexD1listlinked< VI, INDX >::readindexed().
Referenced by main().
00086 { 00087 cout << doc[3] << endl; 00088 00089 typedef vector< simplexD1linked<uint> > vec; 00090 vec v2(8); 00091 simplexD1listlinked< vec &, uint > s1(v2,8); 00092 00093 uint v[] = 00094 { 00095 0, 0, 00096 2, 6, 00097 7, 5, 00098 4, 1, 00099 5, 4, 00100 6, 1, 00101 3, 7, 00102 2, 3 00103 }; 00104 s1.readindexed(v); 00105 00106 cout << "Line segements" << endl; 00107 cout << (string)s1 << endl << endl; 00108 00109 s1.makelinks(7); 00110 00111 cout << "Printing result" << endl; 00112 cout << (string)s1 << endl; 00113 cout << "Consistant winding" << endl; 00114 s1.consistantwinding(); 00115 cout << (string)s1 << endl; 00116 }
string simplexD1listlinkedtest::doc [static] |
Initial value:
{
"",
"Reading a simplexD1list from a vector.",
"Test simplexD1listlinked::serializeInverse",
"Given a list of lines/segments link them up."
}
Definition at line 13 of file simplexD1listlinkedtest.h.
1.5.8