search for: baseclass

Displaying 20 results from an estimated 54 matches for "baseclass".

2007 Mar 31
1
Problem with S4 inheritance: unexpected re-initialization?
Dear all, To explain my problem I am attaching a demonstration package "myclasspkg": I have the following two S4 classes with similar inheritance: SubSubClassA <- SubClassB <- BaseClass SubSubClassB <- SubClassB <- BaseClass In R I am calling the following functions: > library(myclasspkg) > subA <- new("SubClassA",filename="OutSubA",filedir="/Volumes/CoreData/CRAN/Workspaces/rclasspkg",mytitle="TitleSubA") > subsubA...
2004 May 21
0
Failure to preserve package attribute when coercing S4 objects (PR#6904)
...rived class has no additional slots. This is a problem because the 'new' function relies on the exact identity of the class, including the package attribute. This can clearly be worked around by the introduction of dummy slots, but it took me some time to track down. > setClass("baseClass",representation(a="numeric")) [1] "baseClass" > setClass("fancyClass",contains="baseClass") [1] "fancyClass" > setClass("fancyClassExtraSlots",representation(b="numeric"),contains="baseCl ass") [1] "fanc...
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"), prototype(myname = "", mydir = "") )#baseClass setClass("derivedClass", representation(mytitle = &quo...
2006 Mar 31
6
Split Validations?
I have a single table that two people enter data into. Person A creates the record and I need to specify certain required fields in his form. Person B has a separate form and she fills in additional fields and I need to specify that some of these are required. Since the data is all in one table and since the validations are in the model, won''t Rails complain when person A tries to
2010 Jun 04
5
[LLVMdev] Speculative phi elimination at the top of a loop?
...st round of the loop. Here is an example. Let me have a simple loop bb.i, calling a C++ inner class virtual method in SSA: --------- define void @test() { entry: %0 = alloca %struct.Foo, align 8 br label %bb.i bb.i: %1 = phi %struct.Foo* [ %11, %bb.i ], [ %0, %entry ] %t = phi %struct.Baseclass* [ %5, %bb.i ], [ getelementptr inbounds (%struct.Bar* @_Const, i64 0, i32 0), %entry ] %2 = getelementptr inbounds %struct.Baseclass* %t, i64 0, i32 1 %3 = load %struct.Innerclass** %2, align 8 %4 = getelementptr inbounds %struct.Innerclass* %3, i64 0, i32 1 %5 = load %struct.Baseclass** %...
2011 May 18
0
[LLVMdev] 2.9 pass manager asserts "Unable to handle Pass that requires lower level Analysis pass"
Hi, I am trying to write an LLVM project, using LLVM 2.9. My passes are defined as follows, where the Pass2 requires Pass1. namespace llvm { class BaseClass : public ModulePass { // Name for printing const char* printname; protected: BaseClass(char id, const char* name) : ModulePass(id),printname(name){ } }; class Pass1 : public BaseClass { public: static char ID; Pass1() : BaseClass(ID, "pass1") { } ~Pass1() { releaseMemor...
2008 Jun 06
8
useradd provider not working?
....master": ensure => absent } file {"/etc/auto.misc": ensure => absent } file {"/etc/init.d/autofs": ensure => absent } running on CentOS5 9which uses "useradd" but I see this in the logs: Jun 6 12:22:12 lxp6d4m3 puppetd[25216]: (//Node[default]/baseclass/ baseline/User[rpcuser]) Failed to retrieve current state of resource: Provider useradd is not functional on this platform Jun 6 12:22:12 lxp6d4m3 puppetd[25216]: (//Node[default]/baseclass/ baseline/User[rpc]) Failed to retrieve current state of resource: Provider useradd is not functional on thi...
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...
2010 Jun 30
2
[LLVMdev] [HEADSUP] Another attempt at CallInst operand rotation
...oid > method (Instruction * I) { > I->getOperand(2); > ... > } > > void method2 (CallInst * CI) { > method (CI); > ... > } > > Will method() still work when you make CallInst::getOperand() private? This is the case where I cannot help you (access via baseclass pointer). For all these cases (there were a few in the llvm codebase too) I got - either assertion failures in the test suite - or obvious crashes - or miscompilations. To catch all of these I could publish a patch (but not check it in) that asserts that User::getOperand is not called on a...
2003 Jan 17
2
Methods package is now attached by default
...s is doing a workaround of the fact that not all objects had a class before. The best solution is usually to ask what the code really wants to do. If you do have to retain exactly the old behavior, one solution is to copy the version of class and class<- from the base package and use those (as baseClass and baseClass<-, e.g.) instead of class and class<-). - the function plot has arguments (x,y,...) (to allow methods for the y-axis argument) instead of (x, ...) in package base. S3-style plot methods are still dispatched, but there are possible incompatibilities from calls to plot() with _u...
2010 May 03
2
[LLVMdev] `make check' failures in r102924
...ontendC++/2010-02-17-DbgArtificialArg.cpp -o - | /bin/grep DW_TAG_pointer_type | /bin/grep "i32 524303, metadata .., metadata ..., metadata .., i32 ., i64 .., i64 .., i64 0, i32 64, metadata ..." child process exited abnormally FAIL: /usr/local/src/llvm/test/FrontendC++/2010-03-22-empty-baseclass.cpp Failed with exit(1) at line 1 while running: /usr/local/llvm-gcc4.2-2.7-x86_64-linux/bin/llvm-gcc -emit-llvm -w -S -emit-llvm /usr/local/src/llvm/test/FrontendC++/2010-03-22-empty-baseclass.cpp -o - -O2 | FileCheck /usr/local/src/llvm/test/FrontendC++/2010-03-22-empty-baseclass.cpp /usr/local...
2008 Jan 23
6
sharing specs in a subclass
Hi I''ve spec''d a class and they pass. Now I''d like to assure that any subclass of this class also passes the same specs. Any suggestions for a clever way to handle this? I''d prefer to keep the existing specs as is (eg instead of moving everything into shared behaviors, or doing something to all the ''describe'' lines) thanks linoj
2008 Jun 02
0
cpan package provider
...be debug: Calling fileserver.describe debug: Calling fileserver.describe debug: Calling fileserver.describe debug: Puppet::Type::Package::ProviderCpan: Executing ''/usr/bin/perl -MCPAN -e ''CPAN::Shell->i("Bundle::Net::LDAP")'''' debug: //Node[default]/baseclass/darwin/ldapup/Package[Bundle::Net::LDAP]: Changing ensure debug: //Node[default]/baseclass/darwin/ldapup/Package[Bundle::Net::LDAP]: 1 change(s) debug: Package[Bundle::Net::LDAP](provider=cpan): Executing ''/usr/bin/perl -MCPAN -e ''CPAN::Shell->install("Bundle::Net::LDA...
2010 Jun 30
4
[LLVMdev] [HEADSUP] Another attempt at CallInst operand rotation
...rgOperand* versions. This will be well-commented in the header, explaining the recommended way of accessing arguments. At this point we will have caught 99% of all low-level clients out there. What uncertainties will remain? I can think of two of them: o getOperandNo() o access via baseclass pointer The former is a method on Value::use_iterator and I cannot see a way to intercept it at compile-time. The latter is always possible and does circumvent the above measures, there is no remedy against it. I plan to fire each of these two rounds with one week delay and monitor the LLVM maili...
2010 Jul 01
0
[LLVMdev] [HEADSUP] Another attempt at CallInst operand rotation
...d(2); >> ... >> } >> >> void method2 (CallInst * CI) { >> method (CI); >> ... >> } >> >> Will method() still work when you make CallInst::getOperand() private? >> > > This is the case where I cannot help you (access via baseclass pointer). > > For all these cases (there were a few in the llvm codebase too) I got > - either assertion failures in the test suite > - or obvious crashes > - or miscompilations. > > To catch all of these I could publish a patch (but not check it in) > that asser...
2012 Jan 20
9
client not getting updates no error message
...|-- file | | `-- manifests | | `-- init.pp | `-- networking | |-- files | | `-- resolv.conf | `-- manifests | `-- init.pp `-- puppet.conf 8 directories, 9 files [root@PROXY-03 puppet]# cat manifests/nodes.pp node ''basenode'' { include baseclass } node ''PROXY-02.carnation.in'' inherits basenode { } [root@PROXY-03 puppet]# cat manifests/sites.pp import "nodes" import "templates" filebucket { main: server => puppet } [root@PROXY-03 puppet]# cat manifests/templates.pp class baseclass { inclu...
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...
2012 May 09
2
[LLVMdev] instructions requiring specific physical registers for operands
...add R0)>; def GPRr1 : RegisterClass<"FOO", [i32], 32, (add R1)>; def GPRr2 : RegisterClass<"FOO", [i32], 32, (add R2)>; The an instruction that uses R0 and R1 as fixed input registers and R2 for output could define itself using those register classs: def myInst : baseclass<…, (outs GPRr2:$dst), (ins GPRr0:$src1, GPRr1:$src2), …> Use those reg classes in pattern to match also, and things should just work. The register allocator can take care of any reg-to-reg copies that are required. -Jim
2010 Jun 30
0
[LLVMdev] [HEADSUP] Another attempt at CallInst operand rotation
...... } Will method() still work when you make CallInst::getOperand() private? -- John T. > At this point we will have caught 99% of all low-level clients out > there. > > What uncertainties will remain? I can think of two of them: > > o getOperandNo() > o access via baseclass pointer > > The former is a method on Value::use_iterator and I cannot see a way to > intercept it at compile-time. > The latter is always possible and does circumvent the above measures, > there is no remedy against it. > > I plan to fire each of these two rounds with one week...
2010 Oct 27
3
Module names - limitations / reserved words?
Greeting, I''m attempting to solve a mystery we had with a puppet module we couldn''t get to auto load. The module named / folder was called "nfs" We notice when we ran ''puppetmasterd --no-daemonize --verbose'' that when the client connected that our ''nfs'' module was not being auto loaded. We reviewed and triple checked our syntax.