KiCad PCB EDA Suite
kiid.cpp File Reference
#include <kiid.h>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/functional/hash.hpp>
#include <mutex>
#include <wx/log.h>

Go to the source code of this file.

Functions

static boost::mt19937 rng (seeder)
 
static boost::uuids::basic_random_generator< boost::mt19937 > randomGenerator (rng)
 
KIIDNilUuid ()
 

Variables

static std::mutex rng_mutex
 
static boost::uuids::detail::seed_rng seeder
 
static boost::uuids::string_generator stringGenerator
 
static boost::uuids::nil_generator nilGenerator
 
KIID niluuid (0)
 
static bool g_createNilUuids = false
 

Function Documentation

◆ NilUuid()

KIID& NilUuid ( )

Definition at line 67 of file kiid.cpp.

68 {
69  static KIID nil( 0 );
70  return nil;
71 }
Definition: kiid.h:44

◆ randomGenerator()

static boost::uuids::basic_random_generator<boost::mt19937> randomGenerator ( rng  )
static

◆ rng()

static boost::mt19937 rng ( seeder  )
static

Referenced by KIID::SeedGenerator().

Variable Documentation

◆ g_createNilUuids

bool g_createNilUuids = false
static

Definition at line 63 of file kiid.cpp.

Referenced by KIID::CreateNilUuids(), and KIID::KIID().

◆ nilGenerator

boost::uuids::nil_generator nilGenerator
static

Definition at line 55 of file kiid.cpp.

Referenced by KIID::KIID().

◆ niluuid

◆ rng_mutex

std::mutex rng_mutex
static

Definition at line 41 of file kiid.cpp.

Referenced by KIID::KIID().

◆ seeder

boost::uuids::detail::seed_rng seeder
static

Definition at line 48 of file kiid.cpp.

◆ stringGenerator

boost::uuids::string_generator stringGenerator
static

Definition at line 54 of file kiid.cpp.

Referenced by KIID::KIID().