indra::base::lluuid::UUID Class Reference
List of all members.
Detailed Description
A class which represents a 16 byte integer. Stored as a 16 byte 8
bit character string.
The string version is to be of the form:
AAAAAAAA-AAAA-BBBB-BBBB-BBBBBBCCCCCC (a 128-bit number in hex)
where A=network address, B=timestamp, C=random.
Definition at line 45 of file lluuid.py.
Member Function Documentation
def indra::base::lluuid::UUID::__init__ |
( |
|
self, |
|
|
|
possible_uuid = None | |
|
) |
| | |
Initialize to first valid UUID in argument (if a string),
or to null UUID if none found or argument is not supplied.
If the argument is a UUID, the constructed object will be a copy of it.
Definition at line 77 of file lluuid.py.
def indra::base::lluuid::UUID::__len__ |
( |
|
self |
) |
|
Used by the len() builtin.
Definition at line 101 of file lluuid.py.
def indra::base::lluuid::UUID::__nonzero__ |
( |
|
self |
) |
|
def indra::base::lluuid::UUID::__str__ |
( |
|
self |
) |
|
def indra::base::lluuid::UUID::__getitem__ |
( |
|
self, |
|
|
|
index | |
|
) |
| | |
def indra::base::lluuid::UUID::__eq__ |
( |
|
self, |
|
|
|
other | |
|
) |
| | |
def indra::base::lluuid::UUID::__ne__ |
( |
|
self, |
|
|
|
other | |
|
) |
| | |
def indra::base::lluuid::UUID::__le__ |
( |
|
self, |
|
|
|
other | |
|
) |
| | |
def indra::base::lluuid::UUID::__ge__ |
( |
|
self, |
|
|
|
other | |
|
) |
| | |
def indra::base::lluuid::UUID::__lt__ |
( |
|
self, |
|
|
|
other | |
|
) |
| | |
def indra::base::lluuid::UUID::__gt__ |
( |
|
self, |
|
|
|
other | |
|
) |
| | |
def indra::base::lluuid::UUID::__hash__ |
( |
|
self |
) |
|
def indra::base::lluuid::UUID::set |
( |
|
self, |
|
|
|
uuid | |
|
) |
| | |
def indra::base::lluuid::UUID::setFromString |
( |
|
self, |
|
|
|
uuid_string | |
|
) |
| | |
Given a string version of a uuid, set self bits
appropriately. Returns self.
Definition at line 145 of file lluuid.py.
def indra::base::lluuid::UUID::setFromMemoryDump |
( |
|
self, |
|
|
|
gdb_string | |
|
) |
| | |
We expect to get gdb_string as four hex units. eg:
0x147d54db 0xc34b3f1b 0x714f989b 0x0a892fd2
Which will be translated to:
db547d14-1b3f4bc3-9b984f71-d22f890a
Returns self.
Definition at line 157 of file lluuid.py.
def indra::base::lluuid::UUID::toString |
( |
|
self |
) |
|
Return as a string matching the LL standard
AAAAAAAA-AAAA-BBBB-BBBB-BBBBBBCCCCCC (a 128-bit number in hex)
where A=network address, B=timestamp, C=random.
Definition at line 173 of file lluuid.py.
def indra::base::lluuid::UUID::getAsString |
( |
|
self |
) |
|
Return a different string representation of the form
AAAAAAAA-AAAABBBB-BBBBBBBB-BBCCCCCC (a 128-bit number in hex)
where A=network address, B=timestamp, C=random.
Definition at line 181 of file lluuid.py.
def indra::base::lluuid::UUID::generate |
( |
|
self |
) |
|
Generate a new uuid. This algorithm is slightly different
from c++ implementation for portability reasons.
Returns self.
Definition at line 193 of file lluuid.py.
def indra::base::lluuid::UUID::isNull |
( |
|
self |
) |
|
Returns 1 if the uuid is null - ie, equal to default uuid.
Definition at line 204 of file lluuid.py.
def indra::base::lluuid::UUID::xor |
( |
|
self, |
|
|
|
rhs | |
|
) |
| | |
Member Data Documentation
The documentation for this class was generated from the following file: