17 #ifndef CYBER_TRANSPORT_COMMON_IDENTITY_H_ 18 #define CYBER_TRANSPORT_COMMON_IDENTITY_H_ 32 explicit Identity(
bool need_generate =
true);
44 const char*
data()
const {
return data_; }
46 if (data ==
nullptr) {
49 std::memcpy(data_, data,
sizeof(data_));
64 #endif // CYBER_TRANSPORT_COMMON_IDENTITY_H_ PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::string ToString() const
constexpr uint8_t ID_SIZE
Definition: identity.h:28
bool operator==(const Identity &another) const
Definition: identity.h:30
Identity & operator=(const Identity &another)
Identity(bool need_generate=true)
bool operator!=(const Identity &another) const
void set_data(const char *data)
Definition: identity.h:45
const char * data() const
Definition: identity.h:44
uint64_t HashValue() const