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::uuids::basic_random_generator< boost::mt19937 > randomGenerator (rng)
 
KIIDNilUuid ()
 

Variables

static std::mutex rng_mutex
 
static boost::mt19937 rng
 
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 61 of file kiid.cpp.

62 {
63  static KIID nil( 0 );
64  return nil;
65 }
Definition: kiid.h:44

◆ randomGenerator()

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

Variable Documentation

◆ g_createNilUuids

bool g_createNilUuids = false
static

Definition at line 57 of file kiid.cpp.

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

◆ nilGenerator

boost::uuids::nil_generator nilGenerator
static

Definition at line 49 of file kiid.cpp.

Referenced by KIID::KIID().

◆ niluuid

◆ rng

boost::mt19937 rng
static

Definition at line 44 of file kiid.cpp.

Referenced by KIID::SeedGenerator().

◆ rng_mutex

std::mutex rng_mutex
static

Definition at line 41 of file kiid.cpp.

Referenced by KIID::KIID().

◆ stringGenerator

boost::uuids::string_generator stringGenerator
static

Definition at line 48 of file kiid.cpp.

Referenced by KIID::KIID().