-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from BianchTech/refactor_cpp
Refactor cpp
- Loading branch information
Showing
311 changed files
with
34,263 additions
and
1,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(TestSearchEngineCpp) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
# Library directory | ||
# Set here your env path to search_engine_cpp/lib | ||
set(LIB_DIR "/home/pedro/projects/teste_search_engine/env/lib/python3.12/site-packages/search_engine_cpp/lib") | ||
|
||
# Header directory (change to the correct path if necessary) | ||
# Set here your env path to search_engine_cpp/lib/include | ||
set(INCLUDE_DIR "/home/pedro/projects/teste_search_engine/env/lib/python3.12/site-packages/search_engine_cpp/lib/include") | ||
|
||
# Include headers | ||
include_directories(${INCLUDE_DIR}) | ||
|
||
# Add the main executable | ||
add_executable(main_test main.cpp) | ||
|
||
# Add the shared library | ||
add_library(search_engine SHARED IMPORTED) | ||
set_target_properties(search_engine PROPERTIES IMPORTED_LOCATION ${LIB_DIR}/libsearch_engine.so) | ||
|
||
# Link the library to the executable | ||
target_link_libraries(main_test PRIVATE search_engine) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <hello.h> | ||
|
||
int main(int argc, char const* argv[]) { | ||
auto hello = Hello(); | ||
std::cout << hello.greet("Pedro") << std::endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
digraph "search_engine_cpp/lib/src/_hello.cpp" | ||
{ | ||
// LATEX_PDF_SIZE | ||
bgcolor="transparent"; | ||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10]; | ||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4]; | ||
Node1 [id="Node000001",label="search_engine_cpp/lib\l/src/_hello.cpp",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip=" "]; | ||
Node1 -> Node2 [id="edge1_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "]; | ||
Node2 [id="Node000002",label="Python.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
digraph "search_engine_cpp/lib/src/_inverted_index.cpp" | ||
{ | ||
// LATEX_PDF_SIZE | ||
bgcolor="transparent"; | ||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10]; | ||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4]; | ||
Node1 [id="Node000001",label="search_engine_cpp/lib\l/src/_inverted_index.cpp",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip=" "]; | ||
Node1 -> Node2 [id="edge1_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "]; | ||
Node2 [id="Node000002",label="Python.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
digraph "search_engine_cpp/lib/src/_page_rank.cpp" | ||
{ | ||
// LATEX_PDF_SIZE | ||
bgcolor="transparent"; | ||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10]; | ||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4]; | ||
Node1 [id="Node000001",label="search_engine_cpp/lib\l/src/_page_rank.cpp",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip=" "]; | ||
Node1 -> Node2 [id="edge1_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "]; | ||
Node2 [id="Node000002",label="Python.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "]; | ||
} |
Oops, something went wrong.