Skip to content

Commit

Permalink
Refactor custom functions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Dec 9, 2024
1 parent ec322ed commit f45b610
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions include/jsoncons_ext/jmespath/jmespath.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ namespace jmespath {
template <typename Json>
class dynamic_resources
{
typedef typename Json::char_type char_type;
typedef typename Json::char_traits_type char_traits_type;
typedef std::basic_string<char_type,char_traits_type> string_type;
typedef typename Json::string_view_type string_view_type;
public:
using char_type = typename Json::char_type;
using char_traits_type = typename Json::char_traits_type;
using string_type = std::basic_string<char_type,char_traits_type>;
using string_view_type = typename Json::string_view_type;
using reference = typename Json::const_reference;
using pointer = typename Json::pointer;
typedef typename Json::const_pointer const_pointer;

private:
std::vector<std::unique_ptr<Json>> temp_storage_;

public:
Expand Down Expand Up @@ -187,8 +187,9 @@ namespace jmespath {
template <typename Json,typename JsonReference>
class expression_base
{
public:
using reference = JsonReference;

private:
std::size_t precedence_level_;
bool is_right_associative_;
bool is_projection_;
Expand Down Expand Up @@ -234,10 +235,10 @@ namespace jmespath {
template <typename Json>
class parameter
{
public:
using reference = const Json&;
using pointer = typename Json::const_pointer;
using expression_type = expression_base<Json,reference>;

private:
parameter_kind type_;

union
Expand Down

0 comments on commit f45b610

Please sign in to comment.