#include <ut_misc.h>
Public Types | |
enum | idType { List = 0, Footnote, Endnote, Annotation, HeaderFtr, Image, Math, Embed, ODTCTSplit, _Last } |
Public Member Functions | |
UT_UniqueId () | |
~UT_UniqueId () | |
UT_uint32 | getUID (idType t) |
bool | setMinId (idType t, UT_uint32 iMin) |
bool | isIdUnique (idType t, UT_uint32 iId) const |
Private Attributes | |
UT_uint32 | m_iID [(UT_uint32) _Last] |
enum UT_UniqueId::idType |
UT_UniqueId::~UT_UniqueId | ( | ) | [inline] |
returns unique id (0 <= id < UT_UID_INVALID) of given type or UT_UID_INVALID on failure
References _Last, m_iID, UT_return_val_if_fail, and UT_UID_INVALID.
returns true of iId can be used as a unique identifier of a type t; before using iId, THE CALLER MUST CALL setMinId(t, iId+1) !!!
References _Last, m_iID, and UT_return_val_if_fail.
sets the minimum id to be returned by subsequent calls to getUID() to iMin and returns true on success; returns false if it fails (either because unknown type is specified or because the value of iMin is too high)
References _Last, m_iID, and UT_return_val_if_fail.
UT_uint32 UT_UniqueId::m_iID[(UT_uint32) _Last] [private] |
Referenced by getUID(), isIdUnique(), setMinId(), and UT_UniqueId().