Lines Matching defs:const

58 //      const FooAction*.
124 // default value for T and const T.
126 class BuiltInDefaultValue<const T> {
254 const T value_;
265 const FactoryFunction factory_;
335 // Performs the action. This method is not const, as in general an
339 virtual Result Perform(const ArgumentTuple& args) = 0;
348 // linked_ptr to const ActionInterface<T>, so copying is fairly cheap.
369 Action(const Action& action) : impl_(action.impl_) {}
376 explicit Action(const Action<Func>& action);
379 bool IsDoDefault() const { return impl_.get() == NULL; }
381 // Performs the action. Note that this method is const even though
383 // is that a const Action<F> means that it cannot be re-bound to
385 // cannot change state. (Think of the difference between a const
386 // pointer and a pointer to const.)
387 Result Perform(const ArgumentTuple& args) const {
415 // Result Perform(const ArgumentTuple& args) const {
429 explicit PolymorphicAction(const Impl& impl) : impl_(impl) {}
432 operator Action<F>() const {
443 explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {}
445 virtual Result Perform(const ArgumentTuple& args) {
475 inline PolymorphicAction<Impl> MakePolymorphicAction(const Impl& impl) {
489 explicit ActionAdaptor(const Action<F2>& from) : impl_(from.impl_) {}
491 virtual Result Perform(const ArgumentTuple& args) {
496 const internal::linked_ptr<ActionInterface<F2> > impl_;
537 // 'value' is passed by value instead of by const reference in order
544 operator Action<F>() const {
575 explicit Impl(const linked_ptr<R>& value)
579 virtual Result Perform(const ArgumentTuple&) { return value_; }
600 explicit Impl(const linked_ptr<R>& wrapper)
603 virtual Result Perform(const ArgumentTuple&) {
612 const linked_ptr<R> wrapper_;
617 const linked_ptr<R> value_;
629 static Result Perform(const ArgumentTuple&) {
645 static void Perform(const ArgumentTuple&) {
662 operator Action<F>() const {
682 virtual Result Perform(const ArgumentTuple&) {
705 explicit ReturnRefOfCopyAction(const T& value) : value_(value) {} // NOLINT
710 operator Action<F>() const {
729 explicit Impl(const T& value) : value_(value) {} // NOLINT
731 virtual Result Perform(const ArgumentTuple&) {
741 const T value_;
752 operator Action<F>() const { return Action<F>(NULL); }
763 void Perform(const ArgumentTuple& /* args */) const {
768 T1* const ptr_;
769 const T2 value_;
785 Result Perform(const ArgumentTuple& /* args */) const {
791 const int errno_;
792 const T result_;
808 explicit SetArgumentPointeeAction(const A& value) : value_(value) {}
811 void Perform(const ArgumentTuple& args) const {
817 const A value_;
829 explicit SetArgumentPointeeAction(const Proto& proto) : proto_(new Proto) {
834 void Perform(const ArgumentTuple& args) const {
840 const internal::linked_ptr<Proto> proto_;
861 Result Perform(const ArgumentTuple&) { return function_impl_(); }
877 Result Perform(const ArgumentTuple&) const {
882 Class* const obj_ptr_;
883 const MethodPtr method_ptr_;
892 explicit IgnoreResultAction(const A& action) : action_(action) {}
895 operator Action<F>() const {
919 explicit Impl(const A& action) : action_(action) {}
921 virtual void Perform(const ArgumentTuple& args) {
932 const Action<OriginalFunction> action_;
937 const A action_;
943 // which can be either const or not. It can be explicitly converted
957 operator T&() const { return *pointer_; }
964 void PrintTo(const ReferenceWrapper<T>& ref, ::std::ostream* os) {
980 operator Action<F>() const {
993 Impl(const Action<VoidResult>& action1, const Action<F>& action2)
996 virtual Result Perform(const ArgumentTuple& args) {
1002 const Action<VoidResult> action1_;
1003 const Action<F> action2_;
1020 // MOCK_METHOD3(Foo, double(const string& label, double x, double y));
1025 // double DistanceToOriginWithLabel(const string& label, double x, double y) {
1054 Action<To>::Action(const Action<From>& from)
1058 // instead of const reference - otherwise Return("string literal")
1085 inline internal::ReturnRefOfCopyAction<R> ReturnRefOfCopy(const R& x) {
1109 SetArgPointee(const T& x) {
1120 internal::SetArgumentPointeeAction<N, const char*, false> >
1121 SetArgPointee(const char* p) {
1123 N, const char*, false>(p));
1128 internal::SetArgumentPointeeAction<N, const wchar_t*, false> >
1129 SetArgPointee(const wchar_t* p) {
1131 N, const wchar_t*, false>(p));
1140 SetArgumentPointee(const T& x) {
1187 inline internal::IgnoreResultAction<A> IgnoreResult(const A& an_action) {
1194 // would wrap a Derived&. If you want to wrap a const Base& instead,
1197 // ByRef<const Base>(derived)