Download testbed/TileDB-Inc__TileDB-Py/tiledb/cc/object.cc from hc99/FEA-Bench: direct link, hf CLI and curl.
- Browser
- Download file 945 Bytes
-
https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/TileDB-Inc__TileDB-Py/tiledb/cc/object.cc
- Command line
-
hf download hf://datasets/hc99/FEA-Bench/testbed/TileDB-Inc__TileDB-Py/tiledb/cc/object.cc
-
curl -L -o object.cc https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/TileDB-Inc__TileDB-Py/tiledb/cc/object.cc
945 Bytes
| namespace libtiledbcpp { | |
| using namespace tiledb; | |
| using namespace tiledbpy::common; | |
| namespace py = pybind11; | |
| void init_object(py::module &m) { | |
| py::class_<Object>(m, "Object") | |
| .def(py::init<const Object::Type &, const std::string &, | |
| const std::optional<std::string> &>()) | |
| .def(py::init<tiledb_object_t, const std::string &, | |
| const std::optional<std::string> &>()) | |
| .def_property_readonly("_type", &Object::type) | |
| .def_property_readonly("_uri", &Object::uri) | |
| .def_property_readonly("_name", &Object::name) | |
| .def("__repr__", &Object::to_str) | |
| .def_static("_object", &Object::object) | |
| .def_static("_remove", &Object::remove) | |
| .def_static("_move", &Object::move); | |
| } | |
| } // namespace libtiledbcpp | |