Sha256: 8c4d1e145d9dc54bc6f9e1719070ff19cd0b8e21fba3a16e9a2c3a0cae12d01e

Contents?: true

Size: 374 Bytes

Versions: 11

Compression:

Stored size: 374 Bytes

Contents

#ifndef __COMPLEX_H__
#define __COMPLEX_H__

namespace complex {
  class SmallInteger {
  private:
    int i;
  public:
    SmallInteger(int i) {
      this->i = i;
    }
    int getI() {
      return this->i;
    }
  };
  
  class Multiply {
    public:
    static int multiply(SmallInteger *i, SmallInteger *i2) {
      return i->getI() * i2->getI();
    }
  };
}

#endif

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 test/headers/complex_static_methods.h
rbplusplus-1.3.0 test/headers/complex_static_methods.h
rbplusplus-1.2.1 test/headers/complex_static_methods.h
rbplusplus-1.2.0 test/headers/complex_static_methods.h
rbplusplus-1.1.0 test/headers/complex_static_methods.h
rbplusplus-1.0.3 test/headers/complex_static_methods.h
rbplusplus-1.0.1 test/headers/complex_static_methods.h
rbplusplus-1.0 test/headers/complex_static_methods.h
rbplusplus-0.9.1 test/headers/complex_static_methods.h
rbplusplus-0.9 test/headers/complex_static_methods.h
rbplusplus-0.8 test/headers/complex_static_methods.h