![]() |
RDKit
Open-source cheminformatics and machine learning.
|
Classes | |
struct | _eat_assign |
Get intrinsic value of an (Enum::value) by taking advantage of. More... | |
struct | _initialize_at_program_start |
struct | _iterable |
struct | map |
struct | map_compare |
struct | map_compare< const char * > |
struct | map_compare< const wchar_t * > |
struct | optional |
Functions | |
template<typename T > | |
BETTER_ENUMS_CONSTEXPR_ T | _default () |
template<> | |
BETTER_ENUMS_CONSTEXPR_ const char * | _default< const char * > () |
template<> | |
BETTER_ENUMS_CONSTEXPR_ std::size_t | _default< std::size_t > () |
template<typename CastTo , typename Element > | |
static BETTER_ENUMS_CONSTEXPR_ optional< CastTo > | _map_index (const Element *array, optional< std::size_t > index) |
BETTER_ENUMS_IF_EXCEPTIONS (template< typename T > BETTER_ENUMS_CONSTEXPR_ static T _or_throw(optional< T > maybe, const char *message) { BETTER_ENUMS_OR_THROW }) template< typename T > BETTER_ENUMS_CONSTEXPR_ static T *_or_null(optional< T * > maybe) | |
template<typename T > | |
static BETTER_ENUMS_CONSTEXPR_ T | _or_zero (optional< T > maybe) |
template<typename T , typename U > | |
BETTER_ENUMS_CONSTEXPR_ U | continue_with (T, U value) |
BETTER_ENUMS_CONSTEXPR_ bool | _ends_name (char c, std::size_t index=0) |
BETTER_ENUMS_CONSTEXPR_ bool | _has_initializer (const char *s, std::size_t index=0) |
BETTER_ENUMS_CONSTEXPR_ std::size_t | _constant_length (const char *s, std::size_t index=0) |
BETTER_ENUMS_CONSTEXPR_ char | _select (const char *from, std::size_t from_length, std::size_t index) |
BETTER_ENUMS_CONSTEXPR_ char | _to_lower_ascii (char c) |
BETTER_ENUMS_CONSTEXPR_ bool | _names_match (const char *stringizedName, const char *referenceName, std::size_t index=0) |
BETTER_ENUMS_CONSTEXPR_ bool | _names_match_nocase (const char *stringizedName, const char *referenceName, std::size_t index=0) |
void | _trim_names (const char *const *raw_names, const char **trimmed_names, char *storage, std::size_t count) |
template<typename Enum , typename T > | |
BETTER_ENUMS_CONSTEXPR_ map< Enum, T > | make_map (T(*f)(Enum)) |
Variables | |
static BETTER_ENUMS_CONSTEXPR_ const char * | _name_enders = "= \t\n" |
|
inline |
Definition at line 473 of file enum.h.
References _constant_length(), and _ends_name().
Referenced by _constant_length().
|
inline |
|
inline |
Definition at line 321 of file enum.h.
References BETTER_ENUMS_NULLPTR.
|
inline |
|
inline |
Definition at line 455 of file enum.h.
References _ends_name(), and _name_enders.
Referenced by _constant_length(), _ends_name(), _names_match(), and _names_match_nocase().
|
inline |
Definition at line 463 of file enum.h.
References _has_initializer().
Referenced by _has_initializer().
|
static |
|
inline |
Definition at line 489 of file enum.h.
References _ends_name(), and _names_match().
Referenced by _names_match().
|
inline |
Definition at line 501 of file enum.h.
References _ends_name(), _names_match_nocase(), and _to_lower_ascii().
Referenced by _names_match_nocase().
|
static |
|
inline |
|
inline |
Definition at line 484 of file enum.h.
Referenced by _names_match_nocase().
|
inline |
Definition at line 512 of file enum.h.
References _name_enders.
better_enums::BETTER_ENUMS_IF_EXCEPTIONS | ( | template< typename T > BETTER_ENUMS_CONSTEXPR_ static T _or_throw(optional< T > maybe, const char *message) { BETTER_ENUMS_OR_THROW } | ) |
Definition at line 373 of file enum.h.
References BETTER_ENUMS_OR_THROW.
BETTER_ENUMS_CONSTEXPR_ U better_enums::continue_with | ( | T | , |
U | value | ||
) |
BETTER_ENUMS_CONSTEXPR_ map< Enum, T > better_enums::make_map | ( | T(*)(Enum) | f | ) |
|
static |
Definition at line 453 of file enum.h.
Referenced by _ends_name(), and _trim_names().