Public Member Functions | Public Attributes | List of all members
pyclearsilver.guid.CircularSet Class Reference

A simple circular set to ensure we don't duplicate GUIDs in the same millisecond. More...

Public Member Functions

def __init__ (self)
 
def add (self, val)
 

Public Attributes

 queue
 
 queue_map
 
 queueindex
 

Detailed Description

A simple circular set to ensure we don't duplicate GUIDs in the same millisecond.

A circular set.  A set that maxes at a given size, replacing the oldest element after maximum size.
   This implementation is NOT thread safe.  (generate() below is thread safe, though)

Definition at line 142 of file guid.py.

Constructor & Destructor Documentation

def pyclearsilver.guid.CircularSet.__init__ (   self)

Definition at line 146 of file guid.py.

Member Function Documentation

def pyclearsilver.guid.CircularSet.add (   self,
  val 
)
Adds a value to the queue

Definition at line 151 of file guid.py.

Member Data Documentation

pyclearsilver.guid.CircularSet.queue

Definition at line 147 of file guid.py.

pyclearsilver.guid.CircularSet.queue_map

Definition at line 148 of file guid.py.

pyclearsilver.guid.CircularSet.queueindex

Definition at line 149 of file guid.py.


The documentation for this class was generated from the following file:


pyclearsilver
Author(s): Scott Noob Hassan
autogenerated on Mon Jun 10 2019 15:51:13