3-35
Interface Repository Framework Reference
release_cache Method
Purpose
Permits the Repository object to release the memory occupied by Interface Repository
objects that have been implicitly referenced.
Syntax
void release_cache ( );
Description
This method allows the Repository object to release the memory occupied by implicitly
referenced Interface Repository objects. Some methods (such as describe_contents and
lookup_name) may cause some objects to be instantiated that are not directly accessible
through object references that have been returned to the user. These objects are kept in an
internal Interface Repository cache until the release_cache method is used to free them.
The internal cache continuously replenishes itself over time as the need arises.
Parameters
receiver A pointer to an object of class Repository representing SOM’s Interface
Repository.
ev A pointer where the method can return exception information if an error is
encountered.
Example
#include <repostry.h>
...
Repository repo;
Environment *ev;
sequence(ContainerDescription) scd;
...
scd = Container_describe_contents (
(Container) repo, ev, ”TypeDef”, TRUE, –1);
Repository_release_cache (repo, ev);
Original Class
Repository
Related Information
See the section entitled “A word about memory management” in Chapter 7 of the SOM
Toolkit User’s Guide.
Komentáře k této Příručce