Definition at line 20 of file vector_test.cpp.
◆ allocator_with_state()
void VectorTest::allocator_with_state |
( |
| ) |
|
|
protected |
Definition at line 373 of file vector_test.cpp.
374 {
375 char buf1[1024];
377
378 char buf2[1024];
380
381 {
383 VectorInt vint1(10, 0, stack1);
384 VectorInt vint1Cpy(vint1);
385
386 VectorInt vint2(10, 1, stack2);
387 VectorInt vint2Cpy(vint2);
388
389 vint1.swap(vint2);
390
393
398 }
401 }
#define CPPUNIT_ASSERT(X)
◆ assign_check()
void VectorTest::assign_check |
( |
| ) |
|
|
protected |
Definition at line 445 of file vector_test.cpp.
446{
447#if !defined (STLPORT) || !defined (_STLP_NO_MEMBER_TEMPLATES)
449 int array[] = { 1, 2, 3, 4, 5 };
450
455#endif
456}
◆ at()
Definition at line 313 of file vector_test.cpp.
313 {
316
321
322#if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
323 try {
326 }
328 }
329 catch (...) {
331 }
332#endif
333}
reference at(size_type __n)
◆ auto_ref()
void VectorTest::auto_ref |
( |
| ) |
|
|
protected |
Definition at line 344 of file vector_test.cpp.
345{
347 for (
int i = 0;
i < 5; ++
i) {
349 }
350
352 v_v_int.push_back(v_v_int[0]);
353 v_v_int.push_back(
ref);
354 v_v_int.push_back(v_v_int[0]);
355 v_v_int.push_back(v_v_int[0]);
356 v_v_int.push_back(
ref);
357
359 for (; vvit != vvitEnd; ++vvit) {
361 }
362
363
364
365
366
367
368
369
370
371}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
◆ capacity()
void VectorTest::capacity |
( |
| ) |
|
|
protected |
Definition at line 293 of file vector_test.cpp.
294{
295 {
297
303 }
304
305 {
306
310 }
311}
void reserve(size_type __n)
◆ CPPUNIT_TEST() [1/16]
◆ CPPUNIT_TEST() [2/16]
◆ CPPUNIT_TEST() [3/16]
VectorTest::CPPUNIT_TEST |
( |
at |
| ) |
|
|
private |
◆ CPPUNIT_TEST() [4/16]
◆ CPPUNIT_TEST() [5/16]
◆ CPPUNIT_TEST() [6/16]
VectorTest::CPPUNIT_TEST |
( |
ebo |
| ) |
|
|
private |
◆ CPPUNIT_TEST() [7/16]
◆ CPPUNIT_TEST() [8/16]
◆ CPPUNIT_TEST() [9/16]
VectorTest::CPPUNIT_TEST |
( |
pointer |
| ) |
|
|
private |
◆ CPPUNIT_TEST() [10/16]
◆ CPPUNIT_TEST() [11/16]
◆ CPPUNIT_TEST() [12/16]
◆ CPPUNIT_TEST() [13/16]
◆ CPPUNIT_TEST() [14/16]
◆ CPPUNIT_TEST() [15/16]
◆ CPPUNIT_TEST() [16/16]
◆ CPPUNIT_TEST_SUITE()
◆ CPPUNIT_TEST_SUITE_END()
VectorTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
|
private |
◆ ebo()
Definition at line 527 of file vector_test.cpp.
528{
529
530
531
532
534 V *pv1 =
new V(1, 1);
535 V *
pv2 =
new V(10, 2);
536
537 size_t v1Capacity = pv1->capacity();
538 size_t v2Capacity =
pv2->capacity();
539
541
545
549
551 delete pv1;
552}
◆ iterators()
void VectorTest::iterators |
( |
| ) |
|
|
protected |
Definition at line 458 of file vector_test.cpp.
459{
462
467
472
474
475
476
478
480
481
482
484}
reverse_iterator rbegin()
◆ optimizations_check()
void VectorTest::optimizations_check |
( |
| ) |
|
|
protected |
Definition at line 433 of file vector_test.cpp.
434{
435#if !defined (STLPORT) || !defined (_STLP_NO_MEMBER_TEMPLATES)
438
442#endif
443}
GLfloat GLfloat GLfloat v2
◆ pointer()
void VectorTest::pointer |
( |
| ) |
|
|
protected |
Definition at line 335 of file vector_test.cpp.
336{
340
341 v3.insert(
v3.end(),
v1.begin(),
v1.end() );
342}
GLfloat GLfloat GLfloat GLfloat v3
◆ vec_test_1()
void VectorTest::vec_test_1 |
( |
| ) |
|
|
protected |
Definition at line 69 of file vector_test.cpp.
70{
72
75
76
77
79
81
83
84 {
87 for (; it !=
end; ++it) {
92 }
93 }
94}
◆ vec_test_2()
void VectorTest::vec_test_2 |
( |
| ) |
|
|
protected |
Definition at line 96 of file vector_test.cpp.
97{
103
107
110 size_t v1Cap =
v1.capacity();
111 size_t v2Cap =
v2.capacity();
112
114
118
123
125
128}
◆ vec_test_3()
void VectorTest::vec_test_3 |
( |
| ) |
|
|
protected |
Definition at line 130 of file vector_test.cpp.
131{
133
137
141
142 vec_type
v2(
v1.begin(),
v1.end());
144
148
150
152}
◆ vec_test_4()
void VectorTest::vec_test_4 |
( |
| ) |
|
|
protected |
◆ vec_test_5()
void VectorTest::vec_test_5 |
( |
| ) |
|
|
protected |
◆ vec_test_6()
void VectorTest::vec_test_6 |
( |
| ) |
|
|
protected |
Definition at line 191 of file vector_test.cpp.
192{
193 int array [] = { 1, 4, 9, 16, 25, 36 };
194
197
205
208
215
218
224
225
226 v.erase(
v.begin() + 1,
v.end() - 1);
227
231
232}
iterator erase(iterator __pos)
◆ vec_test_7()
void VectorTest::vec_test_7 |
( |
| ) |
|
|
protected |
Definition at line 234 of file vector_test.cpp.
235{
236 int array1 [] = { 1, 4, 25 };
237 int array2 [] = { 9, 16 };
238
243
246
253
254
255 v.insert(
v.begin() + 3, array2, array2 + 2);
256
258
266
269
270 v.insert(
v.begin(), 5, 10);
277
278
279
280
281
282
283
284
285
286}
iterator insert(iterator __pos, const _Tp &__x=_STLP_DEFAULT_CONSTRUCTED(_Tp))
◆ CPPUNIT_STOP_IGNORE
VectorTest::CPPUNIT_STOP_IGNORE |
|
private |
The documentation for this class was generated from the following file: