This file is indexed.

/usr/include/trilinos/RTC_WhileBlockRTC.hh is in libtrilinos-pamgen-dev 12.12.1-5.

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
58
#ifndef _WHILEBLOCKRTC_H
#define _WHILEBLOCKRTC_H

#include "RTC_LineRTC.hh"
#include "RTC_BlockRTC.hh"
#include "RTC_ObjectRTC.hh"
#include "RTC_TokenizerRTC.hh"

#include <string>
#include <map>

namespace PG_RuntimeCompiler {

/**
 * A WhileBlock represents a block of code within a while-loop.
 * WhileBlock extends Block because it is a Block.
 */

class WhileBlock : public Block
{
 public:

  /**
   * Constructor -> The constructor contructs the parent Block, finds and
   *                creates the condition for the while loop, and tells parent
   *                to create its sub statements.
   *
   * @param vars  - A map of already active variables
   * @param lines - The array of strings that represent the lines of the code.
   * @param errs  - A string containing the errors that have been generated by
   *                the compiling of lines. If errs is not empty, then the
   *                program has not compiled succesfully
   */
  WhileBlock(std::map<std::string, Variable*> vars, Tokenizer& lines,
             std::string& err);

  /**
   * Destructor -> The destructor deletes _condition
   */
  ~WhileBlock();

  /**
   * execute -> This method executes this WhileBlock. _condition is evaluated
   *            and the loop enters if _condition is true. After each loop,
   *             _condition is re-evaluated to determine if we loop again.
   */
  Value* execute();

 private:

  Line* _condition; /**!< The code that gets checked at the beginning of each
                     *    loop. If _condition returns false, the looping ends.
                     */
};

}

#endif