Drake
Group Class Reference

A group of Connections. More...

#include <drake/automotive/maliput/multilane/connection.h>

Public Member Functions

 Group (const std::string &id)
 Constructs an empty Group with the specified id. More...
 
 Group (const std::string &id, const std::vector< const Connection * > &connections)
 Constructs a Group with id, populated by connections. More...
 
void Add (const Connection *connection)
 Adds a Connection. More...
 
const std::string & id () const
 Returns the ID string. More...
 
const std::vector< const Connection * > & connections () const
 Returns the grouped Connections. More...
 
Does not allow copy, move, or assignment
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 
 Group (Group &&)=delete
 
Groupoperator= (Group &&)=delete
 

Detailed Description

A group of Connections.

Upon building the RoadGeometry, a Group yields a Junction containing the corresponding Segments specified by all the Connections in the Group.

Constructor & Destructor Documentation

Group ( const Group )
delete
Group ( Group &&  )
delete
Group ( const std::string &  id)
inlineexplicit

Constructs an empty Group with the specified id.

Group ( const std::string &  id,
const std::vector< const Connection * > &  connections 
)
inline

Constructs a Group with id, populated by connections.

connections must not contain duplicates.

Member Function Documentation

void Add ( const Connection connection)
inline

Adds a Connection.

connection must not already be added.

const std::vector<const Connection*>& connections ( ) const
inline

Returns the grouped Connections.

const std::string& id ( ) const
inline

Returns the ID string.

Group& operator= ( const Group )
delete
Group& operator= ( Group &&  )
delete

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