search for: derivedclass

Displaying 7 results from an estimated 7 matches for "derivedclass".

2007 Mar 04
1
Problem using callNextMethod() in S4
...file "testS4.R": setClass("baseClass", representation(myname = "character", mydir = "character", "VIRTUAL"), prototype(myname = "", mydir = "") )#baseClass setClass("derivedClass", representation(mytitle = "character"), contains=c("baseClass"), prototype(mytitle = "") )#derivedClass setMethod("initialize", "baseClass", function(.Object, ...) { print("---initialize:baseClass---") # .Object <...
2017 Jul 31
2
RTTI with smart pointers
Hi, I would like to use std::shared_ptr in my pass. However I'm facing a problem wrt RTTI. If I have a code like: std::shared_ptr<BaseClass> x(new DerivedClass()); ... std::shared_ptr<DerivedClass> p = std::dynamic_pointer_cast<DerivedClass>(x); It does not compile since the default RTTI infrastructure is not used by LLVM. Also, it's not clear to me if the 'classof' approach works in this case (I did try it with no success). Is i...
2005 Sep 25
1
Prototype "classes" and inheritance
JavaScript doesn''t (yet) have a notion of classes. Prototype.js just adds a suitable convention for implementing them. It provides a way to create a new class by extending a base class using Object.extend, but it doesn''t handle method inheritance. There are ways of doing implementing this through traversing the chain of prototypes, but I''m not sure they are
2007 Mar 16
1
Problems with package containing S4 classes
...quot;shared library"? For another test package I get the following error coeurebooks-computer:/Volumes/CoreData/CRAN cs$ R CMD INSTALL -l ~/Library/R/library mytest_0.3.2.tar.gz * Installing *source* package 'mytest' ... ** R ** save image Error in setMethod("export", "derivedClass", export.derivedClass) : no existing definition for function "export" Error: unable to load R code in package 'mytest' Execution halted This error is even more strange since I cannot reproduce it in the attached package. What may be the reason for this error? Thank...
2007 Mar 15
3
Inherited S4 methods
Dear all, Recently, there was a question to use the same method for more than one class: https://stat.ethz.ch/pipermail/r-devel/2007-March/044809.html I have a variation of this question: Is it possible to use the same function name, e.g. "myfunction" in both, an S4 baseClass and derivedClass. The method "myfunction" in derivedCalss should extend the functionality defined in baseClass, analogously to C++ methods. If this is possible, does there exist an example? Best regards Christian _._._._._._._._._._._._._._._._ C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a V.i.e.n.n.a A.u.s.t.r....
2009 May 23
1
STI Problem
Hi, I''m having trouble with some STI Classes in a test. When I create a new Class of an STI derived base class the type column is not set. If I do object = DerivedClass.create!(params) then object[:type] == nil for some reason. Any ideas why this is so? I assumed rails takes care of setting the type column in STI (that''s what I read). Nico
2005 Aug 18
8
Extending a js class
It''s been a few days since I posted my last two emails (of which, no one replied to) so I''ve gone ahead and coded a working slider class as well as a ''resizeable'' class that allows a user to drag and resize the element. I also linked these two together as I want to have slider behavior that can resize the resizeable element. The end result is both the