File: freeModel.Rd

package info (click to toggle)
r-cran-redland 1.0.17-10-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,824 kB
  • sloc: ansic: 6,886; sh: 51; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 916 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Model.R
\docType{methods}
\name{freeModel}
\alias{freeModel}
\alias{freeModel,Model-method}
\title{Free memory used by a librdf model.}
\usage{
freeModel(.Object)

\S4method{freeModel}{Model}(.Object)
}
\arguments{
\item{.Object}{a Model object}
}
\description{
Free memory used by a librdf model.
}
\details{
After this method is called, the Model object is no longer usable and should
be deleted \code{"rm(model)"} and a new object created.
}
\examples{
world <- new("World")
storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'")
model <- new("Model", world, storage, options="")
# At this point, some operations would be performed with the model.
# See '?redland' for a complete example.
# When the Model object is no longer needed, the resources it has allocated can be freed.
freeModel(model)
rm(model)
}