Discover Packages
gitlab.com/ignitionrobotics/web/cloudsim
pkg
factory
map
package
Version:
v0.0.0-...-f1e7488
Opens a new window with list of versions in this module.
Published: Sep 20, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewMap creates and returns a new factory Map.
Map is the default Factory implementation.
It can be initialized using the `Register` method, by literal map initialization, or both.
New sets the `out` parameter to a new instance of the specific object type.
`out` should be a pointer to a value able to contain the expected type.
Register registers a new object type the factory can create.
Attempting to register an object type that already exists will result in an ErrFactoryTypeAlreadyExists error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.