CARLA
Public Member Functions | Public Attributes | Private Member Functions | List of all members
carla::traffic_manager::CachedSimpleWaypoint Class Reference

#include <CachedSimpleWaypoint.h>

+ Collaboration diagram for carla::traffic_manager::CachedSimpleWaypoint:

Public Member Functions

 CachedSimpleWaypoint ()=default
 
 CachedSimpleWaypoint (const SimpleWaypointPtr &simple_waypoint)
 
void Read (const std::vector< uint8_t > &content, unsigned long &start)
 
void Read (std::ifstream &in_file)
 
void Write (std::ofstream &out_file)
 

Public Attributes

int32_t geodesic_grid_id
 
bool is_junction
 
int32_t lane_id
 
uint64_t next_left_waypoint = 0
 
uint64_t next_right_waypoint = 0
 
std::vector< uint64_t > next_waypoints
 
std::vector< uint64_t > previous_waypoints
 
uint32_t road_id
 
uint8_t road_option
 
float s
 
uint32_t section_id
 
uint64_t waypoint_id
 

Private Member Functions

template<typename T >
void ReadValue (std::ifstream &in_file, T &out_obj)
 
template<typename T >
void ReadValue (const std::vector< uint8_t > &content, unsigned long &start, T &out_obj)
 
template<typename T >
void WriteValue (std::ofstream &out_file, const T &in_obj)
 

Detailed Description

Definition at line 18 of file CachedSimpleWaypoint.h.

Constructor & Destructor Documentation

◆ CachedSimpleWaypoint() [1/2]

carla::traffic_manager::CachedSimpleWaypoint::CachedSimpleWaypoint ( )
default

◆ CachedSimpleWaypoint() [2/2]

carla::traffic_manager::CachedSimpleWaypoint::CachedSimpleWaypoint ( const SimpleWaypointPtr simple_waypoint)

Member Function Documentation

◆ Read() [1/2]

void carla::traffic_manager::CachedSimpleWaypoint::Read ( const std::vector< uint8_t > &  content,
unsigned long &  start 
)

Definition at line 121 of file CachedSimpleWaypoint.cpp.

References geodesic_grid_id, is_junction, lane_id, next_left_waypoint, next_right_waypoint, next_waypoints, previous_waypoints, road_id, road_option, s, section_id, and waypoint_id.

Referenced by carla::traffic_manager::InMemoryMap::Load().

+ Here is the caller graph for this function:

◆ Read() [2/2]

void carla::traffic_manager::CachedSimpleWaypoint::Read ( std::ifstream &  in_file)

◆ ReadValue() [1/2]

template<typename T >
void carla::traffic_manager::CachedSimpleWaypoint::ReadValue ( std::ifstream &  in_file,
T &  out_obj 
)
inlineprivate

Definition at line 47 of file CachedSimpleWaypoint.h.

◆ ReadValue() [2/2]

template<typename T >
void carla::traffic_manager::CachedSimpleWaypoint::ReadValue ( const std::vector< uint8_t > &  content,
unsigned long &  start,
T &  out_obj 
)
inlineprivate

Definition at line 51 of file CachedSimpleWaypoint.h.

◆ Write()

void carla::traffic_manager::CachedSimpleWaypoint::Write ( std::ofstream &  out_file)

Definition at line 41 of file CachedSimpleWaypoint.cpp.

References geodesic_grid_id, is_junction, lane_id, next_left_waypoint, next_right_waypoint, next_waypoints, previous_waypoints, road_id, road_option, s, section_id, and waypoint_id.

Referenced by carla::traffic_manager::InMemoryMap::Save().

+ Here is the caller graph for this function:

◆ WriteValue()

template<typename T >
void carla::traffic_manager::CachedSimpleWaypoint::WriteValue ( std::ofstream &  out_file,
const T &  in_obj 
)
inlineprivate

Definition at line 43 of file CachedSimpleWaypoint.h.

Member Data Documentation

◆ geodesic_grid_id

int32_t carla::traffic_manager::CachedSimpleWaypoint::geodesic_grid_id

◆ is_junction

bool carla::traffic_manager::CachedSimpleWaypoint::is_junction

◆ lane_id

int32_t carla::traffic_manager::CachedSimpleWaypoint::lane_id

◆ next_left_waypoint

uint64_t carla::traffic_manager::CachedSimpleWaypoint::next_left_waypoint = 0

Definition at line 27 of file CachedSimpleWaypoint.h.

Referenced by CachedSimpleWaypoint(), Read(), and Write().

◆ next_right_waypoint

uint64_t carla::traffic_manager::CachedSimpleWaypoint::next_right_waypoint = 0

Definition at line 28 of file CachedSimpleWaypoint.h.

Referenced by CachedSimpleWaypoint(), Read(), and Write().

◆ next_waypoints

std::vector<uint64_t> carla::traffic_manager::CachedSimpleWaypoint::next_waypoints

Definition at line 25 of file CachedSimpleWaypoint.h.

Referenced by CachedSimpleWaypoint(), Read(), and Write().

◆ previous_waypoints

std::vector<uint64_t> carla::traffic_manager::CachedSimpleWaypoint::previous_waypoints

Definition at line 26 of file CachedSimpleWaypoint.h.

Referenced by CachedSimpleWaypoint(), Read(), and Write().

◆ road_id

uint32_t carla::traffic_manager::CachedSimpleWaypoint::road_id

◆ road_option

uint8_t carla::traffic_manager::CachedSimpleWaypoint::road_option

◆ s

float carla::traffic_manager::CachedSimpleWaypoint::s

◆ section_id

uint32_t carla::traffic_manager::CachedSimpleWaypoint::section_id

Definition at line 22 of file CachedSimpleWaypoint.h.

Referenced by CachedSimpleWaypoint(), Read(), and Write().

◆ waypoint_id

uint64_t carla::traffic_manager::CachedSimpleWaypoint::waypoint_id

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