DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
Apply a visitor to an OFvariant object. More...
Functions | |
template<typename Result , typename Visitor , typename... Alternatives> | |
Result | OFvisit (Visitor visitor, OFvariant< Alternatives...> &v) |
Applies the given visitor to the given OFvariant object. More... | |
template<typename Result , typename Visitor , typename... Alternatives> | |
Result | OFvisit (Visitor visitor, const OFvariant< Alternatives...> &v) |
Applies the given visitor to the given OFvariant object. More... | |
Apply a visitor to an OFvariant object.
|
related |
Applies the given visitor to the given OFvariant object.
Result | the type of the returned value. Pre C++11 compiles do not allow determining the result type automatically in a portable way, therefore, it must be explicitly given by the caller. |
Visitor | the type of the visitor, will be deduced automatically. |
Alternatives | the alternatives the given variant could hold, will be deduced automatically. |
visitor | the visitor that will be invoked with the alternative currently being held by the given OFvariant object. |
v | a reference to an OFvariant object that is going to be visited. |
CurrentAlternative
be the alternative that v currently holds: the result of visitor( *OFget<CurrentAlternative>( &v ) )
will be converted to Result
and then returned. Result
. visitor
must be able to take all possible alternatives. Output (if the error was removed):
double 9.8596 double 9.8596 int 9 9.8596
|
related |
Applies the given visitor to the given OFvariant object.
Result | the type of the returned value. Pre C++11 compiles do not allow determining the result type automatically in a portable way, therefore, it must be explicitly given by the caller. |
Visitor | the type of the visitor, will be deduced automatically. |
Alternatives | the alternatives the given variant could hold, will be deduced automatically. |
visitor | the visitor that will be invoked with the alternative currently being held by the given OFvariant object. |
v | a const reference to an OFvariant object that is going to be visited. |
CurrentAlternative
be the alternative that v currently holds: the result of visitor( *OFget<CurrentAlternative>( &v ) )
will be converted to Result
and then returned. Result
. visitor
must be able to take all possible alternatives. Output (if the errors were removed):
double 9.8596 double 9.8596 int 9 3.14