Displaying 3 results from an estimated 3 matches for "member_begin".
2007 Jun 15
1
[LLVMdev] EquivalenceClasses: findValue vs. findLeader
Given an object o of ElemType in an instance of EquivalenceClasses, I need
to get a list of all members of the equivalence class that o is in. For
various reasons, it is easiest if I could get an EquivalenceClasses::iterator
that I can pass to member_begin and member_end.
So naturally, I did something like this (pseudo-C++):
EquivalenceClasses::iterator i = equiv.findValue(o);
for(equiv.member_begin(i); member_end(i); ++i) {
// Do stuff
}
Unfortunately, this doesn't seem to work. findValue returns an iterator that
is not end(), but the mem...
2007 May 09
0
[LLVMdev] EquivalenceClasses
...std::set container where all element of all classes are stored altogether.
Leader contains a pointer to the last element of the class. The idea is
similar to storing multiple linked lists in an array or in a vector. Leader
elements allow iterating through class elements only via
EquivalenceClasses::member_begin, member_end methods. Except of that there
is no difference between the leader and the rest members of an equivalence
class here.
These leaders doesn't relate to coset leaders or something, AFAIK. It's not
a mathematical notion there.
Say, for example, I want to create a set of equivalence...
2007 May 09
2
[LLVMdev] EquivalenceClasses
Can someone explain the terminology used in the Doxygen
comments for EquivalenceClasses? Specifically, what is
a "Leader" as opposed to other members of an equivalence
class?
Say, for example, I want to create a set of equivalence
classes to specify subset relationships. Imagine B is
a subset of A, C is a subset of B, E is a subset of D
and D has no relation to any other set. I'd