MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / add

Method add

src/serializers/util.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace util;
26
27boost::shared_ptr<string_buffer::string_item> string_buffer::add(const std::string& s) {
28 boost::shared_ptr<string_item> i = boost::shared_ptr<string_item>(new string_item(s));
29 items.push_back(i);
30 return i;
31}
32boost::shared_ptr<string_buffer::float_item> string_buffer::add(const double& d) {
33 boost::shared_ptr<float_item> i = boost::shared_ptr<float_item>(new float_item(d));
34 items.push_back(i);

Calls 1

push_backMethod · 0.80