Skip to content

Commit

Permalink
use structs for kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
taehyounpark committed Apr 5, 2024
1 parent 50ae965 commit 5b5cb24
Show file tree
Hide file tree
Showing 8 changed files with 254 additions and 188 deletions.
6 changes: 3 additions & 3 deletions include/queryosity/column.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ template <typename T> class equation;

template <typename T> class composition;

template <typename T> class evaluator;

template <typename T> struct constant;

template <typename T> struct expression;

template <typename T> struct customization;

template <typename T> class evaluator;

template <typename T> class series;
template <typename T> struct series;

template <typename T>
constexpr std::true_type check_reader(typename column::reader<T> const &);
Expand Down
2 changes: 1 addition & 1 deletion include/queryosity/column_series.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace column {
* @tparam Col (Varied) lazy column node.
* @todo C++20: Use concept to require lazy<column<Val>(::varied)>.
*/
template <typename Col> class series {
template <typename Col> struct series {

public:
using value_type = column::value_t<typename Col::action_type>;
Expand Down
2 changes: 1 addition & 1 deletion include/queryosity/lazy.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class lazy : public dataflow::node,
public:
friend class dataflow;
template <typename> friend class lazy;
template <typename> friend class column::series; // access to dataflow
template <typename> friend struct column::series; // access to dataflow

public:
lazy(dataflow &df, std::vector<Action *> const &slots)
Expand Down
4 changes: 2 additions & 2 deletions include/queryosity/query.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ template <typename T> class definition;

template <typename T> class booker;

template <typename T> class output;

template <typename T> class series;

template <typename T> struct output;

class node : public action
{

Expand Down
2 changes: 1 addition & 1 deletion include/queryosity/query_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace query {
* @tparam Qry Concrete implementation of
* queryosity::query::definition<T(Obs...)>.
*/
template <typename Qry> class output {
template <typename Qry> struct output {

public:
/**
Expand Down
6 changes: 3 additions & 3 deletions include/queryosity/selection.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ class cut;

class weight;

template <typename T, typename U> class applicator;

struct count_t;

class counter;

template <typename... Ts> class yield;

template <typename T, typename U> class applicator;
template <typename... Ts> struct yield;

class node : public column::calculation<double> {

Expand Down
2 changes: 1 addition & 1 deletion include/queryosity/selection_yield.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class counter : public query::aggregation<count_t> {
* @tparam Sel (Varied) lazy column node.
* @todo C++20: Use concept to require lazy<column<Val>(::varied)>.
*/
template <typename... Sels> class yield {
template <typename... Sels> struct yield {

public:
yield(Sels const &...sels);
Expand Down
Loading

0 comments on commit 5b5cb24

Please sign in to comment.