Skip to content

Commit

Permalink
Restructuring project hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndskg committed Dec 28, 2023
1 parent 55ed537 commit ff01d7c
Show file tree
Hide file tree
Showing 26 changed files with 68 additions and 17 deletions.
Empty file added docs/BuildNotes.txt
Empty file.
51 changes: 51 additions & 0 deletions docs/hierarchy.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
black-scholes-cpp/
├── docs/
│ ├── hierarchy.gql # Project hierarchy guide
│ ├── BuildNotes.txt # Build notes
│ ├── index.md # Project documentation index
│ ├── installation.md # Installation guide
│ ├── usage.md # Library usage guide
│ ├── troubleshooting.md # Troubleshooting guide
│ ├── contribution.md # Contribution guidelines
│ └── api_reference.md # API reference documentation
├── gtest/ # Google Test directory
├── oneMKL2/ # OneMKL directory
├── include/
│ ├── black-scholes-cpp/
│ │ ├── blackScholesModel.h #
│ │ ├── hestonModel.h #
│ │ ├── inputReader.h #
│ │ ├── optionGreeks.h #
│ │ ├── optionGreeksModel.h #
│ │ ├── outputWriter.h #
│ │ └── Program.h #
│ └── third_party/
│ ├── libcurl/ # libcurl headers
│ ├── websocketpp/ # WebSocket++ headers
│ └── rapidjson/ # RapidJSON headers
├── src/
│ ├── blackScholesModel.cpp #
│ ├── hestonModel.cpp #
│ ├── inputReader.cpp #
│ ├── optionGreeks.cpp #
│ ├── optionGreeksModel.cpp #
│ ├── outputWriter.cpp #
│ ├── Program.cpp #
│ └── CMakeLists.txt # CMake configuration for src
├── tests/
│ ├── test_blackScholesModel.cpp # Unit tests for blackScholesModel
│ ├── test_Program.cpp # Unit tests for Program
│ ├── test_inputReader.cpp # Unit tests for inputReader
│ ├── test_outputWriter.cpp # Unit tests for outputWriter
│ ├── test_optionGreeks.cpp # Unit tests for optionGreeks
│ ├── test_optionGreeks.cpp # Unit tests for optionGreeksModel
│ ├── unit_test_framework.h # Unit tests for optionGreeksModel
│ └── CMakeLists.txt # CMake configuration for tests
├── .gitignore
├── Makefile
├── csv.h
├── option_GS_df.csv
├── main.cpp # Main driver file
├── CMakeLists.txt # Top-level CMake configuration
├── xcode_redirect.hpp
└── README.md # Project README file
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions src/main.cpp → main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
#include <limits>
#include <iostream>

#include "Program.h"
#include "inputReader.h"
#include "blackScholesModel.h"
#include "optionGreeks.h"
#include "optionGreeksModel.h"
#include "include/black-scholes-cpp/Program.h"
#include "include/black-scholes-cpp/inputReader.h"
#include "include/black-scholes-cpp/blackScholesModel.h"
#include "include/black-scholes-cpp/optionGreeks.h"
#include "include/black-scholes-cpp/optionGreeksModel.h"

#include "xcode_redirect.hpp"

Expand Down
Empty file added src/CMakeLists.txt
Empty file.
6 changes: 3 additions & 3 deletions src/Program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#include <iostream>
#include <getopt.h>

#include "Program.h"
#include "inputReader.h"
#include "blackScholesModel.h"
#include "../include/black-scholes-cpp/Program.h"
#include "../include/black-scholes-cpp/inputReader.h"
#include "../include/black-scholes-cpp/blackScholesModel.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion src/blackScholesModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <numbers>
#include <cassert>

#include "blackScholesModel.h"
#include "../include/black-scholes-cpp/blackScholesModel.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion src/hestonModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <cmath>
#include <random>

#include "hestonModel.h"
#include "../include/black-scholes-cpp/hestonModel.h"
#include "unit_test_framework.h"

//#include "../include/oneMKL/mkl.h"
Expand Down
4 changes: 2 additions & 2 deletions src/inputReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <cstdio>
#endif

#include "blackScholesModel.h"
#include "inputReader.h"
#include "../include/black-scholes-cpp/blackScholesModel.h"
#include "../include/black-scholes-cpp/inputReader.h"

using namespace std;

Expand Down
4 changes: 2 additions & 2 deletions src/optionGreeks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <cmath>
#include <cassert>

#include "optionGreeks.h"
#include "blackScholesModel.h"
#include "../include/black-scholes-cpp/optionGreeks.h"
#include "../include/black-scholes-cpp/blackScholesModel.h"


// ----------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/optionGreeksModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <iostream>
#include <cassert>

#include "optionGreeksModel.h"
#include "optionGreeks.h"
#include "../include/black-scholes-cpp/optionGreeksModel.h"
#include "../include/black-scholes-cpp/optionGreeks.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion src/outputWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <iostream>
#include <fstream>

#include "outputWriter.h"
#include "../include/black-scholes-cpp/outputWriter.h"

using namespace std;

Expand Down
Empty file added test/CMakeLists.txt
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ff01d7c

Please sign in to comment.