Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
ON_SerialNumberMap Class Reference

#include <opennurbs_lookup.h>

List of all members.

Classes

struct  MAP_VALUE
struct  SN_BLOCK
struct  SN_ELEMENT

Public Member Functions

size_t ActiveIdCount () const
size_t ActiveSerialNumberCount () const
struct SN_ELEMENTAddSerialNumber (unsigned int sn)
struct SN_ELEMENTAddSerialNumberAndId (unsigned int sn, ON_UUID id)
void Dump (ON_TextLog &text_log) const
void EmptyList ()
struct SN_ELEMENTFindId (ON_UUID) const
struct SN_ELEMENTFindSerialNumber (unsigned int sn) const
struct SN_ELEMENTFirstElement () const
size_t GetElements (unsigned int sn0, unsigned int sn1, size_t max_count, ON_SimpleArray< SN_ELEMENT > &elements) const
bool IsValid (ON_TextLog *textlog) const
struct SN_ELEMENTLastElement () const
 ON_SerialNumberMap (ON_MEMORY_POOL *pool=0)
struct SN_ELEMENTRemoveId (unsigned int sn, ON_UUID id)
struct SN_ELEMENTRemoveSerialNumberAndId (unsigned int sn)
 ~ON_SerialNumberMap ()

Private Types

enum  { SN_BLOCK_CAPACITY = 8192, SN_PURGE_RATIO = 16, ID_HASH_TABLE_COUNT = 8192 }

Private Member Functions

void AddBlockToHashTableHelper (struct SN_BLOCK *blk)
void BuildHashTableHelper ()
struct SN_ELEMENTFindElementHelper (unsigned int sn)
void GarbageCollectHelper ()
size_t GarbageCollectMoveHelper (SN_BLOCK *dst, SN_BLOCK *src)
size_t HashIndex (const ON_UUID *) const
void InvalidateHashTableHelper ()
 ON_SerialNumberMap (const ON_SerialNumberMap &)
ON_SerialNumberMapoperator= (const ON_SerialNumberMap &)
bool RemoveBlockFromHashTableHelper (const struct SN_BLOCK *blk)
void UpdateMaxSNHelper ()

Private Attributes

size_t m_active_id_count
bool m_bHashTableIsValid
struct SN_BLOCKm_e_blk
struct SN_ELEMENTm_hash_table [ID_HASH_TABLE_COUNT]
ON_UUID m_inactive_id
unsigned int m_maxsn
ON_MEMORY_POOLm_pool
unsigned int m_reserved
SN_BLOCK m_sn_block0
size_t m_sn_count
size_t m_sn_purged
struct SN_BLOCK ** m_snblk_list
size_t m_snblk_list_capacity
size_t m_snblk_list_count

Detailed Description

Definition at line 33 of file opennurbs_lookup.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
SN_BLOCK_CAPACITY 
SN_PURGE_RATIO 
ID_HASH_TABLE_COUNT 

Definition at line 345 of file opennurbs_lookup.h.


Constructor & Destructor Documentation

Definition at line 120 of file opennurbs_lookup.cpp.

Definition at line 138 of file opennurbs_lookup.cpp.


Member Function Documentation

Definition at line 664 of file opennurbs_lookup.cpp.

Definition at line 659 of file opennurbs_lookup.cpp.

void ON_SerialNumberMap::AddBlockToHashTableHelper ( struct SN_BLOCK blk) [private]

Definition at line 1721 of file opennurbs_lookup.cpp.

Definition at line 1528 of file opennurbs_lookup.cpp.

Definition at line 1582 of file opennurbs_lookup.cpp.

Definition at line 1740 of file opennurbs_lookup.cpp.

void ON_SerialNumberMap::Dump ( ON_TextLog text_log) const

Definition at line 1833 of file opennurbs_lookup.cpp.

Definition at line 143 of file opennurbs_lookup.cpp.

struct ON_SerialNumberMap::SN_ELEMENT * ON_SerialNumberMap::FindElementHelper ( unsigned int  sn) [read, private]

Definition at line 534 of file opennurbs_lookup.cpp.

Definition at line 776 of file opennurbs_lookup.cpp.

struct ON_SerialNumberMap::SN_ELEMENT * ON_SerialNumberMap::FindSerialNumber ( unsigned int  sn) const [read]

Definition at line 770 of file opennurbs_lookup.cpp.

Definition at line 669 of file opennurbs_lookup.cpp.

Definition at line 1328 of file opennurbs_lookup.cpp.

Definition at line 1264 of file opennurbs_lookup.cpp.

size_t ON_SerialNumberMap::GetElements ( unsigned int  sn0,
unsigned int  sn1,
size_t  max_count,
ON_SimpleArray< SN_ELEMENT > &  elements 
) const

Definition at line 803 of file opennurbs_lookup.cpp.

size_t ON_SerialNumberMap::HashIndex ( const ON_UUID id) const [private]

Definition at line 1636 of file opennurbs_lookup.cpp.

Definition at line 1643 of file opennurbs_lookup.cpp.

bool ON_SerialNumberMap::IsValid ( ON_TextLog textlog) const

Definition at line 1168 of file opennurbs_lookup.cpp.

Definition at line 721 of file opennurbs_lookup.cpp.

ON_SerialNumberMap& ON_SerialNumberMap::operator= ( const ON_SerialNumberMap ) [private]
bool ON_SerialNumberMap::RemoveBlockFromHashTableHelper ( const struct SN_BLOCK blk) [private]

Definition at line 1658 of file opennurbs_lookup.cpp.

struct ON_SerialNumberMap::SN_ELEMENT * ON_SerialNumberMap::RemoveId ( unsigned int  sn,
ON_UUID  id 
) [read]

Definition at line 1073 of file opennurbs_lookup.cpp.

Definition at line 988 of file opennurbs_lookup.cpp.

Definition at line 527 of file opennurbs_lookup.cpp.


Member Data Documentation

Definition at line 385 of file opennurbs_lookup.h.

Definition at line 384 of file opennurbs_lookup.h.

Definition at line 409 of file opennurbs_lookup.h.

Definition at line 425 of file opennurbs_lookup.h.

Definition at line 386 of file opennurbs_lookup.h.

unsigned int ON_SerialNumberMap::m_maxsn [private]

Definition at line 373 of file opennurbs_lookup.h.

Definition at line 377 of file opennurbs_lookup.h.

unsigned int ON_SerialNumberMap::m_reserved [private]

Definition at line 374 of file opennurbs_lookup.h.

Definition at line 414 of file opennurbs_lookup.h.

Definition at line 380 of file opennurbs_lookup.h.

Definition at line 381 of file opennurbs_lookup.h.

Definition at line 400 of file opennurbs_lookup.h.

Definition at line 401 of file opennurbs_lookup.h.

Definition at line 402 of file opennurbs_lookup.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:52