Files Classes Functions Hierarchy
#include <cassert>#include <vector>#include <typedefs.h>
Go to the source code of this file.
Classes | |
| class | vectorreadingD2primitive< PT > |
Functions | |
| template<class PT , class T > | |
| void | vectorreadingD2 (vector< PT > &v, T const *abeg, T const *aend) |
| Read a 1D array into a vector with each element being 2D. | |
| template<class PT , class T > | |
| void | vectorreadingD2 (vector< PT > &v, T const *abeg, uintc N) |
| Read a 1D array into a vector with each element being 2D. | |
| template<class PT , class T > | |
| void | vectorreadingD3 (vector< PT > &v, T const *abeg, T const *aend) |
| Read a 1D array into a vector with each element being 3D. | |
| template<class PT , class T > | |
| void | vectorreadingD3 (vector< PT > &v, T const *abeg, uintc N) |
| Read a 1D array into a vector with each element being 3D. | |
| void vectorreadingD2 | ( | vector< PT > & | v, | |
| T const * | abeg, | |||
| uintc | N | |||
| ) | [inline] |
Read a 1D array into a vector with each element being 2D.
Definition at line 37 of file vectorreadin.h.
References vectorreadingD2().
00042 { 00043 T const * aend = abeg + N*2; 00044 vectorreadingD2(v,abeg,aend); 00045 }
| void vectorreadingD2 | ( | vector< PT > & | v, | |
| T const * | abeg, | |||
| T const * | aend | |||
| ) | [inline] |
Read a 1D array into a vector with each element being 2D.
Definition at line 14 of file vectorreadin.h.
Referenced by simplexD2tessindexed< PT, PD, INDX >::construct(), simplexD1tessindexed< PT, PD, INDX >::construct(), and vectorreadingD2().
00019 { 00020 assert((aend-abeg)%2==0); 00021 00022 uint n = (aend-abeg)/2; 00023 vector< PT > v2(n); 00024 for (uint i=0; i<n; ++i) 00025 { 00026 v2[i] = PT(*abeg,*(abeg+1)); 00027 ++abeg; ++abeg; 00028 } 00029 00030 v = v2; 00031 }
| void vectorreadingD3 | ( | vector< PT > & | v, | |
| T const * | abeg, | |||
| uintc | N | |||
| ) | [inline] |
Read a 1D array into a vector with each element being 3D.
Definition at line 103 of file vectorreadin.h.
References vectorreadingD3().
00108 { 00109 T const * aend = abeg + N*3; 00110 vectorreadingD3(v,abeg,aend); 00111 }
| void vectorreadingD3 | ( | vector< PT > & | v, | |
| T const * | abeg, | |||
| T const * | aend | |||
| ) | [inline] |
Read a 1D array into a vector with each element being 3D.
Definition at line 81 of file vectorreadin.h.
Referenced by simplexD2tessindexed< PT, PD, INDX >::construct(), and vectorreadingD3().
00086 { 00087 assert((aend-abeg)%3==0); 00088 00089 uint n = (aend-abeg)/3; 00090 vector< PT > v2(n); 00091 for (uint i=0; i<n; ++i) 00092 { 00093 v2[i] = PT(*abeg,*(abeg+1),*(abeg+2)); 00094 ++abeg; ++abeg; ++abeg; 00095 } 00096 00097 v = v2; 00098 }
1.5.8