From 67c82c97dfcfc68d4bd71f5773d21c34c8733c83 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 26 Dec 2016 23:10:57 +0100 Subject: Use ref instead of pointer for subchannel sources --- src/SubchannelSource.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/SubchannelSource.cpp') diff --git a/src/SubchannelSource.cpp b/src/SubchannelSource.cpp index f4b6b55..7632de5 100644 --- a/src/SubchannelSource.cpp +++ b/src/SubchannelSource.cpp @@ -59,7 +59,7 @@ #define P24 0xffffffff -const std::vector& SubchannelSource::get_rules() +const std::vector& SubchannelSource::get_rules() const { return d_puncturing_rules; } @@ -635,18 +635,18 @@ SubchannelSource::SubchannelSource(eti_STC &stc) : } } -size_t SubchannelSource::startAddress() +size_t SubchannelSource::startAddress() const { return d_start_address; } -size_t SubchannelSource::framesize() +size_t SubchannelSource::framesize() const { return d_framesize; } -size_t SubchannelSource::framesizeCu() +size_t SubchannelSource::framesizeCu() const { size_t framesizeCu = 0; @@ -1003,25 +1003,25 @@ size_t SubchannelSource::framesizeCu() } -size_t SubchannelSource::bitrate() +size_t SubchannelSource::bitrate() const { return d_framesize / 3; } -size_t SubchannelSource::protection() +size_t SubchannelSource::protection() const { return d_protection; } -size_t SubchannelSource::protectionForm() +size_t SubchannelSource::protectionForm() const { return (d_protection >> 5) & 1; } -size_t SubchannelSource::protectionLevel() +size_t SubchannelSource::protectionLevel() const { if (protectionForm()) { // Long form return (d_protection & 0x3) + 1; @@ -1030,7 +1030,7 @@ size_t SubchannelSource::protectionLevel() } -size_t SubchannelSource::protectionOption() +size_t SubchannelSource::protectionOption() const { if (protectionForm()) { // Long form return (d_protection >> 2) & 0x7; -- cgit v1.2.3