MCPcopy Create free account
hub / github.com/FidoProject/Fido / BoundNullaryMethod

Class BoundNullaryMethod

tests/catch.h:4088–4102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected