class VersionSelection
Defined at line 357 of file ../../tools/fidl/fidlc/src/versioning_types.h
A version selection is an assignment of versions to platforms.
Public Methods
bool Insert (Platform platform, std::set<Version> versions)
Inserts versions. The platform must not be "unversioned". The version set
must be nonempty. Returns false if already called for this platform.
bool Contains (const Platform & platform)
Returns true if versions were inserted for the given platform.
Version Lookup (const Platform & platform)
Returns the version for the given platform. Always returns HEAD for the
unversioned platform. Otherwise, assumes the platform was inserted.
const std::set<Version> & LookupSet (const Platform & platform)
TODO(https://fxbug.dev/42085274): Remove.
const_iterator begin ()
Iterator over the (platform, version) pairs.
Defined at line 374 of file ../../tools/fidl/fidlc/src/versioning_types.h
const_iterator end ()
Defined at line 375 of file ../../tools/fidl/fidlc/src/versioning_types.h