6 #ifndef TURI_UNITY_GL_GFRAME_HPP 7 #define TURI_UNITY_GL_GFRAME_HPP 9 #include "gl_sframe.hpp" 17 enum class gframe_type_enum:int {VERTEX_GFRAME, EDGE_GFRAME};
40 operator std::shared_ptr<unity_sframe>()
const;
41 operator std::shared_ptr<unity_sframe_base>()
const;
51 size_t size()
const override;
58 size_t num_columns()
const override;
68 std::vector<std::string> column_names()
const override;
78 std::vector<flex_type_enum> column_types()
const override;
91 void add_column(
const flexible_type& data,
const std::string& name)
override;
104 void add_column(
const gl_sarray& data,
const std::string& name)
override;
111 void add_columns(
const gl_sframe& data)
override;
123 void remove_column(
const std::string& name)
override;
133 void rename(
const std::map<std::string, std::string>& old_to_new_names)
override;
138 void swap_columns(
const std::string& column_1,
const std::string& column_2)
override;
140 virtual std::shared_ptr<unity_sframe> get_proxy()
const override;
144 gframe_type_enum m_gframe_type;