| 4086 | }; |
| 4087 | template<typename C> |
| 4088 | struct BoundNullaryMethod : IArgFunction<C>{ |
| 4089 | BoundNullaryMethod( void (C::*_member)() ) : member( _member ) {} |
| 4090 | virtual void set( C& p, std::string const& stringValue ) const { |
| 4091 | bool value; |
| 4092 | convertInto( stringValue, value ); |
| 4093 | if( value ) |
| 4094 | (p.*member)(); |
| 4095 | } |
| 4096 | virtual void setFlag( C& p ) const { |
| 4097 | (p.*member)(); |
| 4098 | } |
| 4099 | virtual bool takesArg() const { return false; } |
| 4100 | virtual IArgFunction<C>* clone() const { return new BoundNullaryMethod( *this ); } |
| 4101 | void (C::*member)(); |
| 4102 | }; |
| 4103 | |
| 4104 | template<typename C> |
| 4105 | struct BoundUnaryFunction : IArgFunction<C>{ |
nothing calls this directly
no outgoing calls
no test coverage detected