Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psrdada_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
MPIfR-BDG
psrdada_cpp
Commits
fe0d476b
Commit
fe0d476b
authored
6 years ago
by
Ewan Barr
Browse files
Options
Downloads
Patches
Plain Diff
changed indentation
parent
71cde17e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
psrdada_cpp/transpose_client.hpp
+66
-75
66 additions, 75 deletions
psrdada_cpp/transpose_client.hpp
with
66 additions
and
75 deletions
psrdada_cpp/transpose_client.hpp
+
66
−
75
View file @
fe0d476b
...
...
@@ -9,105 +9,96 @@
namespace
psrdada_cpp
{
/**
* @brief Class that provides means for doing transpose
* by reading data from a DADA ring buffer and
* write out the transposed data to a DADA ring
* buffer
*/
class
TransposeClient
{
public:
/**
* @brief Class that provides means for doing transpose
* by reading data from a DADA ring buffer and
* write out the transposed data to a DADA ring
* buffer
*/
class
TransposeClient
{
public:
TransposeClient
(
DadaWriteClient
*
_writer
[],
std
::
string
*
keys
,
std
::
uint32_t
numbeams
);
TransposeClient
(
TransposeClient
const
&
)
=
delete
;
~
TransposeClient
();
TransposeClient
(
DadaWriteClient
*
_writer
[],
std
::
string
*
keys
,
std
::
uint32_t
numbeams
);
TransposeClient
(
TransposeClient
const
&
)
=
delete
;
~
TransposeClient
();
/**
/**
* @brief function to the do the transpose
*/
void
do_transpose
(
RawBytes
&
_current_block
,
RawBytes
&
transposed_data
,
std
::
uint32_t
beamnum
);
void
do_transpose
(
RawBytes
&
_current_block
,
RawBytes
&
transposed_data
,
std
::
uint32_t
beamnum
);
/**
* @brief Function to read in the data to be transposed
*/
RawBytes
&
read_to_transpose
(
DadaReadClient
&
_reader
);
RawBytes
&
read_to_transpose
(
DadaReadClient
&
_reader
);
/**
/**
* @brief Function to write transposed data to the dada buffer
*/
void
write_transpose
(
RawBytes
&
transposed_data
,
DadaWriteClient
&
writer
);
/**
* @brief Setter for the numbeams
*/
void
write_transpose
(
RawBytes
&
transposed_data
,
DadaWriteClient
&
writer
);
void
set_nbeams
(
const
int
nbeams
);
/**
* @brief Setter for frequency channels
*/
void
set_nchans
(
const
int
nchans
);
/**
* @brief Setter of number of samples
*/
void
set_nsamples
(
const
int
nsamples
);
/**
* @brief Setter for number of time samples
*/
void
set_ntime
(
const
int
ntime
);
/**
* @brief Setter for the numbeams
*/
void
set_nbeams
(
const
int
nbeams
);
/**
* @brief Setter for number of frequency blocks
*/
/**
* @brief Setter for frequency channels
*/
void
set_nchans
(
const
int
nchans
);
void
set_nfreq
(
const
int
_nfreq
);
/**
* @brief Setter of number of samples
*/
void
set_nsamples
(
const
int
nsamples
);
/**
* @ getter for number of beams
*/
/**
* @brief Setter for number of time samples
*/
void
set_ntime
(
const
int
ntime
);
std
::
uint32_t
nbeams
();
/**
* @ getter for number of channels
*/
/**
* @brief Setter for number of frequency blocks
*/
void
set_nfreq
(
const
int
_nfreq
);
std
::
uint32_t
nchans
();
/**
* @ getter for number of beams
*/
std
::
uint32_t
nbeams
();
/**
* @ getter for number of time blocks
*/
/**
* @ getter for number of channels
*/
std
::
uint32_t
nchans
();
std
::
uint32_t
nsamples
();
/**
* @ getter for number of time blocks
*/
std
::
uint32_t
nsamples
();
/**
* @ getter for number of time samples
*/
/**
* @ getter for number of time samples
*/
std
::
uint32_t
ntime
();
std
::
uint32_t
ntime
();
/**
* @ getter for number of freq blocks
*/
std
::
uint32_t
nfreq
();
/**
* @ getter for number of freq blocks
*/
std
::
uint32_t
nfreq
();
private:
std
::
uint32_t
_nbeams
;
std
::
uint32_t
_nchans
;
std
::
uint32_t
_nsamples
;
std
::
uint32_t
_ntime
;
std
::
uint32_t
_nfreq
;
private:
std
::
uint32_t
_nbeams
;
std
::
uint32_t
_nchans
;
std
::
uint32_t
_nsamples
;
std
::
uint32_t
_ntime
;
std
::
uint32_t
_nfreq
;
};
};
}
//namespace psrdada_cpp
#endif //PSRDADA_CPP_TRANSPOSE_CLIENT_HPP
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