Drake
RBounds Class Reference

Bounds in the lateral dimension (r component) of a Lane-frame, consisting of a pair of minimum and maximum r value. More...

#include <drake/automotive/maliput/api/lane_data.h>

Public Member Functions

 RBounds ()=default
 Default constructor. More...
 
 RBounds (double min, double max)
 Fully parameterized constructor. More...
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 RBounds (const RBounds &)=default
 
RBoundsoperator= (const RBounds &)=default
 
 RBounds (RBounds &&)=default
 
RBoundsoperator= (RBounds &&)=default
 
Getters and Setters
double min () const
 Gets minimum bound. More...
 
void set_min (double min)
 Sets minimum bound. More...
 
double max () const
 Gets maximum bound. More...
 
void set_max (double max)
 Sets maximum bound. More...
 

Detailed Description

Bounds in the lateral dimension (r component) of a Lane-frame, consisting of a pair of minimum and maximum r value.

The bounds must straddle r = 0, i.e., the minimum must be <= 0 and the maximum must be >= 0.

Constructor & Destructor Documentation

RBounds ( const RBounds )
default
RBounds ( RBounds &&  )
default
RBounds ( )
default

Default constructor.

RBounds ( double  min,
double  max 
)
inline

Fully parameterized constructor.

Exceptions
std::runtime_errorWhen min is greater than 0.
std::runtime_errorWhen max is smaller than 0.

Member Function Documentation

double max ( ) const
inline

Gets maximum bound.

Here is the caller graph for this function:

double min ( ) const
inline

Gets minimum bound.

Here is the caller graph for this function:

RBounds& operator= ( RBounds &&  )
default
RBounds& operator= ( const RBounds )
default
void set_max ( double  max)
inline

Sets maximum bound.

Exceptions
std::runtime_errorWhen max is smaller than 0.

Here is the call graph for this function:

void set_min ( double  min)
inline

Sets minimum bound.

Exceptions
std::runtime_errorWhen min is greater than 0.

Here is the call graph for this function:


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