class VersionSet
Defined at line 146 of file ../../tools/fidl/fidlc/src/versioning_types.h
A version set is a nonempty set of versions in some platform, made of either
one range or two disjoint ranges.
Public Methods
bool Contains (Version version)
Returns true if this set contains `version`.
std::optional<VersionSet> Intersect (const std::optional<VersionSet> & lhs, const std::optional<VersionSet> & rhs)
Returns the intersection of two (possibly empty) sets. The result must be
expressible as a VersionSet, i.e. not more than 2 pieces.
void VersionSet (VersionRange first, std::optional<VersionRange> second)
Defined at line 148 of file ../../tools/fidl/fidlc/src/versioning_types.h
const std::pair<VersionRange, std::optional<VersionRange>> & ranges ()
Returns the first range and optional second range.
Defined at line 161 of file ../../tools/fidl/fidlc/src/versioning_types.h
bool operator== (const VersionSet & rhs)
Defined at line 171 of file ../../tools/fidl/fidlc/src/versioning_types.h
bool operator!= (const VersionSet & rhs)
Defined at line 172 of file ../../tools/fidl/fidlc/src/versioning_types.h
bool operator< (const VersionSet & rhs)
Defined at line 173 of file ../../tools/fidl/fidlc/src/versioning_types.h
bool operator<= (const VersionSet & rhs)
Defined at line 174 of file ../../tools/fidl/fidlc/src/versioning_types.h
bool operator> (const VersionSet & rhs)
Defined at line 175 of file ../../tools/fidl/fidlc/src/versioning_types.h
bool operator>= (const VersionSet & rhs)
Defined at line 176 of file ../../tools/fidl/fidlc/src/versioning_types.h