• Home
  • Raw
  • Download

Lines Matching full:to

9  * Unless required by applicable law or agreed to in writing, software
38 void Relate(RelIndex from, RelIndex to) in Relate() argument
41 ASSERT(to < Inverse_.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()
47 Direct_[to].ForAll([&](RelIndex dst) { in Relate()
53 Direct_[src].Insert(to); in Relate()
54 Direct_[src] |= Direct_[to]; in Relate()
96 void ForAllTo(RelIndex to, Handler &&handler) const in ForAllTo() argument
98 ASSERT(to < Inverse_.size()); in ForAllTo()
99 Inverse_[to].ForAll(handler); in ForAllTo()
103 void ForAllBetween(RelIndex from, RelIndex to, Handler &&handler) const in ForAllBetween() argument
105 if (IsInInverseRelation(from, to)) { in ForAllBetween()
106 auto tmp = to; in ForAllBetween()
107 to = from; 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()
145 const IntSet<RelIndex> &GetInverselyRelated(RelIndex to) const in GetInverselyRelated() argument
147 return Inverse_[to]; in GetInverselyRelated()