🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::ValueView类 参考

#include <ValueView.hpp>

Public 类型

using SplitterType = Splitter<ByCommaAndRepeatedWhitespace, SkipBracket>
 

Public 成员函数

 ValueView (StringView value)
 
 ValueView (const char *value)
 
 ValueView (const std::string &value)
 
 ValueView (const GenericValue &value)
 
const StringViewvalue () const
 
StringViewvalue ()
 
int toInt () const
 
errc_t toInt (int &value) const
 
double toDouble () const
 
errc_t toDouble (double &value) const
 
double toFortranDouble () const
 
errc_t toFortranDouble (double &value) const
 
bool toBool () const
 
errc_t toBool (bool &value) const
 
Color toColor () const
 
errc_t toColor (Color &value) const
 
std::string toString () const
 
void toString (std::string &value) const
 
std::vector< ValueViewtoVector () const
 
void toVector (std::vector< ValueView > &value) const
 
std::vector< double > toFortranDoubleVector () const
 
errc_t toFortranDoubleVector (std::vector< double > &value) const
 
std::vector< double > toDoubleVector () const
 
errc_t toDoubleVector (std::vector< double > &value) const
 
std::vector< int > toIntVector () const
 
errc_t toIntVector (std::vector< int > &value) const
 
const StringViewtoStringView () const
 
GenericValue toValue () const
 
 operator StringView () const
 
const char * data () const
 
size_t size () const
 
SplitterType split () const
 
template<typename Delimiter >
strings_internal::Splitter< typename strings_internal::SelectDelimiter< Delimiter >::type, strings_internal::AllowEmpty, StringViewsplit (Delimiter delimiter) const
 

Public 属性

StringView value_
 

详细描述

值视图类

提供对值的视图操作,包括解析和格式化值。


该类的文档由以下文件生成: