This file is indexed.

/usr/include/odinseq/seqgradwave.h is in libodin-dev 1.8.8-2ubuntu1.

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
128
/***************************************************************************
                          seqgradwave.h  -  description
                             -------------------
    begin                : Tue Aug 13 2002
    copyright            : (C) 2000-2014 by Thies H. Jochimsen
    email                : thies@jochimsen.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 SEQGRADWAVE_H
#define SEQGRADWAVE_H

#include <odinseq/seqgradchan.h>


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

/**
  * \brief Gradient Waveform
  *
  * This class represents a gradient object with an arbitrarily shaped gradient field
  * The physical gradient strengths of one data point is the product of the value
  * of the waveform at that point and the gradient strength of this object
  */
class SeqGradWave : public SeqGradChan {

 public:

/**
  * Constructs a gradient waveform labeled 'object_label' with the following properties:
  * - gradchannel:   The channel this object should be played out
  * - gradduration:  The duration of this gradient object
  * - maxgradstrength:  The maximum gradient strength for this object
  * - waveform:      The waveform that will be played out
  */
  SeqGradWave(const STD_string& object_label,direction gradchannel, double gradduration,
           float maxgradstrength,const fvector& waveform);


/**
  * Constructs a copy of 'sgw'
  */
  SeqGradWave(const SeqGradWave& sgw);

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

/**
  * Specifies the waveform that will be used
  */
  SeqGradWave& set_wave(const fvector& waveform);

/**
  * Returns the waveform that will be used
  */
  const fvector& get_wave() const {return wave;}


/**
  * Returns the integral of the waveform time tmin to time tmax (relative to the starting point of the ramp)
  */
  float get_integral(double tmin, double tmax) const;


/**
  * Returns the number of digitised points for the waveform
  */
  unsigned int get_npts() const;

/**
  * Returns the number of digitised points for the waveform
  */
  unsigned int size() const {return get_npts();}

/**
  * Returns the sampling rate of the waveform
  */
  double get_timestep() const {return secureDivision(get_gradduration(),double(get_npts()));}

/**
  * Returns the i'th element of the waveform
  */
  float operator [] (unsigned int i) const {return wave[i];}


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


 protected:
  fvector wave;

 private:

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

  // overwriting virtual functions from SeqGradChan
  int get_wavesize() const;
  void resize(unsigned int newsize);
  SeqGradChan& get_subchan(double starttime, double endtime) const;
  STD_string get_grdpart(float matrixfactor) const;
  float get_integral() const {return get_integral(0.0,get_gradduration());}

  void check_wave();
 
};


/** @}
  */

#endif