Lines Matching refs:Cardinality
51 // 2. a factory function that creates a Cardinality object from a
56 // management as Cardinality objects can now be copied like plain values.
78 // A Cardinality is a copyable and IMMUTABLE (except by assignment)
80 // be called. The implementation of Cardinality is just a linked_ptr
82 // Don't inherit from Cardinality!
83 class GTEST_API_ Cardinality {
85 // Constructs a null cardinality. Needed for storing Cardinality
87 Cardinality() {}
89 // Constructs a Cardinality from its implementation.
90 explicit Cardinality(const CardinalityInterface* impl) : impl_(impl) {}
126 GTEST_API_ Cardinality AtLeast(int n);
129 GTEST_API_ Cardinality AtMost(int n);
132 GTEST_API_ Cardinality AnyNumber();
135 GTEST_API_ Cardinality Between(int min, int max);
138 GTEST_API_ Cardinality Exactly(int n);
141 inline Cardinality MakeCardinality(const CardinalityInterface* c) {
142 return Cardinality(c);