CPP07 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
main.cpp ファイル

Main file to test the Array class template. [詳解]

#include "Array.hpp"
#include <iostream>
#include <string>
main.cpp の依存先関係図:

[ソースコード]

関数

void test_default_constructor ()
 Tests the default constructor of the Array class.
 
void test_uint_constructor ()
 Tests the constructor that takes an unsigned int as a parameter.
 
void test_copy_and_assignment ()
 Tests the copy constructor and assignment operator.
 
void test_out_of_bounds ()
 Tests out-of-bounds access to ensure exceptions are thrown.
 
void test_const_array ()
 Tests the usage of a const Array object.
 
int main ()
 The main entry point of the program.
 

詳解

Main file to test the Array class template.

main.cpp に定義があります。

関数詳解

◆ main()

int main ( void  )

The main entry point of the program.

This function calls all the test functions to demonstrate the functionality of the Array class.

戻り値
int Returns 0 upon successful execution.

main.cpp165 行目に定義があります。

◆ test_const_array()

void test_const_array ( )

Tests the usage of a const Array object.

main.cpp137 行目に定義があります。

◆ test_copy_and_assignment()

void test_copy_and_assignment ( )

Tests the copy constructor and assignment operator.

main.cpp66 行目に定義があります。

◆ test_default_constructor()

void test_default_constructor ( )

Tests the default constructor of the Array class.

main.cpp25 行目に定義があります。

◆ test_out_of_bounds()

void test_out_of_bounds ( )

Tests out-of-bounds access to ensure exceptions are thrown.

main.cpp114 行目に定義があります。

◆ test_uint_constructor()

void test_uint_constructor ( )

Tests the constructor that takes an unsigned int as a parameter.

main.cpp42 行目に定義があります。