Lines Matching refs:instance
55 * generate an instance of the service. ICUServiceKeys define how
123 * identify an instance of the service in the cache. A
279 * (possibly deferred-initialized) instance. This implements
294 * service instance. If visible is true, the ID will be visible.
295 * The instance must not be nullptr. The SimpleFactory will adopt
296 * the instance, which must not be changed subsequent to this call.</p>
298 * @param instanceToAdopt the service instance to adopt.
299 * @param id the ID to assign to this service instance.
310 * <p>This implementation returns a clone of the service instance if the factory's ID is equal to
596 * @return the service instance, or nullptr.
607 * @return the service instance, or nullptr.
616 * @return the service instance, or nullptr.
640 * @return the service instance, or nullptr.
654 * @return the service instance, or nullptr.
770 * (and discard) this instance.
775 * <p>Register a service instance with the provided ID. The ID will be
777 * getVisibleIDs if visible is true. The service instance will be adopted and
790 * (and discard) this instance.
846 * <p>The default implementation creates an ICUServiceKey instance.
858 * clone, so we need an instance-aware method that knows how to do this.
861 * @param instance the service instance to clone.
862 * @return a clone of the passed-in instance, or nullptr if cloning was unsuccessful.
864 virtual UObject* cloneInstance(UObject* instance) const = 0;
876 * <p>The default implementation returns an instance of SimpleFactory.</p>
878 * @param instanceToAdopt the service instance to adopt.
879 * @param id the ID to assign to this service instance.
882 * @return an instance of ICUServiceFactory that maps this instance to the provided ID.
909 * @return the service instance, or nullptr.