1#ifndef RAIIGRAPH_RNG_SCOPE_HPP 
    2#define RAIIGRAPH_RNG_SCOPE_HPP 
   37    RNGScope(igraph_uint_t seed, 
const igraph_rng_type_t* type) {
 
   40        auto errcode = igraph_rng_seed(¤t, seed);
 
   41        if (errcode != IGRAPH_SUCCESS) {
 
   42            igraph_rng_destroy(¤t);
 
   46        previous = igraph_rng_set_default(¤t);
 
 
   56        previous = igraph_rng_set_default(¤t);
 
 
   75        igraph_rng_set_default(previous);
 
   76        igraph_rng_destroy(¤t);
 
   83    igraph_rng_t* previous;
 
 
Error class for igraph-related errors.
Definition error.hpp:16
 
Control the igraph RNG via RAII.
Definition RNGScope.hpp:22
 
RNGScope(const igraph_rng_type_t *type)
Definition RNGScope.hpp:54
 
RNGScope()
Definition RNGScope.hpp:62
 
RNGScope(igraph_uint_t seed)
Definition RNGScope.hpp:29
 
RNGScope(igraph_uint_t seed, const igraph_rng_type_t *type)
Definition RNGScope.hpp:37
 
Error handling for raiigraph.
 
Utilities for manipulating igraph data structures in C++.
Definition error.hpp:11
 
void check_code(igraph_error_t code)
Definition error.hpp:39