This file is indexed.

/usr/include/odinseq/seqphase.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
/***************************************************************************
                          seqphase.h  -  description
                             -------------------
    begin                : Sun Apr 4 2004
    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 SEQPHASE_H
#define SEQPHASE_H


#include <odinseq/seqclass.h>
#include <odinseq/seqvec.h>
#include <odinseq/seqdriver.h>

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

/**
  * @ingroup odinseq_internals
  * The base class for platform specific drivers of phase lists
  */
class SeqPhaseDriver : public SeqDriverBase {

 public:
  SeqPhaseDriver() {}
  virtual ~SeqPhaseDriver() {}

  virtual void prep_driver(const dvector& phaselist) = 0;

  virtual unsigned int get_phaselistindex(const dvector& phaselist) const = 0;

  virtual STD_string get_loopcommand(const dvector& phaselist) const = 0;

  virtual svector get_phasevec_commands(const STD_string& iterator, const STD_string& instr) const = 0;

  virtual SeqPhaseDriver* clone_driver() const = 0;
};


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

class SeqFreqChan; // forward declaration

/**
  * @ingroup odinseq_internals
  * A vector class for managing phase lists
  */
class SeqPhaseListVector : public SeqVector, public virtual SeqClass {

 private: //make everything private so that only SeqFreqChan can use it

  SeqPhaseListVector(const STD_string& object_label = "unnamedSeqPhaseListVector", const dvector& phase_list=0 );

  SeqPhaseListVector(const SeqPhaseListVector& spl);

  SeqPhaseListVector& operator = (const SeqPhaseListVector& spl);

/**
  * Specifies the phaselist
  */
  SeqPhaseListVector& set_phaselist(const dvector& pl);

/**
  * Returns the phaselist
  */
  dvector get_phaselist() const {return phaselist;}

/**
  * Return the index for the phaselist
  */
  unsigned int get_phaselistindex() const;

/**
  * Returns the current phase in deg
  */
  double get_phase() const;


  // overloaded functions of SeqVector
  unsigned int get_vectorsize() const {return phaselist.size();}
  STD_string get_loopcommand() const;
  svector get_vector_commands(const STD_string& iterator) const;
  bool prep_iteration() const;
  bool is_qualvector() const {return false;}

 private:
  friend class SeqFreqChan;



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

  // the hardware driver
  mutable SeqDriverInterface<SeqPhaseDriver> phasedriver;

  dvector phaselist; // in deg

  // the frequency object in which this object is embedded
  SeqFreqChan* user;

};



#endif