Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 26ffa58e5f
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (23 sloc) 0.648 kb
#include "json-me.hpp"
namespace jsonme {
Scalar::Scalar():mScalar(new NullScalar()){}
Scalar::Scalar(AbstractScalar *scalar):mScalar(scalar){}
jsonme::scalartype Scalar::scalartype() const {
return mScalar->scalartype();
}
Scalar::operator long double() const {
return (*mScalar);
}
Scalar::operator long long() const {
return (*mScalar);
}
Scalar::operator std::string() const {
return (*mScalar);
}
Scalar::operator bool() const {
return (*mScalar);
}
bool Scalar::isNull() const {
return mScalar->isNull();
}
}
Jump to Line
Something went wrong with that request. Please try again.