CCSDS 124.0-B-1 C++ 1.0.0
CCSDS 124.0-B-1 Lossless Compression
Loading...
Searching...
No Matches
bitvector.cpp File Reference

BitVector compilation unit. More...

Include dependency graph for bitvector.cpp:

Go to the source code of this file.

Detailed Description

BitVector compilation unit.

This file exists for library structure purposes. The BitVector class is implemented entirely in the header file (bitvector.hpp) because:

  1. BitVector is a template class parameterized by bit length N
  2. C++ requires template implementations to be visible at instantiation
  3. Header-only design is standard for template-heavy libraries

Benefits of header-only templates:

  • Compiler can inline and optimize for specific template parameters
  • No need for explicit template instantiation
  • Simpler build configuration

This .cpp file:

  • Includes the header to verify it compiles correctly in isolation
  • Provides a compilation unit for the static library
  • Can hold non-template utilities if needed in the future
See also
include/ccsds124/bitvector.hpp for the full implementation

Definition in file bitvector.cpp.