pure-cpp 1.0.0
A C++ physics simulation benchmark comparing performance with Python implementations
main.cpp File Reference

Main entry point for the n-body simulation benchmark. More...

#include <QApplication>
#include <QDebug>
#include <QObject>
#include <boost/program_options.hpp>
#include <exception>
#include "app_manager.hpp"
#include "app_profiler.hpp"
#include "cmd_line_parser.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Namespaces

namespace  AppUtils
 Namespace for application-wide utility functions, primarily for exception handling.
 

Functions

int AppUtils::handleException (const QString &message, CmdLine::ExitCode code)
 Handles logging an exception message and returning the appropriate exit code. More...
 
int AppUtils::handleException (const char *message, CmdLine::ExitCode code)
 Overload for handling exceptions with a simple C-string message. More...
 
int main (int argc, char *argv[])
 The main entry point for the application. More...
 

Detailed Description

Main entry point for the n-body simulation benchmark.

Author
Le Bars, Yoann

This file is part of the pure C++ benchmark.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

This program simulates the gravitational interaction of multiple bodies in 3D space.

For a full list of command-line options and their descriptions, run the executable with the --help flag:

./pure-cpp --help

Definition in file main.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

The main entry point for the application.

Parameters
argcCount of arguments transmitted to the program.
argvValues of arguments transmitted to the program.
Returns
0 if everything went well, otherwise, a negative value corresponding to an ExitCode.

Definition at line 84 of file main.cpp.

Here is the call graph for this function: