#include <Mini.hh>
Definition at line 50 of file Mini.hh.
Static Public Member Functions | |
static void | set_mini_word (int *noteArray, int k, char *binaryMiniWord1, int noteOffValue, int *size_mem_mpz, int startKey) |
function is used to encapsulate the process of mini encoding NOT WORKING ! ! ! | |
static void | ksub_rank (int k, int *a, mpz_t rank) |
encodes a integer array with k elements int a mpz_t value | |
static void | ksub_unrank (int k, int *a, mpz_t rank) |
decodes a mpz_t value into a integer array with k elements. | |
static int | get_size_mem_int (int value) |
returns the size (in Byte) of memory used to store the int value | |
static int | get_bin_digits_int (int value) |
calculates necessary digits to store int value in binary format. | |
static int | get_size_mem_mpz (mpz_t value) |
returns the size (in Byte) of memory used to store mpz_t value | |
static int | get_bin_digits_mpz (mpz_t number) |
calculates necessary digits to store the mpz value in binary format. | |
static void | mpz_2_bin (mpz_t value, int k, int note, char *mem_pointer) |
converts mpz value into a binary format | |
static void | bin_2_mpz (char *mem_pointer, int *k, mpz_t value, int *note) |
converts the value at the location mem_pointer back to mpz_value | |
static void | extract_size (char firstRead, int *size) |
receives a char which holds the size of the mpz value. | |
static void | print_mem (char *mem_pointer, int size_bin) |
prints the binary content at a specific memory location | |
static void | sort_array (int *noteArray, int size) |
sorts a array. | |
static void | print_array (int *noteArray, int size, int startKey) |
prints out a integer array. |
|
converts the value at the location mem_pointer back to mpz_value
Definition at line 345 of file Mini.cpp. Referenced by mini_function(). |
|
receives a char which holds the size of the mpz value.
Definition at line 433 of file Mini.cpp. Referenced by mini_function(). |
|
calculates necessary digits to store int value in binary format.
Definition at line 206 of file Mini.cpp. Referenced by get_size_mem_int(), and mpz_2_bin(). |
|
calculates necessary digits to store the mpz value in binary format.
Definition at line 188 of file Mini.cpp. Referenced by get_size_mem_mpz(), and mpz_2_bin(). |
|
returns the size (in Byte) of memory used to store the int value
Definition at line 177 of file Mini.hh. References DIGITS_K_DEF, DIGITS_SIZE_DEF, and get_bin_digits_int(). Here is the call graph for this function: ![]() |
|
returns the size (in Byte) of memory used to store mpz_t value
Definition at line 188 of file Mini.hh. References DIGITS_K_DEF, DIGITS_SIZE_DEF, and get_bin_digits_mpz(). Referenced by mini_off_function(), mini_on_function(), mpz_2_bin(), and set_mini_word(). Here is the call graph for this function: ![]() |
|
encodes a integer array with k elements int a mpz_t value
Definition at line 73 of file Mini.cpp. Referenced by mini_off_function(), mini_on_function(), and set_mini_word(). |
|
decodes a mpz_t value into a integer array with k elements.
Definition at line 131 of file Mini.cpp. Referenced by mini_function(). |
|
converts mpz value into a binary format
Definition at line 217 of file Mini.cpp. References DIGITS_K_DEF, DIGITS_SIZE_DEF, get_bin_digits_int(), get_bin_digits_mpz(), and get_size_mem_mpz(). Referenced by mini_off_function(), mini_on_function(), and set_mini_word(). Here is the call graph for this function: ![]() |
|
prints out a integer array.
Definition at line 422 of file Mini.cpp. Referenced by mini_function(), mini_off_function(), mini_on_function(), and set_mini_word(). |
|
prints the binary content at a specific memory location
Definition at line 448 of file Mini.cpp. Referenced by mini_function(), mini_off_function(), mini_on_function(), and set_mini_word(). |
|
function is used to encapsulate the process of mini encoding NOT WORKING ! ! ! This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Definition at line 38 of file Mini.cpp. References DELIMITER, get_size_mem_mpz(), ksub_rank(), mpz_2_bin(), print_array(), print_mem(), and sort_array(). Here is the call graph for this function: ![]() |
|
sorts a array.
Definition at line 403 of file Mini.cpp. Referenced by mini_off_function(), mini_on_function(), and set_mini_word(). |