Back to index

nux  3.0.0
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
nux::UniqueIndex Class Reference

#include <NUniqueIndex.h>

Collaboration diagram for nux::UniqueIndex:
Collaboration graph
[legend]

List of all members.

Public Member Functions

unsigned long long GetUniqueIndex ()

Private Member Functions

 NUX_DECLARE_GLOBAL_OBJECT (UniqueIndex, GlobalSingletonInitializer)

Private Attributes

NThreadSafeCounter m_UniqueIndex

Static Private Attributes

static NCriticalSection m_CriticalSection

Detailed Description

Definition at line 29 of file NUniqueIndex.h.


Member Function Documentation

unsigned long long nux::UniqueIndex::GetUniqueIndex ( )

Definition at line 41 of file NUniqueIndex.cpp.

  {
    NScopeLock Scope (&m_CriticalSection);
    m_UniqueIndex.Increment();
    return m_UniqueIndex.GetValue();
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 36 of file NUniqueIndex.h.

Definition at line 35 of file NUniqueIndex.h.


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