Initial commit.

This commit is contained in:
Jérôme 2019-03-28 16:38:50 +01:00
parent f239e52c31
commit 38b9a872f1
7 changed files with 2563 additions and 0 deletions

6
.gitignore vendored
View file

@ -1,3 +1,9 @@
# executable
run
# generated documentation
html/
# Prerequisites
*.d

2482
Doxyfile Normal file

File diff suppressed because it is too large Load diff

33
Makefile Normal file
View file

@ -0,0 +1,33 @@
# Declaration of variables
C = clang
C_FLAGS = -Wall
CC = clang++
CC_FLAGS = -Wall -std=c++17
LD_FLAGS =
INCLUDES =
# File names
EXEC = run
CSOURCES = $(wildcard *.c)
COBJECTS = $(CSOURCES:.c=.o)
SOURCES = $(wildcard *.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
# Main target
$(EXEC): $(COBJECTS) $(OBJECTS)
$(CC) $(LD_FLAGS) $(COBJECTS) $(OBJECTS) -o $(EXEC)
# To obtain object files
%.o: %.cpp
$(CC) $(INCLUDES) $(CC_FLAGS) -o $@ -c $<
# To obtain object files
%.o: %.c
$(C) $(INCLUDES) $(C_FLAGS) -o $@ -c $<
# To remove generated files
clean:
rm -f $(COBJECTS) $(OBJECTS)
cleaner:
rm -f $(EXEC) $(COBJECTS) $(OBJECTS)

1
TestClass.cpp Normal file
View file

@ -0,0 +1 @@
#include "TestClass.hpp"

6
TestClass.hpp Normal file
View file

@ -0,0 +1,6 @@
#ifndef DEF_TestClass
#define DEF_TestClass
#endif

15
main.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <iostream>
#include "utils.hpp"
#include "TestClass.hpp"
using std::cout;
using std::endl;
int main()
{
return 0;
}

20
utils.hpp Normal file
View file

@ -0,0 +1,20 @@
#ifndef DEF_utils
#define DEF_utils
#include <ostream>
#define PRINT_VAR(x) std::cout << #x << "\t= " << (x) << "\n"
#define PRINT_VEC(x); {std::cout << #x << "\t= "; \
for(unsigned int i_print_vec = 0 ; i_print_vec < (x).size() ; i_print_vec++) \
std::cout << (x)[i_print_vec] << "\t"; \
std::cout << "\n";}
template<typename T, template<class,class...> class C, class... Args>
std::ostream& operator<<(std::ostream& os, const C<T,Args...>& objs)
{
for (auto const& obj : objs)
os << obj << ' ';
return os;
}
#endif