maliput_malidrive
BuildPolicy Struct Reference

Detailed Description

Policy for use of concurrency while building a RoadGeometry.

#include <src/maliput_malidrive/builder/road_geometry_configuration.h>

Public Types

enum  Type { kSequential = 0, kParallel }
 

Static Public Member Functions

static BuildPolicy::Type FromStrToType (const std::string &type)
 Converts string to a Type. More...
 
static std::string FromTypeToStr (const BuildPolicy::Type &type)
 Converts a Type to a string. More...
 

Public Attributes

Type type {Type::kSequential}
 
std::optional< int > num_threads {}
 

Member Enumeration Documentation

◆ Type

enum Type
Enumerator
kSequential 
kParallel 

Member Function Documentation

◆ FromStrToType()

BuildPolicy::Type FromStrToType ( const std::string &  type)
static

Converts string to a Type.

Parameters
typeString to be translated to a Type. Valid strings match the enumerator's name except without the leading 'k' and is all lower case.
Returns
A BuildPolicy::Type value
Exceptions
maliput::common::assertion_errorWhen type isn't a valid Type.

◆ FromTypeToStr()

std::string FromTypeToStr ( const BuildPolicy::Type type)
static

Converts a Type to a string.

Parameters
typeType to be translated to a string. Enumerator's name matches the string except without the leading 'k' and is all lower case.
Returns
A string.

Member Data Documentation

◆ num_threads

std::optional<int> num_threads {}

◆ type

Type type {Type::kSequential}

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