• Home
  • Raw
  • Download

Lines Matching full:from

38     void Relate(RelIndex from, RelIndex to)  in Relate()  argument
40 ASSERT(from < Direct_.size()); in Relate()
42 Inverse_[to].Insert(from); in Relate()
43 Inverse_[to] |= Inverse_[from]; in Relate()
44 Direct_[from].Insert(to); in Relate()
45 Direct_[from] |= Direct_[to]; in Relate()
48 Inverse_[dst].Insert(from); in Relate()
49 Inverse_[dst] |= Inverse_[from]; in Relate()
52 Inverse_[from].ForAll([&](RelIndex src) { in Relate()
89 void ForAllFrom(RelIndex from, Handler &&handler) const in ForAllFrom() argument
91 ASSERT(from < Direct_.size()); in ForAllFrom()
92 Direct_[from].ForAll(handler); in ForAllFrom()
103 void ForAllBetween(RelIndex from, RelIndex to, Handler &&handler) const in ForAllBetween() argument
105 if (IsInInverseRelation(from, to)) { in ForAllBetween()
107 to = from; in ForAllBetween()
108 from = tmp; in ForAllBetween()
110 auto stream = Direct_[from].LazyIntersect(Inverse_[to]); in ForAllBetween()
120 bool IsInDirectRelation(RelIndex from, RelIndex to) const in IsInDirectRelation() argument
122 return from < Direct_.size() && Direct_[from].Contains(to); in IsInDirectRelation()
125 bool IsInInverseRelation(RelIndex from, RelIndex to) const in IsInInverseRelation() argument
127 return from < Inverse_.size() && Inverse_[from].Contains(to); in IsInInverseRelation()
130 bool IsInAnyRelation(RelIndex from, RelIndex to) const in IsInAnyRelation() argument
132 return IsInDirectRelation(from, to) || IsInInverseRelation(from, to); in IsInAnyRelation()
135 bool IsInIsoRelation(RelIndex from, RelIndex to) const in IsInIsoRelation() argument
137 return IsInDirectRelation(from, to) && IsInInverseRelation(from, to); in IsInIsoRelation()
140 const IntSet<RelIndex> &GetDirectlyRelated(RelIndex from) const in GetDirectlyRelated() argument
142 return Direct_[from]; in GetDirectlyRelated()