search for: slots

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

Did you mean: slot
2003 Jun 24
1
S4 method setClass prototype definition question
Dear list, this is not 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
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
...type list, it would "fit" into an object slot requiring a list, irrespective of S3 class attributes. The only thing I can think of is a manual solution removing the class attribute. Is there a way to define lists with S3 class attributes such that they are accepted as lists in S4 object slots? Or any other ways to solve this? Thanks in advance Best Regards Martin
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 know...
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 :List of 1 .. .. .. .. .. ..$ :Formal class 'Polygon' [package "sp"] with 5 slots .. .. .. .. .. .. .. ..@ labpt : num [1:2] 709374 -15...
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, 3...
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 network interface card on
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"))
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")) > z <- new("Z", x="orig") > `@<-`(z,
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
Hello, Calling `replaceUsesOfWith` with a value in a different addrspace does not keep the addrspace of a GEP consistent. Is this known? Is this a bug or expected behaviour? Minimal counterexample link <https://gist.github.com/bollu/152ba5e1c20c03c7fc6d8c7b23ba828f> Reproduced here: #include <iostream> #include "llvm/ADT/APFloat.h" #include
2010 Feb 11
4
when does 'dog' not equal 'dog'?
This is 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
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 operator is _because_ the slot name has to
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(MyObj...
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 a...
2018 Jul 20
0
[PATCH RFC V4 3/3] KVM: X86: Adding skeleton for Memory ROE
...n, + false, &data); spin_unlock(&kvm->mmu_lock); /* - * kvm_mmu_slot_remove_write_access() and kvm_vm_ioctl_get_dirty_log() + * kvm_mmu_slot_apply_write_access() and kvm_vm_ioctl_get_dirty_log() * which do tlb flush out of mmu-lock should be serialized by * kvm->slots_lock otherwise tlb flush would be missed. */ @@ -5301,7 +5351,7 @@ void kvm_mmu_slot_largepage_remove_write_access(struct kvm *kvm, false, NULL); spin_unlock(&kvm->mmu_lock); - /* see kvm_mmu_slot_remove_write_access */ + /* see kvm_mmu_slot_apply_write_access*/ lockdep_assert...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...*/ + int align; /* page size used to map memory space */ + int maxbus; /* max number of buses required by VFs */ + u16 total; /* number of VFs associated with the PF */ + u16 offset; /* first VF Routing ID offset */ + u16 stride; /* following VF stride */ + struct list_head slot; /* list of VF slots */ + int (*cb)(struct pci_dev *, int, int, char *); /* event callback */ +}; + +#ifdef CONFIG_PCI_IOV +extern int pci_iov_init(struct pci_dev *dev); +extern void pci_iov_release(struct pci_dev *dev); +extern int pci_iov_bus_range(struct pci_bus *bus); +extern int pci_iov_resource_align(struct pci_d...