Lines Matching refs:BaseCountedInstance

32 class BaseCountedInstance {
34 explicit BaseCountedInstance(int x) : value_(x) { in BaseCountedInstance() function
38 BaseCountedInstance(const BaseCountedInstance& x) in BaseCountedInstance() function
44 BaseCountedInstance(BaseCountedInstance&& x) in BaseCountedInstance() function
50 ~BaseCountedInstance() { in ~BaseCountedInstance()
55 BaseCountedInstance& operator=(const BaseCountedInstance& x) {
63 BaseCountedInstance& operator=(BaseCountedInstance&& x) {
72 bool operator==(const BaseCountedInstance& x) const {
77 bool operator!=(const BaseCountedInstance& x) const {
82 bool operator<(const BaseCountedInstance& x) const {
87 bool operator>(const BaseCountedInstance& x) const {
92 bool operator<=(const BaseCountedInstance& x) const {
97 bool operator>=(const BaseCountedInstance& x) const {
102 absl::weak_ordering compare(const BaseCountedInstance& x) const { in compare()
116 const BaseCountedInstance& v) {
122 BaseCountedInstance& lhs, // NOLINT(runtime/references) in SwapImpl()
123 BaseCountedInstance& rhs) { // NOLINT(runtime/references) in SwapImpl()
127 ++BaseCountedInstance::num_swaps_; in SwapImpl()
163 : start_instances_(BaseCountedInstance::num_instances_), in InstanceTracker()
164 start_live_instances_(BaseCountedInstance::num_live_instances_) { in InstanceTracker()
176 return BaseCountedInstance::num_instances_ - start_instances_; in instances()
182 return BaseCountedInstance::num_live_instances_ - start_live_instances_; in live_instances()
187 int moves() const { return BaseCountedInstance::num_moves_ - start_moves_; } in moves()
192 return BaseCountedInstance::num_copies_ - start_copies_; in copies()
197 int swaps() const { return BaseCountedInstance::num_swaps_ - start_swaps_; } in swaps()
202 return BaseCountedInstance::num_comparisons_ - start_comparisons_; in comparisons()
210 start_moves_ = BaseCountedInstance::num_moves_; in ResetCopiesMovesSwaps()
211 start_copies_ = BaseCountedInstance::num_copies_; in ResetCopiesMovesSwaps()
212 start_swaps_ = BaseCountedInstance::num_swaps_; in ResetCopiesMovesSwaps()
213 start_comparisons_ = BaseCountedInstance::num_comparisons_; in ResetCopiesMovesSwaps()
226 class CopyableOnlyInstance : public BaseCountedInstance {
228 explicit CopyableOnlyInstance(int x) : BaseCountedInstance(x) {} in CopyableOnlyInstance()
233 BaseCountedInstance::SwapImpl(lhs, rhs); in swap()
240 class CopyableMovableInstance : public BaseCountedInstance {
242 explicit CopyableMovableInstance(int x) : BaseCountedInstance(x) {} in CopyableMovableInstance()
250 BaseCountedInstance::SwapImpl(lhs, rhs); in swap()
257 class MovableOnlyInstance : public BaseCountedInstance {
259 explicit MovableOnlyInstance(int x) : BaseCountedInstance(x) {} in MovableOnlyInstance()
264 BaseCountedInstance::SwapImpl(lhs, rhs); in swap()