Set up of Adiar and its core settings.  
More...
|  | 
| After having linked the C++ source file with Adiar, one needs to include the <adiar/adiar.h>header, initialise the library before using any of its data structures, and finally remember to deinitialise the library again before the program terminates. | 
| constexpr size_t | adiar::minimum_memory = 128 * 1024 * 1024 | 
|  | Minimum value of 128 MiB for the memory limit. 
 | 
|  | 
| void | adiar::adiar_init (size_t memory_limit_bytes, std::string temp_dir="") | 
|  | Initiates Adiar with the given amount of memory (given in bytes) 
 | 
|  | 
| bool | adiar::adiar_initialized () noexcept | 
|  | Whether Adiar is initialized. 
 | 
|  | 
| void | adiar::adiar_deinit () | 
|  | Closes and cleans up everything by Adiar. 
 | 
|  | 
Set up of Adiar and its core settings. 
◆ adiar_deinit()
      
        
          | void adiar::adiar_deinit | ( |  | ) |  | 
      
 
Closes and cleans up everything by Adiar. 
- Warning
- All of Adiar's file objects must be destructed before this functions i called. That is, any bdd bdd_builder, zdd zdd_builder or any shared_file objects you may be using.
- Exceptions
- 
  
    | runtime_error | If compiled with debug and one of Adiar's objects have not been destructed. |  
 
 
 
◆ adiar_init()
      
        
          | void adiar::adiar_init | ( | size_t | memory_limit_bytes, | 
        
          |  |  | std::string | temp_dir = "" | 
        
          |  | ) |  |  | 
      
 
Initiates Adiar with the given amount of memory (given in bytes) 
- Parameters
- 
  
    | memory_limit_bytes | The amount of internal memory (in bytes) that Adiar is allowed to use. This has to be at least minimum_memory. |  | temp_dir | The directory in which to place all temporary files. Default on Linux is the /tmp library. |  
 
- Exceptions
- 
  
    | invalid_argument | If memory_limit_bytesis set to a value less than theminimum_memoryrequired. |  | runtime_error | If adiar_init()and thenadiar_deinit()have been called previously. |  
 
 
 
◆ version
Combined version number of Adiar into a single integer. 
The each part of the version number is encoded as two decimal digits. That is, it is MMmmpp where M is the Major, m is the minor, and p is the patch version. This can be used to ensure at compile-time whether Adiar's version is within a desired range.