Skip to content

Commit a139aa9

Browse files
committed
Add doc comments to various class declarations
1 parent b058558 commit a139aa9

File tree

7 files changed

+29
-1
lines changed

7 files changed

+29
-1
lines changed

include/bitstream/quantization/bounded_range.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
namespace bitstream
2828
{
29+
/**
30+
* @brief Class for quantizing single-precision floats into a range and precision
31+
*/
2932
class bounded_range
3033
{
3134
public:

include/bitstream/quantization/half_precision.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
namespace bitstream
2828
{
29+
/**
30+
* @brief Class for quantizing single-precision floats into half-precision
31+
*/
2932
class half_precision
3033
{
3134
private:

include/bitstream/quantization/smallest_three.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727

2828
namespace bitstream
2929
{
30+
/**
31+
* @brief A quantized representation of a quaternion
32+
*/
3033
struct quantized_quaternion
3134
{
3235
uint32_t m;
@@ -40,6 +43,10 @@ namespace bitstream
4043
: m(m), a(a), b(b), c(c) {}
4144
};
4245

46+
/**
47+
* @brief Class for quantizing a user-specified quaternion into fewer bits using the smallest-three algorithm
48+
* @tparam T The quaternion-type to quantize
49+
*/
4350
template<typename T, size_t BitsPerElement = 12>
4451
class smallest_three
4552
{

include/bitstream/stream/bit_reader.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
namespace bitstream
1515
{
16+
/**
17+
* @brief A stream for reading objects from a tightly packed buffer
18+
*/
1619
class bit_reader
1720
{
1821
public:

include/bitstream/stream/bit_writer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ namespace bitstream
1414
{
1515
class bit_reader;
1616

17+
/**
18+
* @brief A stream for writing objects tightly into a buffer
19+
*/
1720
class bit_writer
1821
{
1922
private:

include/bitstream/stream/serialize_traits.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
namespace bitstream
44
{
5-
template<typename, typename = void>
5+
/**
6+
* @brief A class for specializing trait serialization functions
7+
* @tparam Trait Make a specialization on this type
8+
* @tparam Void Use std::enable_if here if you need to, otherwise leave empty
9+
*/
10+
template<typename Trait, typename Void = void>
611
struct serialize_traits;
712
}

include/bitstream/traits/integral_traits.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
namespace bitstream
1414
{
15+
/**
16+
* @brief Wrapper type for compile-time known integer bounds
17+
* @tparam T
18+
*/
1519
template<typename T, T, T>
1620
struct bounded_int;
1721

0 commit comments

Comments
 (0)