This file is indexed.

/usr/include/odinseq/seqgradconst.h is in libodin-dev 1.8.4-1ubuntu2.

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
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/***************************************************************************
                          seqgradconst.h  -  description
                             -------------------
    begin                : Tue Aug 13 2002
    copyright            : (C) 2001 by Thies H. Jochimsen
    email                : jochimse@cns.mpg.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef SEQGRADCONST_H
#define SEQGRADCONST_H

#include <odinseq/seqgradchan.h>

/**
  * @addtogroup odinseq
  * @{
  */

/**
  * \brief  Constant gradient
  *
  * This class represents a gradient object with a constant gradient field
  */
class SeqGradConst : public SeqGradChan {

 public:

/**
  * Constructs a constant gradient field labeled 'object_label' with the following properties:
  * - gradchannel:   The channel this object should be played out
  * - gradstrength:  The gradient strength for this object
  * - gradduration:  The duration of this gradient object
  */
  SeqGradConst(const STD_string& object_label,direction gradchannel,
                            float gradstrength, double gradduration);

/**
  * Constructs a copy of 'sgc'
  */
  SeqGradConst(const SeqGradConst& sgc);

/**
  * Construct an empty gradient object with the given label
  */
  SeqGradConst(const STD_string& object_label = "unnamedSeqGradConst" );

/**
  * Assignment operator that makes this gradient channel object become a copy of 'sgc'
  */
  SeqGradConst& operator = (const SeqGradConst& sgc);

 private:
  friend class SeqGradVector;

  // overwriting virtual functions from SeqClass
  bool prep();


  // overwriting virtual functions from SeqGradChan
  SeqGradChan& get_subchan(double starttime, double endtime) const;
  STD_string get_grdpart(float matrixfactor) const;
  float get_integral() const {return get_strength() * get_duration();}


};

//////////////////////////////////////////////////////////////////////////////////


/**
  * \brief  Gradient delay
  *
  * This class represents a gradient delay which can be inserted into a list of gradient objects
  */
class SeqGradDelay : public SeqGradChan {

 public:

/**
  * Constructs a constant gradient field labeled 'object_label' with the following properties:
  * - gradchannel:   The channel this object should be played out
  * - gradduration:  The duration of this gradient object
  */
  SeqGradDelay(const STD_string& object_label, direction gradchannel, double gradduration);

/**
  * Constructs a copy of 'sgd'
  */
  SeqGradDelay(const SeqGradDelay& sgd);

/**
  * Construct an empty gradient object with the given label
  */
  SeqGradDelay(const STD_string& object_label = "unnamedSeqGradDelay" );

/**
  * Assignment operator that makes this gradient channel object become a copy of 'sgd'
  */
  SeqGradDelay& operator = (const SeqGradDelay& sgd);


  // overwriting virtual functions from SeqGradInterface
  float get_strength() const {return 0.0;} // always return zero strength


 private:
  // overwriting virtual functions from SeqGradChan
  SeqGradChan& get_subchan(double starttime, double endtime) const;
  STD_string get_grdpart(float matrixfactor) const;
  float get_integral() const {return 0.0;}

};


/** @}
  */

#endif