/usr/include/odinseq/seqoperator.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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | /***************************************************************************
seqoperator.h - description
-------------------
begin : Mon Apr 19 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 SEQOPERATOR_H
#define SEQOPERATOR_H
#include <odinseq/seqclass.h>
// forward declarations
class SeqObjBase;
class SeqGradObjInterface;
class SeqObjList;
class SeqObjLoop;
class SeqDecoupling;
class SeqParallel;
class SeqGradChan;
class SeqGradChanList;
class SeqGradChanParallel;
/**
* @ingroup odinseq_internals
* A class for connecting sequence objects via operators.
*/
class SeqOperator : public SeqClass {
public:
static SeqObjList& concat(const SeqObjBase& s1, const SeqObjBase& s2);
static SeqObjList& concat(const SeqObjBase& s1, const SeqObjList& s2, bool swap);
static SeqObjList& concat(const SeqObjBase& s1, const SeqObjLoop& s2, bool swap);
static SeqObjList& concat(const SeqObjBase& s1, const SeqDecoupling& s2, bool swap);
static SeqObjList& concat(const SeqObjBase& s1, const SeqParallel& s2, bool swap);
static SeqObjList& concat(const SeqObjBase& s1, SeqGradChan& s2, bool swap);
static SeqObjList& concat(const SeqObjBase& s1, SeqGradChanList& s2, bool swap);
static SeqObjList& concat(const SeqObjBase& s1, SeqGradChanParallel& s2, bool swap);
static SeqObjList& concat(const SeqObjList& s1, const SeqObjList& s2);
static SeqObjList& concat(const SeqObjList& s1, const SeqObjLoop& s2, bool swap);
static SeqObjList& concat(const SeqObjList& s1, const SeqDecoupling& s2, bool swap);
static SeqObjList& concat(const SeqObjList& s1, const SeqParallel& s2, bool swap);
static SeqObjList& concat(const SeqObjList& s1, SeqGradChan& s2, bool swap);
static SeqObjList& concat(const SeqObjList& s1, SeqGradChanList& s2, bool swap);
static SeqObjList& concat(const SeqObjList& s1, SeqGradChanParallel& s2, bool swap);
static SeqObjList& concat(const SeqObjLoop& s1, const SeqObjLoop& s2);
static SeqObjList& concat(const SeqObjLoop& s1, const SeqDecoupling& s2, bool swap);
static SeqObjList& concat(const SeqObjLoop& s1, const SeqParallel& s2, bool swap);
static SeqObjList& concat(const SeqObjLoop& s1, SeqGradChan& s2, bool swap);
static SeqObjList& concat(const SeqObjLoop& s1, SeqGradChanList& s2, bool swap);
static SeqObjList& concat(const SeqObjLoop& s1, SeqGradChanParallel& s2, bool swap);
static SeqObjList& concat(const SeqDecoupling& s1, const SeqDecoupling& s2);
static SeqObjList& concat(const SeqDecoupling& s1, const SeqParallel& s2, bool swap);
static SeqObjList& concat(const SeqDecoupling& s1, SeqGradChan& s2, bool swap);
static SeqObjList& concat(const SeqDecoupling& s1, SeqGradChanList& s2, bool swap);
static SeqObjList& concat(const SeqDecoupling& s1, SeqGradChanParallel& s2, bool swap);
static SeqObjList& concat(const SeqParallel& s1, const SeqParallel& s2);
static SeqObjList& concat(const SeqParallel& s1, SeqGradChan& s2, bool swap);
static SeqObjList& concat(const SeqParallel& s1, SeqGradChanList& s2, bool swap);
static SeqObjList& concat(const SeqParallel& s1, SeqGradChanParallel& s2, bool swap);
static SeqGradChanList& concat(SeqGradChan& s1, SeqGradChan& s2);
static SeqGradChanList& concat(SeqGradChan& s1, SeqGradChanList& s2, bool swap);
static SeqGradChanParallel& concat(SeqGradChan& s1, SeqGradChanParallel& s2, bool swap);
static SeqGradChanList& concat(SeqGradChanList& s1, SeqGradChanList& s2);
static SeqGradChanParallel& concat(SeqGradChanList& s1, SeqGradChanParallel& s2, bool swap);
static SeqGradChanParallel& concat(SeqGradChanParallel& s1, SeqGradChanParallel& s2);
static SeqParallel& simultan(const SeqObjBase& s1, SeqGradObjInterface& s2);
static SeqParallel& simultan(const SeqObjBase& s1, SeqGradChan& s2);
static SeqParallel& simultan(const SeqObjBase& s1, SeqGradChanList& s2);
static SeqGradChanParallel& simultan(SeqGradChan& s1, SeqGradChan& s2);
static SeqGradChanParallel& simultan(SeqGradChan& s1, SeqGradChanList& s2);
static SeqGradChanParallel& simultan(SeqGradChan& s1, SeqGradChanParallel& s2);
static SeqGradChanParallel& simultan(SeqGradChanList& s1, SeqGradChanList& s2);
static SeqGradChanParallel& simultan(SeqGradChanList& s1, SeqGradChanParallel& s2);
static SeqGradChanParallel& simultan(SeqGradChanParallel& s1, SeqGradChanParallel& s2);
private:
static void append_list2list(SeqObjList& dst, const SeqObjList& src);
static SeqObjList& create_SeqObjList_label(const STD_string& label1, const STD_string& label2, bool swap);
static SeqObjList& create_SeqObjList_obj(const SeqObjBase& s1, const SeqObjBase& s2, bool swap);
static SeqObjList& create_SeqObjList_list(const SeqObjList& s1, const SeqObjBase& s2, bool swap);
static SeqGradChanList& create_SeqGradChanList(const STD_string& label1, const STD_string& label2, bool swap);
static SeqGradChanList& create_SeqGradChanList(SeqGradChan& sgc);
static SeqGradChanParallel& create_SeqGradChanParallel_concat(const STD_string& label1, const STD_string& label2, bool swap);
static SeqParallel& create_SeqParallel(const STD_string& label1, const STD_string& label2);
static SeqGradChanParallel& create_SeqGradChanParallel_simultan(const STD_string& label1, const STD_string& label2);
};
inline SeqObjList& operator + (const SeqObjBase& s1, const SeqObjBase& s2){return SeqOperator::concat(s1,s2);}
inline SeqObjList& operator + (const SeqObjBase& s1, const SeqObjList& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjBase& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjBase& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjBase& s1, const SeqParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjBase& s1, SeqGradChan& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjBase& s1, SeqGradChanList& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjBase& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjList& s1, const SeqObjBase& s2){return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqObjList& s1, const SeqObjList& s2) {return SeqOperator::concat(s1,s2);}
inline SeqObjList& operator + (const SeqObjList& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjList& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjList& s1, const SeqParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjList& s1, SeqGradChan& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjList& s1, SeqGradChanList& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjList& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjLoop& s1, const SeqObjBase& s2){return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqObjLoop& s1, const SeqObjList& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqObjLoop& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s1,s2);}
inline SeqObjList& operator + (const SeqObjLoop& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjLoop& s1, const SeqParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjLoop& s1, SeqGradChan& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjLoop& s1, SeqGradChanList& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqObjLoop& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqDecoupling& s1, const SeqObjBase& s2){return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqDecoupling& s1, const SeqObjList& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqDecoupling& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqDecoupling& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s1,s2);}
inline SeqObjList& operator + (const SeqDecoupling& s1, const SeqParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqDecoupling& s1, SeqGradChan& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqDecoupling& s1, SeqGradChanList& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqDecoupling& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqParallel& s1, const SeqObjBase& s2){return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqParallel& s1, const SeqObjList& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqParallel& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqParallel& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (const SeqParallel& s1, const SeqParallel& s2) {return SeqOperator::concat(s1,s2);}
inline SeqObjList& operator + (const SeqParallel& s1, SeqGradChan& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqParallel& s1, SeqGradChanList& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (const SeqParallel& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (SeqGradChan& s1, const SeqObjBase& s2){return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChan& s1, const SeqObjList& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChan& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChan& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChan& s1, const SeqParallel& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqGradChanList& operator + (SeqGradChan& s1, SeqGradChan& s2) {return SeqOperator::concat(s1,s2);}
inline SeqGradChanList& operator + (SeqGradChan& s1, SeqGradChanList& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqGradChanParallel& operator + (SeqGradChan& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (SeqGradChanList& s1, const SeqObjBase& s2){return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanList& s1, const SeqObjList& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanList& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanList& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanList& s1, const SeqParallel& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqGradChanList& operator + (SeqGradChanList& s1, SeqGradChan& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqGradChanList& operator + (SeqGradChanList& s1, SeqGradChanList& s2) {return SeqOperator::concat(s1,s2);}
inline SeqGradChanParallel& operator + (SeqGradChanList& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2,false);}
inline SeqObjList& operator + (SeqGradChanParallel& s1, const SeqObjBase& s2){return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanParallel& s1, const SeqObjList& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanParallel& s1, const SeqObjLoop& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanParallel& s1, const SeqDecoupling& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqObjList& operator + (SeqGradChanParallel& s1, const SeqParallel& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqGradChanParallel& operator + (SeqGradChanParallel& s1, SeqGradChan& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqGradChanParallel& operator + (SeqGradChanParallel& s1, SeqGradChanList& s2) {return SeqOperator::concat(s2,s1,true);}
inline SeqGradChanParallel& operator + (SeqGradChanParallel& s1, SeqGradChanParallel& s2) {return SeqOperator::concat(s1,s2);}
inline SeqParallel& operator / (const SeqObjBase& s1, SeqGradObjInterface& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqParallel& operator / (SeqGradObjInterface& s1, const SeqObjBase& s2) {return SeqOperator::simultan(s2,s1);}
inline SeqParallel& operator / (const SeqObjBase& s1, SeqGradChan& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqParallel& operator / (SeqGradChan& s1, const SeqObjBase& s2) {return SeqOperator::simultan(s2,s1);}
inline SeqParallel& operator / (const SeqObjBase& s1, SeqGradChanList& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqParallel& operator / (SeqGradChanList& s1, const SeqObjBase& s2) {return SeqOperator::simultan(s2,s1);}
inline SeqGradChanParallel& operator / (SeqGradChan& s1, SeqGradChan& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqGradChanParallel& operator / (SeqGradChan& s1, SeqGradChanList& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqGradChanParallel& operator / (SeqGradChanList& s1, SeqGradChan& s2) {return SeqOperator::simultan(s2,s1);}
inline SeqGradChanParallel& operator / (SeqGradChan& s1, SeqGradChanParallel& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqGradChanParallel& operator / (SeqGradChanParallel& s1, SeqGradChan& s2) {return SeqOperator::simultan(s2,s1);}
inline SeqGradChanParallel& operator / (SeqGradChanList& s1, SeqGradChanList& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqGradChanParallel& operator / (SeqGradChanList& s1, SeqGradChanParallel& s2) {return SeqOperator::simultan(s1,s2);}
inline SeqGradChanParallel& operator / (SeqGradChanParallel& s1, SeqGradChanList& s2) {return SeqOperator::simultan(s2,s1);}
inline SeqGradChanParallel& operator / (SeqGradChanParallel& s1, SeqGradChanParallel& s2) {return SeqOperator::simultan(s1,s2);}
#endif
|