提交 d87bff44 编写于 作者: S superjom

code format

上级 64885033
......@@ -2,7 +2,7 @@
namespace visualdl {
namespace components {
namespace components {
template <typename T>
void components::Scalar<T>::AddRecord(int id, const std::vector<T> &values) {
......
......@@ -12,12 +12,15 @@ namespace components {
*/
template <typename T>
struct Scalar {
Scalar(Tablet tablet) : tablet_(tablet) { tablet_.SetType(Tablet::Type::kScalar);}
Scalar(Tablet tablet) : tablet_(tablet) {
tablet_.SetType(Tablet::Type::kScalar);
}
void SetCaption(const std::string cap) {
tablet_.SetCaptions(std::vector<std::string>({cap}));
}
void AddRecord(int id, const std::vector<T> &values);
void AddRecord(int id, const std::vector<T>& values);
private:
Tablet tablet_;
......@@ -33,7 +36,7 @@ struct ScalarReader {
std::vector<std::string> captions() const;
size_t size() const;
private:
private:
TabletReader reader_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册