libgsjj  1
Deterministic finite automata learning library
binary.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <vector>
10 
11 namespace gsjj {
20  std::vector<bool> decimal_to_binary(unsigned int dec_number, unsigned int size);
26  unsigned int binary_to_decimal(const std::vector<bool> &binary_number);
27 }
The namespace of the library.
Definition: binary.h:11
std::vector< bool > decimal_to_binary(unsigned int dec_number, unsigned int size)
Converts a number in decimal form to binary form.
Definition: binary.cpp:12
unsigned int binary_to_decimal(const std::vector< bool > &binary_number)
Converts a number in binary form to decimal form.
Definition: binary.cpp:37