Sha256: 00da511b108779ca1d78d9652bcfddede595ff591190ea07e6a97b20795f70f3

Contents?: true

Size: 924 Bytes

Versions: 16

Compression:

Stored size: 924 Bytes

Contents

#include <internal/values/config_null.hpp>
#include <boost/blank.hpp>

using namespace std;

namespace hocon {

    config_null::config_null(shared_origin origin) :
            config_value(move(origin)) { }

    config_value::type config_null::value_type() const {
        return config_value::type::CONFIG_NULL;
    }

    string config_null::transform_to_string() const {
        return "null";
    }

    shared_value config_null::new_copy(shared_origin origin) const {
        return make_shared<config_null>(move(origin));
    }

    unwrapped_value config_null::unwrapped() const {
        return boost::blank();
    }

    bool config_null::operator==(config_value const& other) const {
        return dynamic_cast<config_null const*>(&other);
    }

    void config_null::render(string& result, int indent, bool at_root, config_render_options options) const {
        result += "null";
    }

}  // namespace hocon

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.12.1.cfacter.20181031 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.11.6.cfacter.20181031 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.12.1.cfacter.20181023 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.11.5.cfacter.20181022 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.12.0.cfacter.20181004 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.12.0.cfacter.20181001 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.12.0.cfacter.20180918 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.11.4.cfacter.20180821 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.11.3.cfacter.20180716 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.11.2.cfacter.20180612 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.9.6.cfacter.20180612 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.11.2.cfacter.20180606 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.9.6.cfacter.20180606 ext/facter/cpp-hocon/lib/src/values/config_null.cc
facter-3.11.0.cfacter.20180319 ext/facter/cpp-hocon/lib/src/values/config_null.cc
cfacter-3.11.0.rc.20180314 ext/facter/cpp-hocon/lib/src/values/config_null.cc