Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::IMutableEnumValuesRegistry Struct Referenceabstract

#include <catch_interfaces_enum_values_registry.h>

Inheritance diagram for Catch::IMutableEnumValuesRegistry:

Public Member Functions

virtual ~IMutableEnumValuesRegistry ()
 
virtual Detail::EnumInfo const & registerEnum (StringRef enumName, StringRef allEnums, std::vector< int > const &values)=0
 
template<typename E >
Detail::EnumInfo const & registerEnum (StringRef enumName, StringRef allEnums, std::initializer_list< E > values)
 

Detailed Description

Definition at line 28 of file catch_interfaces_enum_values_registry.h.

Constructor & Destructor Documentation

◆ ~IMutableEnumValuesRegistry()

Catch::IMutableEnumValuesRegistry::~IMutableEnumValuesRegistry ( )
virtual

Definition at line 17 of file catch_enum_values_registry.cpp.

17{}

Member Function Documentation

◆ registerEnum() [1/2]

template<typename E >
Detail::EnumInfo const & Catch::IMutableEnumValuesRegistry::registerEnum ( StringRef enumName,
StringRef allEnums,
std::initializer_list< E > values )
inline

Definition at line 34 of file catch_interfaces_enum_values_registry.h.

34 {
35 std::vector<int> intValues;
36 intValues.reserve( values.size() );
37 for( auto enumValue : values )
38 intValues.push_back( static_cast<int>( enumValue ) );
39 return registerEnum( enumName, allEnums, intValues );
40 }
GeneratorWrapper< T > values(std::initializer_list< T > values)
virtual Detail::EnumInfo const & registerEnum(StringRef enumName, StringRef allEnums, std::vector< int > const &values)=0
Here is the call graph for this function:

◆ registerEnum() [2/2]

virtual Detail::EnumInfo const & Catch::IMutableEnumValuesRegistry::registerEnum ( StringRef enumName,
StringRef allEnums,
std::vector< int > const & values )
pure virtual
Here is the caller graph for this function:

The documentation for this struct was generated from the following files: