SMACC2
Loading...
Searching...
No Matches
smacc2::ComponentKey Struct Reference

#include <smacc_client.hpp>

Collaboration diagram for smacc2::ComponentKey:
Collaboration graph

Public Member Functions

 ComponentKey (const std::type_info *typeinfo, const std::string &name)
 
bool operator< (const ComponentKey &other) const
 
bool operator== (const ComponentKey &other) const
 

Public Attributes

std::string encodedKey
 
const std::type_info * typeinfo
 
std::string name
 

Detailed Description

Definition at line 29 of file smacc_client.hpp.

Constructor & Destructor Documentation

◆ ComponentKey()

smacc2::ComponentKey::ComponentKey ( const std::type_info * typeinfo,
const std::string & name )
inline

Definition at line 31 of file smacc_client.hpp.

32 : encodedKey(std::to_string(reinterpret_cast<std::uintptr_t>(typeinfo)) + "_" + name),
34 name(name)
35 {
36 }
const std::type_info * typeinfo

Member Function Documentation

◆ operator<()

bool smacc2::ComponentKey::operator< ( const ComponentKey & other) const
inline

Definition at line 41 of file smacc_client.hpp.

41{ return this->encodedKey < other.encodedKey; }

References encodedKey.

◆ operator==()

bool smacc2::ComponentKey::operator== ( const ComponentKey & other) const
inline

Definition at line 42 of file smacc_client.hpp.

42{ return this->encodedKey == other.encodedKey; }

References encodedKey.

Member Data Documentation

◆ encodedKey

std::string smacc2::ComponentKey::encodedKey

Definition at line 37 of file smacc_client.hpp.

Referenced by operator<(), and operator==().

◆ name

std::string smacc2::ComponentKey::name

Definition at line 39 of file smacc_client.hpp.

◆ typeinfo

const std::type_info* smacc2::ComponentKey::typeinfo

Definition at line 38 of file smacc_client.hpp.


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