Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
6b89f3e1
Commit
6b89f3e1
authored
18 years ago
by
zwart
Browse files
Options
Downloads
Patches
Plain Diff
BugID: 719
Changed long long to in64 so we can use dataConvert64. Fixed opertor ++'s
parent
aa04e53c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Appl/CEP/CS1/CS1_Interface/include/CS1_Interface/RSPTimeStamp.h
+21
-20
21 additions, 20 deletions
...EP/CS1/CS1_Interface/include/CS1_Interface/RSPTimeStamp.h
with
21 additions
and
20 deletions
Appl/CEP/CS1/CS1_Interface/include/CS1_Interface/RSPTimeStamp.h
+
21
−
20
View file @
6b89f3e1
...
...
@@ -38,7 +38,7 @@ namespace LOFAR {
class
TimeStamp
{
public:
TimeStamp
(
long
long
time
=
0
);
TimeStamp
(
int64
time
=
0
);
TimeStamp
(
unsigned
seqId
,
unsigned
blockId
);
TimeStamp
&
setStamp
(
unsigned
seqId
,
unsigned
blockId
);
...
...
@@ -48,18 +48,18 @@ namespace LOFAR {
static
void
setMaxBlockId
(
unsigned
nMBID
);
TimeStamp
&
operator
+=
(
const
TimeStamp
&
other
);
TimeStamp
&
operator
+=
(
long
long
increment
);
TimeStamp
&
operator
+=
(
int64
increment
);
TimeStamp
&
operator
-=
(
const
TimeStamp
&
other
);
TimeStamp
&
operator
-=
(
long
long
decrement
);
TimeStamp
&
operator
++
(
int
);
TimeStamp
&
operator
-=
(
int64
decrement
);
TimeStamp
operator
++
(
int
);
TimeStamp
&
operator
++
();
TimeStamp
&
operator
--
(
int
);
TimeStamp
&
operator
--
();
TimeStamp
operator
+
(
long
long
other
)
const
;
long
long
operator
+
(
const
TimeStamp
&
other
)
const
;
TimeStamp
operator
-
(
long
long
other
)
const
;
long
long
operator
-
(
const
TimeStamp
&
other
)
const
;
TimeStamp
operator
+
(
int64
other
)
const
;
int64
operator
+
(
const
TimeStamp
&
other
)
const
;
TimeStamp
operator
-
(
int64
other
)
const
;
int64
operator
-
(
const
TimeStamp
&
other
)
const
;
bool
operator
>
(
const
TimeStamp
&
other
)
const
;
bool
operator
<
(
const
TimeStamp
&
other
)
const
;
...
...
@@ -74,7 +74,7 @@ namespace LOFAR {
friend
void
::
LOFAR
::
dataConvert
(
DataFormat
fmt
,
TimeStamp
*
inout
,
uint
nrval
);
protected:
long
long
itsTime
;
int64
itsTime
;
static
unsigned
theirMaxBlockId
;
};
...
...
@@ -92,19 +92,19 @@ namespace LOFAR {
typedef
TimeStamp
timestamp_t
;
inline
TimeStamp
::
TimeStamp
(
long
long
time
)
inline
TimeStamp
::
TimeStamp
(
int64
time
)
{
itsTime
=
time
;
}
inline
TimeStamp
::
TimeStamp
(
unsigned
seqId
,
unsigned
blockId
)
{
itsTime
=
(
long
long
)
seqId
*
theirMaxBlockId
+
blockId
;
itsTime
=
(
int64
)
seqId
*
theirMaxBlockId
+
blockId
;
}
inline
TimeStamp
&
TimeStamp
::
setStamp
(
unsigned
seqId
,
unsigned
blockId
)
{
itsTime
=
(
long
long
)
seqId
*
theirMaxBlockId
+
blockId
;
itsTime
=
(
int64
)
seqId
*
theirMaxBlockId
+
blockId
;
return
*
this
;
}
...
...
@@ -134,7 +134,7 @@ namespace LOFAR {
return
*
this
;
}
inline
TimeStamp
&
TimeStamp
::
operator
+=
(
long
long
increment
)
inline
TimeStamp
&
TimeStamp
::
operator
+=
(
int64
increment
)
{
itsTime
+=
increment
;
return
*
this
;
...
...
@@ -146,7 +146,7 @@ namespace LOFAR {
return
*
this
;
}
inline
TimeStamp
&
TimeStamp
::
operator
-=
(
long
long
decrement
)
inline
TimeStamp
&
TimeStamp
::
operator
-=
(
int64
decrement
)
{
itsTime
-=
decrement
;
return
*
this
;
...
...
@@ -158,10 +158,11 @@ namespace LOFAR {
return
*
this
;
}
inline
TimeStamp
&
TimeStamp
::
operator
++
(
int
)
inline
TimeStamp
TimeStamp
::
operator
++
(
int
)
{
TimeStamp
tmp
=
*
this
;
++
itsTime
;
return
*
this
;
return
tmp
;
}
inline
TimeStamp
&
TimeStamp
::
operator
--
()
...
...
@@ -176,22 +177,22 @@ namespace LOFAR {
return
*
this
;
}
inline
TimeStamp
TimeStamp
::
operator
+
(
long
long
increment
)
const
inline
TimeStamp
TimeStamp
::
operator
+
(
int64
increment
)
const
{
return
TimeStamp
(
itsTime
+
increment
);
}
inline
long
long
TimeStamp
::
operator
+
(
const
TimeStamp
&
other
)
const
inline
int64
TimeStamp
::
operator
+
(
const
TimeStamp
&
other
)
const
{
return
itsTime
+
other
.
itsTime
;
}
inline
TimeStamp
TimeStamp
::
operator
-
(
long
long
decrement
)
const
inline
TimeStamp
TimeStamp
::
operator
-
(
int64
decrement
)
const
{
return
TimeStamp
(
itsTime
-
decrement
);
}
inline
long
long
TimeStamp
::
operator
-
(
const
TimeStamp
&
other
)
const
inline
int64
TimeStamp
::
operator
-
(
const
TimeStamp
&
other
)
const
{
return
itsTime
-
other
.
itsTime
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment