#include <bitset>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "config.h"
Namespaces | |
| namespace | ace |
Classes | |
| struct | ace::select1st< T > |
| Template for functor class for function returning 1st pair member. More... | |
| struct | ace::select2nd< T > |
| Template for functor class for function returning 2nd pair member. More... | |
| class | ace::SumDecompositions |
| Class purpose is to hold information about all decompositions of given sum (N) into given number of addends (M). More... | |
Typedefs | |
| typedef std::vector < std::vector< size_t > > | ace::sum_decompositions_t |
| The container with tables (vectors of unsigned) which are decompositions of certain number (N) into certain number of addends (M). | |
Functions | |
| template<typename _Type> | |
| bool | ace::ith_bit (_Type expr, size_t i) |
| template<typename _Type> | |
| _Type | ace::set_ith_bit (_Type expr, size_t i, bool on=true) |
| template<typename _Type> | |
| size_t | ace::bits_in (_Type expr) |
| template<typename _Type> | |
| _Type | ace::ff (void) |
| std::string | ace::unsigned2str (size_t num) |
| Converts given unsigned number to string. | |
| std::string | ace::double2str (double num, unsigned precision=0) |
| Converts given floating point number to string. | |
(C) Ceslav Przywara 2008, MFF UK Prague
1.5.6