ODIN
odinreco
odinreco.h
1
/***************************************************************************
2
odinreco.h - description
3
-------------------
4
begin : Sat Dec 30 2006
5
copyright : (C) 2000-2021 by Thies Jochimsen
6
email : thies@jochimsen.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef ODINRECO_H
19
#define ODINRECO_H
20
21
#include <odinpara/reco.h>
22
#include <odindata/complexdata.h>
23
24
124
125
// helper class used for debugging the odinreco component
126
class
Reco {
127
public
:
128
static
const
char
* get_compName();
129
};
130
132
136
struct
UInt
{
137
138
UInt
(
unsigned
int
v=0) : val(v) {}
139
140
UInt
& operator = (
unsigned
int
v) {val=v;
return
*
this
;}
141
operator
unsigned
int ()
const
{
return
val;}
142
143
unsigned
int
operator += (
unsigned
int
rhsval) {val+=rhsval;
return
*
this
;}
144
unsigned
int
operator -= (
unsigned
int
rhsval) {val-=rhsval;
return
*
this
;}
145
unsigned
int
operator *= (
unsigned
int
rhsval) {val*=rhsval;
return
*
this
;}
146
unsigned
int
operator /= (
unsigned
int
rhsval) {val/=rhsval;
return
*
this
;}
147
unsigned
int
operator ++ () {val=val+1;
return
val;}
// prefix
148
unsigned
int
operator ++ (
int
) {
unsigned
int
tmp=val; val=val+1;
return
tmp;}
// postfix
149
unsigned
int
operator -- () {val=val-1;
return
val;}
// prefix
150
unsigned
int
operator -- (
int
) {
unsigned
int
tmp=val; val=val-1;
return
tmp;}
// postfix
151
152
private
:
153
unsigned
int
val;
154
};
155
156
159
#endif
160
UInt
Definition:
odinreco.h:136
Generated on Fri Oct 15 2021 11:37:01 for ODIN by
1.9.1