sparrow 2.2.1
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Loading...
Searching...
No Matches
copy_tracker.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
7
9{
10 template <class T>
11 std::string key();
12
13 constexpr bool is_enabled()
14 {
15#ifdef SPARROW_TRACK_COPIES
16 return true;
17#else
18 return false;
19#endif
20 }
21
22 SPARROW_API void increase(const std::string& key);
23 SPARROW_API void reset(const std::string& key);
25 SPARROW_API int count(const std::string& key, int disabled_value = 0);
26 SPARROW_API std::vector<std::string> key_list();
27
28}
#define SPARROW_API
Definition config.hpp:38
SPARROW_API void reset(const std::string &key)
SPARROW_API void increase(const std::string &key)
SPARROW_API int count(const std::string &key, int disabled_value=0)
SPARROW_API std::vector< std::string > key_list()
SPARROW_API void reset_all()
constexpr bool is_enabled()
std::string key()
Definition buffer.hpp:49