 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
70 return unique_id != INVALID;
75 unique_id_(
UInt64(INVALID))
113 if (hasValidUniqueId())
133 return isValid(unique_id_);
140 return !isValid(unique_id_);
166 setUniqueId(
const String & rhs);
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
Size hasValidUniqueId() const
Returns whether the unique id is valid. Returns 1 if the unique id is valid, 0 otherwise.
Definition: UniqueIdInterface.h:131
A more convenient string class.
Definition: String.h:58
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:50
Size clearUniqueId()
Clear the unique id. The new unique id will be invalid. Returns 1 if the unique id was changed,...
Definition: UniqueIdInterface.h:111
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Size hasInvalidUniqueId() const
Returns whether the unique id is invalid. Returns 1 if the unique id is invalid, 0 otherwise.
Definition: UniqueIdInterface.h:138
UniqueIdInterface()
Default constructor - the unique id will be invalid
Definition: UniqueIdInterface.h:74
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
void swap(UniqueIdInterface &from)
Definition: UniqueIdInterface.h:123
bool operator==(UniqueIdInterface const &rhs) const
Equality comparison operator - the unique ids must be equal (!)
Definition: UniqueIdInterface.h:97
static bool isValid(UInt64 unique_id)
Returns true if the unique_id is valid, false otherwise.
Definition: UniqueIdInterface.h:68
void setUniqueId(UInt64 rhs)
Assigns the given unique id.
Definition: UniqueIdInterface.h:153
UInt64 unique_id_
the unique id
Definition: UniqueIdInterface.h:170
UInt64 getUniqueId() const
Non-mutable access to unique id - returns the unique id.
Definition: UniqueIdInterface.h:104