Public Member Functions | Private Member Functions | Private Attributes | List of all members
cartographer::mapping::TrajectoryConnectivity Class Reference

#include <trajectory_connectivity.h>

Public Member Functions

void Add (int trajectory_id) EXCLUDES(lock_)
void Connect (int trajectory_id_a, int trajectory_id_b) EXCLUDES(lock_)
std::vector< std::vector< int > > ConnectedComponents () EXCLUDES(lock_)
int ConnectionCount (int trajectory_id_a, int trajectory_id_b) EXCLUDES(lock_)
TrajectoryConnectivityoperator= (const TrajectoryConnectivity &)=delete
 TrajectoryConnectivity ()
 TrajectoryConnectivity (const TrajectoryConnectivity &)=delete
bool TransitivelyConnected (int trajectory_id_a, int trajectory_id_b) EXCLUDES(lock_)

Private Member Functions

int FindSet (int trajectory_id) REQUIRES(lock_)
std::map< int, int > forest_ GUARDED_BY (lock_)
std::map< std::pair< int, int >, int > connection_map_ GUARDED_BY (lock_)
void Union (int trajectory_id_a, int trajectory_id_b) REQUIRES(lock_)

Private Attributes

common::Mutex lock_

Detailed Description

Definition at line 36 of file trajectory_connectivity.h.

Constructor & Destructor Documentation

cartographer::mapping::TrajectoryConnectivity::TrajectoryConnectivity ( )

Definition at line 28 of file

cartographer::mapping::TrajectoryConnectivity::TrajectoryConnectivity ( const TrajectoryConnectivity )

Member Function Documentation

void cartographer::mapping::TrajectoryConnectivity::Add ( int  trajectory_id)

Definition at line 31 of file

void cartographer::mapping::TrajectoryConnectivity::Connect ( int  trajectory_id_a,
int  trajectory_id_b 

Definition at line 36 of file

std::vector< std::vector< int > > cartographer::mapping::TrajectoryConnectivity::ConnectedComponents ( )

Definition at line 73 of file

int cartographer::mapping::TrajectoryConnectivity::ConnectionCount ( int  trajectory_id_a,
int  trajectory_id_b 

Definition at line 90 of file

int cartographer::mapping::TrajectoryConnectivity::FindSet ( int  trajectory_id)

Definition at line 53 of file

std::map<int, int> forest_ cartographer::mapping::TrajectoryConnectivity::GUARDED_BY ( lock_  )
std::map<std::pair<int, int>, int> connection_map_ cartographer::mapping::TrajectoryConnectivity::GUARDED_BY ( lock_  )
TrajectoryConnectivity& cartographer::mapping::TrajectoryConnectivity::operator= ( const TrajectoryConnectivity )
bool cartographer::mapping::TrajectoryConnectivity::TransitivelyConnected ( int  trajectory_id_a,
int  trajectory_id_b 

Definition at line 62 of file

void cartographer::mapping::TrajectoryConnectivity::Union ( int  trajectory_id_a,
int  trajectory_id_b 

Definition at line 44 of file

Member Data Documentation

common::Mutex cartographer::mapping::TrajectoryConnectivity::lock_

Definition at line 70 of file trajectory_connectivity.h.

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

autogenerated on Mon Jun 10 2019 12:51:39