R/gen-PrecisionPopulationEstimates.R

Defines functions OtherMethod_acc Bayesian_acc MLE_acc so_PrecisionPopulationEstimates_create_OtherMethod so_PrecisionPopulationEstimates_set_OtherMethod so_PrecisionPopulationEstimates_get_OtherMethod so_PrecisionPopulationEstimates_create_Bayesian so_PrecisionPopulationEstimates_set_Bayesian so_PrecisionPopulationEstimates_get_Bayesian so_PrecisionPopulationEstimates_create_MLE so_PrecisionPopulationEstimates_set_MLE so_PrecisionPopulationEstimates_get_MLE so_PrecisionPopulationEstimates_unref so_PrecisionPopulationEstimates_ref so_PrecisionPopulationEstimates_free so_PrecisionPopulationEstimates_copy so_PrecisionPopulationEstimates_new

# libsoc - Library to handle standardised output files
# Copyright (C) 2015 Rikard Nordgren
# 
# This file was autogenerated and should not be edited
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
# 
# his library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, see <http://www.gnu.org/licenses/>.

so_PrecisionPopulationEstimates_new <- function() {
	obj = .Call("r_so_PrecisionPopulationEstimates_new")
}

so_PrecisionPopulationEstimates_copy <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_copy", self)
}

so_PrecisionPopulationEstimates_free <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_free", self)
}

so_PrecisionPopulationEstimates_ref <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_ref", self)
}

so_PrecisionPopulationEstimates_unref <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_unref", self)
}

so_PrecisionPopulationEstimates_get_MLE <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_get_MLE", self)
}

so_PrecisionPopulationEstimates_set_MLE <- function(self, value) {
	.Call("r_so_PrecisionPopulationEstimates_set_MLE", self, value)
}

so_PrecisionPopulationEstimates_create_MLE <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_create_MLE", self)
}

so_PrecisionPopulationEstimates_get_Bayesian <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_get_Bayesian", self)
}

so_PrecisionPopulationEstimates_set_Bayesian <- function(self, value) {
	.Call("r_so_PrecisionPopulationEstimates_set_Bayesian", self, value)
}

so_PrecisionPopulationEstimates_create_Bayesian <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_create_Bayesian", self)
}

so_PrecisionPopulationEstimates_get_OtherMethod <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_get_OtherMethod", self)
}

so_PrecisionPopulationEstimates_set_OtherMethod <- function(self, value) {
	.Call("r_so_PrecisionPopulationEstimates_set_OtherMethod", self, value)
}

so_PrecisionPopulationEstimates_create_OtherMethod <- function(self) {
	.Call("r_so_PrecisionPopulationEstimates_create_OtherMethod", self)
}

MLE_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			child = so_PrecisionPopulationEstimates_get_MLE(.self$.cobj)
			if (!isnull(child)) {
				so_MLE_ref(child)
				so_MLE$new(cobj=child)
			}
		} else {
			if (!is(value, "so_MLE")) {
				stop("object must be of type 'so_MLE'")
			}
			so_PrecisionPopulationEstimates_set_MLE(.self$.cobj, value$.cobj)
			so_MLE_ref(value$.cobj)
		}
	}
}

Bayesian_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			child = so_PrecisionPopulationEstimates_get_Bayesian(.self$.cobj)
			if (!isnull(child)) {
				so_Bayesian_PPE_ref(child)
				so_Bayesian_PPE$new(cobj=child)
			}
		} else {
			if (!is(value, "so_Bayesian_PPE")) {
				stop("object must be of type 'so_Bayesian_PPE'")
			}
			so_PrecisionPopulationEstimates_set_Bayesian(.self$.cobj, value$.cobj)
			so_Bayesian_PPE_ref(value$.cobj)
		}
	}
}

OtherMethod_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			child = so_PrecisionPopulationEstimates_get_OtherMethod(.self$.cobj)
			if (!isnull(child)) {
				so_OtherMethod_PPE_ref(child)
				so_OtherMethod_PPE$new(cobj=child)
			}
		} else {
			if (!is(value, "so_OtherMethod_PPE")) {
				stop("object must be of type 'so_OtherMethod_PPE'")
			}
			so_PrecisionPopulationEstimates_set_OtherMethod(.self$.cobj, value$.cobj)
			so_OtherMethod_PPE_ref(value$.cobj)
		}
	}
}

so_PrecisionPopulationEstimates = setRefClass("so_PrecisionPopulationEstimates",
	fields=list(
		MLE = MLE_acc,
		Bayesian = Bayesian_acc,
		OtherMethod = OtherMethod_acc,
		.cobj = "externalptr"
	),
	methods=list(
		copy = function() {
			copy = so_PrecisionPopulationEstimates_copy(.self$.cobj)
			so_PrecisionPopulationEstimates$new(cobj=copy)
		},
		initialize = function(cobj) {
			if (missing(cobj)) {
				.cobj <<- so_PrecisionPopulationEstimates_new()
			} else {
				.cobj <<- cobj
			}
		},
		finalize = function() {
			so_PrecisionPopulationEstimates_unref(.self$.cobj)
		}
	)
)

Try the libsoc package in your browser

Any scripts or data that you put into this service are public.

libsoc documentation built on Feb. 3, 2022, 5:07 p.m.