search for: slot

Displaying 20 results from an estimated 6448 matches for "slot".

2003 Jun 24
1
S4 method setClass prototype definition question
...ot a problem report -- I would like to ask for advise what the recommended and safe way to perform the following is or what problems might arise in doing it differently. The question is: What is the recommended way of providing a default value in a prototype statement for a derived class for a slot provided from a parent class? I have first consulted the methods package reference but am still unclear to as this point. The following is a bit length example + variations thereof taken from a real project. I would appreciate any comments and insights shared. Best regards, Matthias ##...
2014 Jun 26
2
[LLVMdev] -gcolumn-info and PR 14106
On Thu, Jun 26, 2014 at 3:39 PM, Robinson, Paul <Paul_Robinson at playstation.sony.com> wrote: > The main motivation for turning it off is that no known consumer (debugger) > took advantage of it. > > Turning it on does more than slightly increase the object file size, it can > cause the same source line to be listed multiple times in the .debug_line > table (with different
2009 Sep 15
2
S3 objects in S4 slots
Hello, I am the maintainer of the stringkernels package and have come across a problem with using S3 objects in my S4 classes. Specifically, I have an S4 class with a slot that takes a text corpus as a list of character vectors. tm (version 0.5) saves corpora as lists with a class attribute of c("VCorpus", "Corpus", "list"). I don't actually need the class-specific attributes, I only care about the list itself. Here's a simplifi...
2009 Jul 09
1
How to: initialize, setValidity, copy-constructor
Hello list, I'm having troubles setting up a basic calss hierarchy with S4. Here is a simplified schema of what I'd like to do: - Two classes: A and B that extends A - Ensure that the slots added by B are consistent with the slots of A - Let A initialize itself (I'm not supposed to know the internal cooking of A) - By default set the slots of B based on the slots that A initialized Another question is: what is the recommended way of implementing a copy-constructor in R? I kno...
2018 May 21
1
S4 class slot type S4 class
All, I am considering creating an S4 class whose slots (2) are both S4 classes. ?Since an S4 slot can be an S3 class I figure this can be done. ?However, the correct syntax of which I am unsure. ?Reviewing the docs I have come to the following conclusion: SetClass('myfoo', ? ? ? ? ? ? ? ? ? slots = (foo1, foo2)) Without a type I believe each...
2011 Feb 11
1
Extract a slot value from a 'SpatialPolygons' class object
Dear R-users, I’m currently trying to extract the value of a slot (area) but can’t find out how to do that. >str(overlperc) List of 1 $ :Formal class 'SpatialPolygons' [package "sp"] with 4 slots .. ..@ polygons :List of 1 .. .. ..$ :Formal class 'Polygons' [package "sp"] with 5 slots .. .. .. .. ..@ Polygons :Lis...
2007 Jul 12
0
No subject
</font> <ul class="D"> <li class="D_off">Two Available PCI Express x8 Slots</li> <li class="D_on">Two Available PCI Express x8 Low Profile Slots</li> <li class="D_off">One Available 64-bit/100MHz PCI-X slot</li> </ul> The list has already answered what goes in what slot so I won't repeat that. It is a 1U unit...
2018 Dec 12
0
[PATCH v2 03/18] drm/qxl: simplify slot management
Drop pointless indirection, remove the mem_slots array and index variables, drop dynamic allocation. Store memslots in qxl_device instead. Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> --- drivers/gpu/drm/qxl/qxl_drv.h | 15 +++++---- drivers/gpu/drm/qxl/qxl_kms.c | 72 +++++++++++++++++-------------------------- 2 files changed,...
2013 Dec 17
2
How to Position a Network Interface in Physical PCI Slot
Hi , I would like to assign a Network Interface card to Physical Slot X in the virtual machine, I have gone through the XML file definition[Now i have some idea on how to position the Network Interface in Logical PCI Slot.] I am NOT interested in using a PCI Pass-through from the Host. currently running Fedora 19 with libvirt 1.2.0 I would like to create an net...
2006 Jan 19
2
creating objects with a slot of class formula, using new
Hi, This works fine. >setClass("a",representation(b="list",c="list")) >new("a",b=list(7)) >An object of class "a" Slot "b": [[1]] [1] 7 Slot "c": list() But, now suppose you want a slot to accept an object of class formula... >setClass("a",representation(b="list",c="formula")) >new("a",b=list(7)) >Error in validObject(.Object) : invalid class...
2019 Sep 19
2
Should slot<-() alter its first argument?
We noticed that the slot<- function alters its first argument, which goes against the grain of a functional language. The similar @<- does not change its first argument. Is this intended? The timeSeries and distr package depend on this altering. > setClass("Z", rep=representation(x="character&qu...
2020 Feb 18
2
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
...t, everything acts as expected, however when I put the same code in the context of a package, selectMethod can no longer find the correct method. This first block below puts the code in the context of a package: fn <- "codefile.R" writeLines( c( "setClass('x', slots = list(slot ='character'))", "setClass('y', slots = list(slot ='character'))", "setClass('a', slots = list(slot ='character'))", "setClass('b', slots = list(slot ='character'))",...
2017 Oct 14
2
Bug in replaceUsesOfWith: does not keep addrspace consistent in GEP
...32Ty(), 1)}, NON_VAR_ARG), "f"); auto It = F->arg_begin(); Value *Arg = &*It; It++; Value *Arg2 = &*It; BasicBlock *Entry = BasicBlock::Create(ctx, "entry", F); Builder.SetInsertPoint(Entry); Instruction *Slot = nullptr;* if (SHOW_ERROR) { Slot = cast<Instruction>(Builder.CreateGEP(Arg, {Builder.getInt64(1)}, "slot")); errs() << "Slot(original): " << *Slot << "\n"; Slot->replaceUsesOfWith(Arg, Arg2); errs() <&l...
2010 Feb 11
4
when does 'dog' not equal 'dog'?
...s more a Ruby than a Rails question -- feel free to redirect me as appropriate -- but either this is a Ruby 1.9 bug or I have some serious misunderstanding. Essentially, I''ve caught the <=> operator returning nil -- not -1, 0, or 1, but nil. Schematically: class A attr_accessor :slot fun matches?(s) p "s <=> @slot = #{s <=> @slot}" return (s <=> @slot) == 0 end end Driven from a script, I get something like this: # Case 1: Notice that <=> evaluates to nil when it should eval to 0 a.slot = "dog" a.matches?("dog"...
2008 Mar 27
5
Problem with socket_process: Call rejected by 127.0.0.1: Busy
Hi I am not sure why this is happening or whether it has anything to do with my iaxmodem setup. When receiving a fax via iaxmodem, I got an error message saying *chan_iax2.c:7542 socket_process: Call rejected by 127.0.0.1: Busy*
2006 Sep 26
3
standardization of slot access
Hi, I'm usually confused about when to use 'slot' or '@'. I've frequently read that it's always preferable to use accessor functions, so I would think the '@' operator should be avoided. However, ?slot contains the following advise: "Generally, the only reason to use the functional form rather than the simpler...
2006 Dec 12
1
S4 'properties' - creating 'slot' functions?
...option (see option C below), is there a way to access the object with something like in C# or C++ where one would probably use the 'this' keyword or the 'me' keyword in VB from within the property?: A) MyObject@Property is static and must be handled carefully if it depends on other slots of the class. If one of the slots changes, then because this slot is static (containing only the value), it will not change to reflect the update. B) MyObject@Property is deprecated, and special accessor functions are used. The bio group seems to favor this option. So one would use: Property(MyOb...
2004 May 27
3
"privileged slots"
Hi all, in the help for RClassUtils I found the expression "privileged slots" in function "checkSlotAssignment" with the explanation: /privileged slots (those that can only be set by accesor functions defined along with the class itself)/ I thought all slots of a (not private) class can be a accessed by a user via the @ Operator. Is there a way to make...
2018 Jul 20
0
[PATCH RFC V4 3/3] KVM: X86: Adding skeleton for Memory ROE
This patch introduces a hypercall implemented for X86 that can assist against subset of kernel rootkits, it works by place readonly protection in shadow PTE. The end result protection is also kept in a bitmap for each kvm_memory_slot and is used as reference when updating SPTEs. The whole goal is to protect the guest kernel static data from modification if attacker is running from guest ring 0, for this reason there is no hypercall to revert effect of Memory ROE hypercall. This patch doesn't implement integrity check on gue...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...gle Root I/O Virtualization capability support. + */ + +#include <linux/ctype.h> +#include <linux/string.h> +#include <linux/pci.h> +#include <linux/pci_hotplug.h> +#include <linux/delay.h> +#include <asm/page.h> + +#include "pci.h" + + +#define PCI_IOV_SLOTNAME_LEN 24 + +#define notify(dev, event, id, param) ({ \ + dev->iov->cb ? dev->iov->cb(dev, event, id, param) : 0; \ +}) + + +struct virtfn_slot { + int id; + char name[PCI_IOV_SLOTNAME_LEN]; + struct pci_dev *dev; + struct list_head node; + struct hotplug_slot *slot; +}; + +static int...