Sha256: fb928a272cc0a3e0550d8812e376c9a6717deae1de6327171ed7b58d0f67773a

Contents?: true

Size: 591 Bytes

Versions: 10

Compression:

Stored size: 591 Bytes

Contents

#ifndef __CONSTRUCTORS_H__
#define __CONSTRUCTORS_H__

#include <string>

using namespace std;

namespace constructors {
  class DoubleStringHolder {
    private:
      std::string one, two;
    public:

      DoubleStringHolder(std::string one, std::string two) {
        this->one = one;
        this->two = two;
      }

      DoubleStringHolder() { }

      inline std::string getOne() {
        return this->one;
      }
      inline std::string getTwo() {
        return this->two;
      }
  };
  
  class PrivateConstructor {
    private:
      PrivateConstructor() {}
  };
}

#endif

Version data entries

10 entries across 10 versions & 1 rubygems

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