This type can be used together with boost::apply_visitor to cast boost::variant with an unknown underlying type, to a Source::id_type.
More...
#include <Source.h>
|
template<typename From > |
static constexpr bool | is_integer () |
|
This type can be used together with boost::apply_visitor to cast boost::variant with an unknown underlying type, to a Source::id_type.
Definition at line 109 of file Source.h.
◆ CastSourceIdVisitor()
Euclid::SourceCatalog::CastSourceIdVisitor::CastSourceIdVisitor |
( |
| ) |
|
|
inline |
◆ is_integer()
template<typename From >
static constexpr bool Euclid::SourceCatalog::CastSourceIdVisitor::is_integer |
( |
| ) |
|
|
inlinestaticprivate |
◆ operator()() [1/3]
Source::id_type Euclid::SourceCatalog::CastSourceIdVisitor::operator() |
( |
const std::string & |
from | ) |
const |
|
inline |
◆ operator()() [2/3]
template<typename From >
Source::id_type Euclid::SourceCatalog::CastSourceIdVisitor::operator() |
( |
const From & |
from, |
|
|
typename std::enable_if< is_integer< From >()>::type * |
= 0 |
|
) |
| const |
|
inline |
◆ operator()() [3/3]
template<typename From >
Source::id_type Euclid::SourceCatalog::CastSourceIdVisitor::operator() |
( |
const From & |
, |
|
|
typename std::enable_if<!is_integer< From >()>::type * |
= 0 |
|
) |
| const |
|
inline |
The documentation for this class was generated from the following file: