Drake
SolverTypeConverter Class Reference

Converts between SolverType and SolverId. More...

#include <drake/solvers/solver_type_converter.h>

Public Member Functions

 SolverTypeConverter ()=delete
 
 ~SolverTypeConverter ()=delete
 
Does not allow copy, move, or assignment
 SolverTypeConverter (const SolverTypeConverter &)=delete
 
SolverTypeConverteroperator= (const SolverTypeConverter &)=delete
 
 SolverTypeConverter (SolverTypeConverter &&)=delete
 
SolverTypeConverteroperator= (SolverTypeConverter &&)=delete
 

Static Public Member Functions

static SolverId TypeToId (SolverType)
 Converts the given type to its matching ID. More...
 
static optional< SolverTypeIdToType (SolverId)
 Converts the given ID to its matching type, iff the type matches one of SolverType's known values. More...
 

Detailed Description

Converts between SolverType and SolverId.

Constructor & Destructor Documentation

◆ SolverTypeConverter() [1/3]

◆ SolverTypeConverter() [2/3]

◆ SolverTypeConverter() [3/3]

SolverTypeConverter ( )
delete

◆ ~SolverTypeConverter()

~SolverTypeConverter ( )
delete

Member Function Documentation

◆ IdToType()

optional< SolverType > IdToType ( SolverId  solver_id)
static

Converts the given ID to its matching type, iff the type matches one of SolverType's known values.

◆ operator=() [1/2]

SolverTypeConverter& operator= ( SolverTypeConverter &&  )
delete

◆ operator=() [2/2]

SolverTypeConverter& operator= ( const SolverTypeConverter )
delete

◆ TypeToId()

SolverId TypeToId ( SolverType  solver_type)
static

Converts the given type to its matching ID.


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