Apollo  6.0
Open source self driving car software
Public Types | Public Member Functions | List of all members
apollo::cyber::service_discovery::MultiValueWarehouse Class Reference

#include <multi_value_warehouse.h>

Inheritance diagram for apollo::cyber::service_discovery::MultiValueWarehouse:
Inheritance graph
Collaboration diagram for apollo::cyber::service_discovery::MultiValueWarehouse:
Collaboration graph

Public Types

using RoleMap = std::unordered_multimap< uint64_t, RolePtr >
 

Public Member Functions

 MultiValueWarehouse ()
 
virtual ~MultiValueWarehouse ()
 
bool Add (uint64_t key, const RolePtr &role, bool ignore_if_exist=true) override
 
void Clear () override
 
std::size_t Size () override
 
void Remove (uint64_t key) override
 
void Remove (uint64_t key, const RolePtr &role) override
 
void Remove (const proto::RoleAttributes &target_attr) override
 
bool Search (uint64_t key) override
 
bool Search (uint64_t key, RolePtr *first_matched_role) override
 
bool Search (uint64_t key, proto::RoleAttributes *first_matched_role_attr) override
 
bool Search (uint64_t key, std::vector< RolePtr > *matched_roles) override
 
bool Search (uint64_t key, std::vector< proto::RoleAttributes > *matched_roles_attr) override
 
bool Search (const proto::RoleAttributes &target_attr) override
 
bool Search (const proto::RoleAttributes &target_attr, RolePtr *first_matched) override
 
bool Search (const proto::RoleAttributes &target_attr, proto::RoleAttributes *first_matched_role_attr) override
 
bool Search (const proto::RoleAttributes &target_attr, std::vector< RolePtr > *matched_roles) override
 
bool Search (const proto::RoleAttributes &target_attr, std::vector< proto::RoleAttributes > *matched_roles_attr) override
 
void GetAllRoles (std::vector< RolePtr > *roles) override
 
void GetAllRoles (std::vector< proto::RoleAttributes > *roles_attr) override
 
- Public Member Functions inherited from apollo::cyber::service_discovery::WarehouseBase
 WarehouseBase ()
 
virtual ~WarehouseBase ()
 

Member Typedef Documentation

◆ RoleMap

using apollo::cyber::service_discovery::MultiValueWarehouse::RoleMap = std::unordered_multimap<uint64_t, RolePtr>

Constructor & Destructor Documentation

◆ MultiValueWarehouse()

apollo::cyber::service_discovery::MultiValueWarehouse::MultiValueWarehouse ( )
inline

◆ ~MultiValueWarehouse()

virtual apollo::cyber::service_discovery::MultiValueWarehouse::~MultiValueWarehouse ( )
inlinevirtual

Member Function Documentation

◆ Add()

bool apollo::cyber::service_discovery::MultiValueWarehouse::Add ( uint64_t  key,
const RolePtr role,
bool  ignore_if_exist = true 
)
overridevirtual

◆ Clear()

void apollo::cyber::service_discovery::MultiValueWarehouse::Clear ( )
overridevirtual

◆ GetAllRoles() [1/2]

void apollo::cyber::service_discovery::MultiValueWarehouse::GetAllRoles ( std::vector< RolePtr > *  roles)
overridevirtual

◆ GetAllRoles() [2/2]

void apollo::cyber::service_discovery::MultiValueWarehouse::GetAllRoles ( std::vector< proto::RoleAttributes > *  roles_attr)
overridevirtual

◆ Remove() [1/3]

void apollo::cyber::service_discovery::MultiValueWarehouse::Remove ( uint64_t  key)
overridevirtual

◆ Remove() [2/3]

void apollo::cyber::service_discovery::MultiValueWarehouse::Remove ( uint64_t  key,
const RolePtr role 
)
overridevirtual

◆ Remove() [3/3]

void apollo::cyber::service_discovery::MultiValueWarehouse::Remove ( const proto::RoleAttributes &  target_attr)
overridevirtual

◆ Search() [1/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( uint64_t  key)
overridevirtual

◆ Search() [2/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( uint64_t  key,
RolePtr first_matched_role 
)
overridevirtual

◆ Search() [3/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( uint64_t  key,
proto::RoleAttributes *  first_matched_role_attr 
)
overridevirtual

◆ Search() [4/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( uint64_t  key,
std::vector< RolePtr > *  matched_roles 
)
overridevirtual

◆ Search() [5/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( uint64_t  key,
std::vector< proto::RoleAttributes > *  matched_roles_attr 
)
overridevirtual

◆ Search() [6/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( const proto::RoleAttributes &  target_attr)
overridevirtual

◆ Search() [7/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( const proto::RoleAttributes &  target_attr,
RolePtr first_matched 
)
overridevirtual

◆ Search() [8/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( const proto::RoleAttributes &  target_attr,
proto::RoleAttributes *  first_matched_role_attr 
)
overridevirtual

◆ Search() [9/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( const proto::RoleAttributes &  target_attr,
std::vector< RolePtr > *  matched_roles 
)
overridevirtual

◆ Search() [10/10]

bool apollo::cyber::service_discovery::MultiValueWarehouse::Search ( const proto::RoleAttributes &  target_attr,
std::vector< proto::RoleAttributes > *  matched_roles_attr 
)
overridevirtual

◆ Size()

std::size_t apollo::cyber::service_discovery::MultiValueWarehouse::Size ( )
overridevirtual

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