Lines Matching refs:ClusterId
37 class ClusterId {
39 static ClusterId noise() { return ClusterId(kNoise); } in noise()
40 static ClusterId error() { return ClusterId(kError); } in error()
41 static ClusterId makeValid(size_t Id, bool IsUnstable = false) {
42 return ClusterId(Id, IsUnstable);
44 static ClusterId makeValidUnstable(size_t Id) { in makeValidUnstable()
48 ClusterId() : Id_(kUndef), IsUnstable_(false) {} in ClusterId() function
51 bool operator==(const ClusterId &O) const { return Id_ == O.Id_; }
52 bool operator<(const ClusterId &O) const { return Id_ < O.Id_; }
67 ClusterId(size_t Id, bool IsUnstable = false)
79 static_assert(sizeof(ClusterId) == sizeof(size_t), "should be a bit field.");
83 explicit Cluster(const ClusterId &Id) : Id(Id) {} in Cluster()
85 const ClusterId Id;
90 ClusterId getClusterIdForPoint(size_t P) const { in getClusterIdForPoint()
96 const Cluster &getCluster(ClusterId Id) const { in getCluster()
143 std::vector<ClusterId> ClusterIdForPoint_;