This file is indexed.

/usr/lib/R/site-library/dplyr/include/dplyr/SubsetVectorVisitor.h is in r-cran-dplyr 0.7.4-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef dplyr_SubsetVectorVisitor_H
#define dplyr_SubsetVectorVisitor_H

#include <tools/SlicingIndex.h>
#include <dplyr/DataFrameVisitorsIndexMap.h>
#include <dplyr/EmptySubset.h>

namespace dplyr {

template <typename Container>
inline int output_size(const Container& container) {
  return container.size();
}

/**
 * Subset Vector visitor base class, defines the interface
 */
class SubsetVectorVisitor {
public:
  virtual ~SubsetVectorVisitor() {}

  /** creates a new vector, of the same type as the visited vector, by
   *  copying elements at the given indices
   */
  virtual SEXP subset(const Rcpp::IntegerVector& index) const = 0;

  virtual SEXP subset(const std::vector<int>&) const = 0;

  virtual SEXP subset(const SlicingIndex&) const = 0;

  /** creates a new vector, of the same type as the visited vector, by
   *  copying elements at the given indices
   */
  virtual SEXP subset(const ChunkIndexMap& index) const = 0;

  virtual SEXP subset(EmptySubset) const = 0;

  virtual int size() const = 0;

  virtual std::string get_r_type() const = 0;

  bool is_same_typeid(SubsetVectorVisitor* other) const {
    return typeid(*other) == typeid(*this);
  }

  virtual bool is_same_type(SubsetVectorVisitor* other, std::stringstream&, const SymbolString&) const {
    return is_same_typeid(other);
  }

  virtual bool is_compatible(SubsetVectorVisitor* other, std::stringstream&, const SymbolString&) const = 0;

};

} // namespace dplyr


#endif