Drake
SRange Class Reference

Directed, inclusive longitudinal (s value) range from s0 to s1. More...

#include <drake/automotive/maliput/api/rules/regions.h>

Public Member Functions

 SRange ()=default
 Default constructor: initializes s0 and s1 to zero. More...
 
 SRange (double s0, double s1)
 Constructs range [s0 –> s1]. More...
 
double s0 () const
 Gets s0 value. More...
 
double s1 () const
 Gets s1 value. More...
 
void set_s0 (double s0)
 Sets s0 value. More...
 
void set_s1 (double s1)
 Sets s1 value. More...
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 SRange (const SRange &)=default
 
SRangeoperator= (const SRange &)=default
 
 SRange (SRange &&)=default
 
SRangeoperator= (SRange &&)=default
 

Detailed Description

Directed, inclusive longitudinal (s value) range from s0 to s1.

Constructor & Destructor Documentation

◆ SRange() [1/4]

SRange ( const SRange )
default

◆ SRange() [2/4]

SRange ( SRange &&  )
default

◆ SRange() [3/4]

SRange ( )
default

Default constructor: initializes s0 and s1 to zero.

◆ SRange() [4/4]

SRange ( double  s0,
double  s1 
)
inline

Constructs range [s0 –> s1].

Member Function Documentation

◆ operator=() [1/2]

SRange& operator= ( const SRange )
default

◆ operator=() [2/2]

SRange& operator= ( SRange &&  )
default

◆ s0()

double s0 ( ) const
inline

Gets s0 value.

◆ s1()

double s1 ( ) const
inline

Gets s1 value.

◆ set_s0()

void set_s0 ( double  s0)
inline

Sets s0 value.

◆ set_s1()

void set_s1 ( double  s1)
inline

Sets s1 value.


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