Displaying 6 results from an estimated 6 matches similar to: "Prototype "classes" and inheritance"
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
2007 Mar 04
1
Problem using callNextMethod() in S4
Dear all,
Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I
have problems
using function callNextMethod() in method initialize.
I am loading the following code as file "testS4.R":
setClass("baseClass",
representation(myname = "character",
mydir = "character",
"VIRTUAL"),
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
2007 Mar 16
1
Problems with package containing S4 classes
Dear all,
Currently, I am trying to create a test package "testS4" using S4 classes,
which I am attaching.
Running R CMD check gives the following error:
coeurebooks-computer:/Volumes/CoreData/CRAN cs$ R CMD check
testS4_0.1.1.tar.gz
* checking for working latex ...sh: line 1: latex: command not found
NO
* using log directory '/Volumes/CoreData/CRAN/testS4.Rcheck'
* using R
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
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