FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Static Public Member Functions | List of all members
qtcore::UniqueId Class Reference

#include <qttools/core/unique_id.h>

Classes

struct  RegisterResult
 Stores the result of UniqueId::registerId() More...
 

Static Public Member Functions

static RegisterResult registerId (int min, int max=INT_MAX)
 Registers a new unique index. More...
 
static bool isRegistered (int id)
 Has id already been registered with UniqueId::registerId() ? More...
 

Detailed Description

Provides services around creation of (app execution scope) unique indexes

Member Function Documentation

bool qtcore::UniqueId::isRegistered ( int  id)
static

Has id already been registered with UniqueId::registerId() ?

UniqueId::RegisterResult qtcore::UniqueId::registerId ( int  min,
int  max = INT_MAX 
)
static

Registers a new unique index.

Returns a value between min and max that has not yet been registered.

This is a generalization of QEvent::registerEventType()

Note
This function is thread-safe.

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