|
| ValAdaptor () |
|
| ValAdaptor (const SharedString &str) |
|
ValAdaptor & | operator= (const SharedString &str) |
|
| ValAdaptor (std::string_view str) |
|
ValAdaptor & | operator= (std::string_view str) |
|
| ValAdaptor (const char *str) |
|
ValAdaptor & | operator= (const char *str) |
|
| ValAdaptor (std::wstring_view str) |
|
ValAdaptor & | operator= (std::wstring_view str) |
|
| ValAdaptor (const wchar_t *str) |
|
ValAdaptor & | operator= (const wchar_t *str) |
|
| ValAdaptor (bool value) |
|
ValAdaptor & | operator= (bool v) |
|
| ValAdaptor (std::int64_t value) |
|
ValAdaptor & | operator= (std::int64_t v) |
|
| ValAdaptor (double value) |
|
ValAdaptor & | operator= (double v) |
|
template<typename T , typename std::enable_if_t< std::is_integral_v< T >, std::nullptr_t > = nullptr> |
| ValAdaptor (T value) |
|
template<typename T , typename std::enable_if_t< std::is_integral_v< T >, std::nullptr_t > = nullptr> |
ValAdaptor & | operator= (T v) |
|
template<typename T , typename std::enable_if_t< std::is_floating_point_v< T >, std::nullptr_t > = nullptr> |
| ValAdaptor (T value) |
|
template<typename T , typename std::enable_if_t< std::is_floating_point_v< T >, std::nullptr_t > = nullptr> |
ValAdaptor & | operator= (T v) |
|
ValType | valType () const |
|
bool | empty () const |
| 値が空かどうか調べる
|
|
const std::string & | asStringRef () const |
| 文字列として返す
|
|
const std::wstring & | asWStringRef () const |
| 文字列として返す (wstring)
|
|
const std::string & | asU8StringRef () const |
|
std::string | asString () const |
| 文字列として返す(コピー)
|
|
std::wstring | asWString () const |
| 文字列として返す(コピー) (wstring)
|
|
| operator const std::string & () const |
|
| operator const std::wstring & () const |
|
| operator const char * () const |
|
| operator const wchar_t * () const |
|
double | asDouble () const |
| 実数として返す
|
|
int | asInt () const |
| int型の整数として返す
|
|
long long | asLLong () const |
| long long型の整数として返す
|
|
template<typename T > |
double | as () const |
| 数値として返す
|
|
template<typename T , typename std::enable_if_t< std::is_convertible_v< double, T > &&!std::is_same_v< T, bool >, std::nullptr_t > = nullptr> |
| operator T () const |
| 数値型への変換
|
|
bool | asBool () const |
| bool値を返す
|
|
| operator bool () const |
|
bool | operator== (const ValAdaptor &other) const |
|
bool | operator!= (const ValAdaptor &other) const |
|
template<typename T , typename std::enable_if_t< std::is_constructible_v< ValAdaptor, T > &&!std::is_same_v< ValAdaptor, T >, std::nullptr_t > = nullptr> |
bool | operator== (const T &other) const |
|
template<typename T , typename std::enable_if_t< std::is_constructible_v< ValAdaptor, T > &&!std::is_same_v< ValAdaptor, T >, std::nullptr_t > = nullptr> |
bool | operator!= (const T &other) const |
|
数値、文字列などの値を相互変換するクラス
数値の場合doubleまたはint64_tで保持する
数値型であっても文字列のインスタンスを内部に保持し、 ValAdaptorが破棄されるまでの間char*やstring_viewから参照できる
空の状態=空文字列