Discover Packages
github.com/gazebo-web/cloudsim/v4
pkg
factory
map
package
Version:
v4.0.0
Opens a new window with list of versions in this module.
Published: Jan 10, 2023
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.