-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62c2393
commit 2679706
Showing
9 changed files
with
472 additions
and
511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,24 @@ | ||
#ifndef ROCBITSTREAM_H | ||
#define ROCBITSTREAM_H | ||
#include<vector> | ||
#include <vector> | ||
|
||
class ROCBitStream{ | ||
class ROCBitStream { | ||
public: | ||
ROCBitStream(int rocid, const std::vector<bool>& bitstream) { | ||
rocid_ = rocid; | ||
bitstream_ = bitstream; | ||
} | ||
|
||
public: | ||
ROCBitStream( | ||
int rocid, | ||
const std::vector<bool>& bitstream | ||
) { | ||
rocid_ = rocid; | ||
bitstream_ = bitstream; | ||
} | ||
ROCBitStream() { rocid_ = -1; } | ||
|
||
ROCBitStream() { | ||
rocid_ = -1; | ||
} | ||
int get_rocid() const { return rocid_; } | ||
|
||
int get_rocid() const { | ||
return rocid_; | ||
} | ||
const std::vector<bool>& get_bitstream() const { return bitstream_; } | ||
|
||
const std::vector<bool>& get_bitstream() const { | ||
return bitstream_; | ||
} | ||
|
||
const bool operator<(const ROCBitStream& other) { | ||
return rocid_ < other.rocid_; | ||
} | ||
|
||
private: | ||
int rocid_; | ||
std::vector<bool> bitstream_; | ||
const bool operator<(const ROCBitStream& other) { return rocid_ < other.rocid_; } | ||
|
||
private: | ||
int rocid_; | ||
std::vector<bool> bitstream_; | ||
}; | ||
#endif // ROCBITSTREAM_H | ||
#endif // ROCBITSTREAM_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.