Displaying 5 results from an estimated 5 matches for "aobj".
2009 Jul 09
1
How to: initialize, setValidity, copy-constructor
...lid value
.Object <- callNextMethod(.Object, ...)
# now deal with the class B part of the object
cat("*** Test missing b ***\n")
if( missing(b) ){
cat("*** b is MISSING ***\n")
b <- .Object at a
}
# set slot b
.Object at b <- b
.Object
}
)
### Testing
# empty A: OK
aObj <- new('A')
aObj
# class A with some data: OK
aObj <- new('A', a=c(1,2) )
aObj
# empty B: OK
bObj <- new('B')
bObj
# initialize B setting the slot of class A: ERROR
bObj <- new('B', a=c(1,2))
# initialize B setting only the slot class B: OK!! Whereas...
2006 Mar 15
1
push_with_attributes not inserting default values
I have a join table A_B with columns[a_id, b_id, c_data default 1,
d_data default 1].
If I do:
@aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0})
I find that the row inserted, has d_data set to 0 and not the default
value specified in the database, which is 1. So I am having to
explicitly set it using :
@aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0, :d_data => 1}).
Is this a...
2006 May 04
0
Complement set association to has_many/through?
...ve an association unprocessed_bs in A,
which holds all Bs that _aren''t_ in processed_bs. I can write a method
in A that returns all those objects as a list (using
B.find(:all,:conditions)), but that''s an assymetric and not very
pleasing solution. For example it means that I can to
aobj.processed_bs.count but not aobj.unprocessed_bs.count. Which is
clearly ugly.
I''ve tried playing around with feeding various variants of :select and
:finder_sql to the has_many declaration, but so far only produced lots
of different tracebacks. I''ve also got this ugly feeling that...
2019 Jun 05
2
Question about a AA result and its use in Dependence Analysis
...ying object locations, etc.
MemoryLocation LocAS(LocA.Ptr, LocationSize::unknown(), LocA.AATags);
MemoryLocation LocBS(LocB.Ptr, LocationSize::unknown(), LocB.AATags);
if (AA->alias(LocAS, LocBS) == NoAlias)
return NoAlias;
// Check the underlying objects are the same
const Value *AObj = GetUnderlyingObject(LocA.Ptr, DL);
const Value *BObj = GetUnderlyingObject(LocB.Ptr, DL);
// If the underlying objects are the same, they must alias
if (AObj == BObj)
return MustAlias;
// We may have hit the recursion limit for underlying objects, or have
// underlying objects whe...
2019 Jun 03
2
Question about a AA result and its use in Dependence Analysis
Alias analysis is figuring out the relationship between two pointer expressions, at some location in the program. At a given point in the program, do two expressions always refer to the same location? At a given point in the program, do two expressions never refer to the same location?
AliasAnalysis::alias() doesn't explicitly take a "point" in the program because we don't