This file is indexed.

/usr/include/trilinos/Pike_DataTransfer_Logger.hpp is in libtrilinos-pike-dev 12.4.2-2.

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
#ifndef PIKE_DATA_TRANSFER_LOGGER_HPP
#define PIKE_DATA_TRANSFER_LOGGER_HPP

#include "Pike_DataTransfer.hpp"
#include "Teuchos_RCP.hpp"
#include <vector>
#include <string>

namespace pike {
  
  /** \brief A DataTransfer decorator that logs certain method calls.

      Currently, this only logs the doTransfer() method.
   */
  class DataTransferLogger : public pike::DataTransfer {
    
  public:
    
    DataTransferLogger(const Teuchos::RCP<pike::DataTransfer>& transfer);

    void setLog(const Teuchos::RCP<std::vector<std::string> >& log);

    Teuchos::RCP<const std::vector<std::string> > getLog() const;

    Teuchos::RCP<std::vector<std::string> > getNonConstLog() const;

    std::string name() const;

    bool doTransfer(const pike::Solver& solver);

    bool transferSucceeded() const;

    const std::vector<std::string>& getSourceModelNames() const;
    
    const std::vector<std::string>& getTargetModelNames() const;

  private:
    
    Teuchos::RCP<std::vector<std::string> > log_;
    Teuchos::RCP<pike::DataTransfer> transfer_;
  };

  /** Non-member ctor
      \relates DataTransferLogger
  */
  Teuchos::RCP<pike::DataTransferLogger> 
  dataTransferLogger(const Teuchos::RCP<pike::DataTransfer>& transfer);
}

#endif