Skip to content

Commit

Permalink
include ".h" -> <.hpp> for all public facing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Tae Hyoun Park committed May 4, 2024
1 parent 860cdf7 commit 59f63aa
Show file tree
Hide file tree
Showing 70 changed files with 214 additions and 214 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Queryosity is a row-wise data analysis library for (semi-)structured data.
#include <sstream>
#include <vector>

#include "queryosity.h"
#include "queryosity/hist.h"
#include "queryosity/json.h"
#include <queryosity.hpp>
#include <queryosity/hist.hpp>
#include <queryosity/json.hpp>

using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down Expand Up @@ -68,7 +68,7 @@ int main() {
### [Single-header](https://raw.githubusercontent.com/taehyounpark/queryosity/master/queryosity.h)
```cpp
#include "queryosity.h"
#include <queryosity.hpp>
```
### CMake
```sh
Expand All @@ -89,7 +89,7 @@ add_library(Analysis ...)
target_link_libraries(Analysis INTERFACE queryosity::queryosity)
```
```cpp
#include "queryosity.h"
#include <queryosity.hpp>
```
#### Integrated
```cmake
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/hello.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <sstream>
#include <vector>
#include "queryosity.h"
#include <queryosity.hpp>
#include "queryosity/hist.h"
#include "queryosity/json.h"
#include <queryosity/json.hpp>
using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/hww.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "AnaQuery/Hist.h"
#include "AnaQuery/Tree.h"

#include "queryosity.h"
#include <queryosity.hpp>

namespace qty = queryosity;
using dataflow = qty::dataflow;
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/iris.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <cstdlib>
#include <functional>

#include "queryosity.h"
#include <queryosity.hpp>

#include "TCanvas.h"
#include <ROOT/RVec.hxx>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/xaod.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using VecF = ROOT::RVec<float>;
using VecD = ROOT::RVec<double>;

#include "queryosity.h"
#include <queryosity.hpp>

using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ Consider the following example of computing the factorial of a number, $ n! = 1
#include <sstream>
#include <vector>
#include "queryosity.h"
#include <queryosity.hpp>
#include "queryosity/hist.h"
#include "queryosity/json.h"
#include <queryosity/json.hpp>
using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/dataflow.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dataflow

```cpp
#include "queryosity.h"
#include <queryosity.hpp>

using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down
6 changes: 3 additions & 3 deletions docs/start/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## Single-header

```cpp
#include "queryosity.h"
#include <queryosity.hpp>
```

## CMake
Expand All @@ -43,7 +43,7 @@ target_link_libraries(MyAnalysis INTERFACE queryosity::queryosity)
```

```cpp
#include "queryosity.h"
#include <queryosity.hpp>
```

### Integrated
Expand All @@ -57,5 +57,5 @@ target_link_libraries(MyAnalysis INTERFACE queryosity::queryosity)
```

```cpp
#include "queryosity.h"
#include <queryosity.hpp>
```
4 changes: 2 additions & 2 deletions examples/example-01.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include <sstream>
#include <vector>

#include "queryosity.h"
#include <queryosity.hpp>
#include "queryosity/hist.h"
#include "queryosity/json.h"
#include <queryosity/json.hpp>

using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down
6 changes: 3 additions & 3 deletions examples/example-02.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#include <sstream>
#include <vector>

#include "queryosity.h"
#include <queryosity.hpp>
#include "queryosity/hist.h"
#include "queryosity/json.h"
#include "queryosity/csv.h"
#include <queryosity/json.hpp>
#include <queryosity/csv.hpp>

using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down
4 changes: 2 additions & 2 deletions examples/example-03.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include <sstream>
#include <vector>

#include "queryosity.h"
#include <queryosity.hpp>
#include "queryosity/hist.h"
#include "queryosity/json.h"
#include <queryosity/json.hpp>

using dataflow = qty::dataflow;
namespace multithread = qty::multithread;
Expand Down
2 changes: 1 addition & 1 deletion extensions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB QUERYOSITY_EXT_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/queryosity/*.h)
file(GLOB QUERYOSITY_EXT_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/queryosity/*.hpp)
add_library(
queryosity_extensions
SHARED
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "rapidcsv.h"

#include "queryosity.h"
#include <queryosity.hpp>

namespace queryosity {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "queryosity.h"
#include <queryosity.hpp>

#include <boost/histogram.hpp> // make_histogram, regular, weight, indexed
#include <boost/histogram/ostream.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <nlohmann/json.hpp>

#include "queryosity.h"
#include <queryosity.hpp>

namespace queryosity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <unordered_map>
#include <variant>

#include "queryosity.h"
#include <queryosity.hpp>

namespace queryosity {

Expand Down
31 changes: 0 additions & 31 deletions include/queryosity.h

This file was deleted.

31 changes: 31 additions & 0 deletions include/queryosity.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#pragma once

/**
* @defgroup ext Extensions
* @defgroup api API
* @defgroup abc ABCs
*/

#include "queryosity/multithread.hpp"

#include "queryosity/dataset_reader.hpp"

#include "queryosity/column_definition.hpp"
#include "queryosity/column_equation.hpp"
#include "queryosity/column_reader.hpp"
#include "queryosity/column_series.hpp"

#include "queryosity/selection_yield.hpp"

#include "queryosity/query_aggregation.hpp"
#include "queryosity/query_definition.hpp"
#include "queryosity/query_series.hpp"

#include "queryosity/dataflow.hpp"

#include "queryosity/lazy.hpp"
#include "queryosity/lazy_varied.hpp"
#include "queryosity/todo.hpp"
#include "queryosity/todo_varied.hpp"

namespace qty = queryosity;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "systematic.h"
#include "systematic.hpp"

#include <string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <memory>
#include <type_traits>

#include "action.h"
#include "action.hpp"

namespace queryosity {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "column.h"
#include "column.hpp"

namespace queryosity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <memory>
#include <tuple>

#include "column.h"
#include "column.hpp"

namespace queryosity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <type_traits>
#include <vector>

#include "column.h"
#include "dataset.h"
#include "column.hpp"
#include "dataset.hpp"

namespace queryosity {

Expand Down Expand Up @@ -50,11 +50,11 @@ class computation {

} // namespace queryosity

#include "column_conversion.h"
#include "column_equation.h"
#include "column_evaluator.h"
#include "column_fixed.h"
#include "dataset_reader.h"
#include "column_conversion.hpp"
#include "column_equation.hpp"
#include "column_evaluator.hpp"
#include "column_fixed.hpp"
#include "dataset_reader.hpp"

template <typename DS, typename Val>
auto queryosity::column::computation::read(dataset::reader<DS> &ds,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "column.h"
#include "column.hpp"

namespace queryosity {

Expand Down Expand Up @@ -35,8 +35,8 @@ template <typename Val> struct constant {

} // namespace queryosity

#include "dataflow.h"
#include "lazy.h"
#include "dataflow.hpp"
#include "lazy.hpp"

template <typename Val>
queryosity::column::constant<Val>::constant(Val const &val) : m_val(val) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include <memory>
#include <tuple>

#include "column.h"
#include "column_definition.h"
#include "column.hpp"
#include "column_definition.hpp"

namespace queryosity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include <memory>
#include <tuple>

#include "column_calculation.h"
#include "column_evaluator.h"
#include "todo.h"
#include "column_calculation.hpp"
#include "column_evaluator.hpp"
#include "todo.hpp"

namespace queryosity {

Expand Down Expand Up @@ -69,7 +69,7 @@ template <typename Def> class column::definition {

} // namespace queryosity

#include "dataflow.h"
#include "dataflow.hpp"

template <typename Out, typename... Ins>
template <typename... Args>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <functional>

#include "column_definition.h"
#include "column_definition.hpp"

namespace queryosity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <memory>
#include <type_traits>

#include "action.h"
#include "action.hpp"

namespace queryosity {

Expand Down
Loading

0 comments on commit 59f63aa

Please sign in to comment.