This file is indexed.

/usr/include/odinseq/seqgradpulse.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/***************************************************************************
                          seqgradpulse.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 SEQGRADPULSE_H
#define SEQGRADPULSE_H

#include <odinseq/seqgradconst.h>
#include <odinseq/seqgradvec.h>
#include <odinseq/seqgradchanlist.h>
#include <odinseq/seqgradchanparallel.h>



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


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

/**
  * \brief Constant gradient pulse
  *
  * This class represents a gradient pulse with a constant gradient field
  */
class SeqGradConstPulse : public SeqGradChanList {

 public:
/**
  * Constructs a constant gradient pulse 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
  */
  SeqGradConstPulse(const STD_string& object_label,direction gradchannel, float gradstrength, float gradduration);


/**
  * Constructs a copy of 'sgcp'
  */
  SeqGradConstPulse(const SeqGradConstPulse& sgcp);

/**
  * Construct an empty constant gradient pulse with the given label
  */
  SeqGradConstPulse(const STD_string& object_label = "unnamedSeqGradConstPulse");

/**
  * Assignment operator that makes this constant gradient pulse object become a copy of 'sgcp'
  */
  SeqGradConstPulse& operator = (const SeqGradConstPulse& sgcp);


/**
  * setting duration of the constant part
  */
  SeqGradConstPulse& set_constduration(float duration) {constgrad.set_duration(duration);return *this;};


/**
  * getting duration of the constant part
  */
  double get_constduration() const {return constgrad.get_gradduration();}


  // overloading virtual function from SeqGradInterface
  SeqGradInterface& set_strength(float gradstrength);


 private:
  SeqGradConst constgrad;
  SeqGradDelay offgrad;

};



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

/**
  * \brief Vector of gradient pulses
  *
  * This class represents a gradient pulse with a constant gradient
  * shape with the the strength taken from a vector. This object
  * can be attached to a SeqLoop to iterate over the values in the
  * vector.
  */
class SeqGradVectorPulse : public SeqGradChanList {

 public:
/**
  * Constructs a gradient vector pulse labeled 'object_label' with the following properties:
  * - gradchannel:   The channel this object should be played out
  * - maxgradstrength:  The maximum gradient strength for this object
  * - trimarray:     The vector of gradient strength values
  * - gradduration:  The duration of this gradient object
  */
  SeqGradVectorPulse(const STD_string& object_label,direction gradchannel, float maxgradstrength,
                         const fvector& trimarray, float gradduration);

/**
  * Constructs a copy of 'sgvp'
  */
  SeqGradVectorPulse(const SeqGradVectorPulse& sgvp);

/**
  * Construct an empty gradient pulse with the given label
  */
  SeqGradVectorPulse(const STD_string& object_label = "unnamedSeqGradVectorPulse");

/**
  * Assignment operator that makes this constant gradient pulse object become a copy of 'sgvp'
  */
  SeqGradVectorPulse& operator = (const SeqGradVectorPulse& sgvp);


/**
  * Specifies the trim values that will be used
  */
  SeqGradVectorPulse& set_trims(const fvector& trims) { vectorgrad.set_trims(trims); return *this;}

/**
  * Returns the trim values that will be used
  */
  fvector get_trims() const {return vectorgrad.get_trims();}

/**
  * Sets the reordering scheme and the number of segments
  */
  SeqGradVectorPulse& set_reorder_scheme(reorderScheme scheme,unsigned int nsegments=1) {vectorgrad.set_reorder_scheme(scheme,nsegments);  return *this;}


/**
  * Sets the phase encoding scheme and the number of phase encoding steps
  */
  SeqGradVectorPulse& set_encoding_scheme(encodingScheme scheme) {vectorgrad.set_encoding_scheme(scheme);  return *this;}

/**
  * Returns the reordering vector (for loop insertion)
  */
  const SeqVector& get_reorder_vector() const {return vectorgrad.get_reorder_vector();}

/**
  * setting duration of the gradient vector part
  */
  SeqGradVectorPulse& set_constduration(float duration){vectorgrad.set_duration(duration);return *this;};

/**
  * getting duration of the gradient vector part
  */
  double get_constduration() const {return vectorgrad.get_gradduration();}

/**
  * conversion operator for loop insertion
  */
  operator const SeqVector& () const {return vectorgrad;}


  // overloading virtual function from SeqGradInterface
  SeqGradInterface& set_strength(float gradstrength);

 private:
  friend class SeqGradPhaseEnc;
  friend class SeqGradEcho;

  SeqGradVector vectorgrad;
  SeqGradDelay offgrad;
};




/** @}
  */

#endif