SMACC
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
smacc::ComponentKey Struct Reference

#include <smacc_client.h>

Collaboration diagram for smacc::ComponentKey:
Collaboration graph

Public Member Functions

 ComponentKey (const std::type_info *typeinfo, 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 14 of file smacc_client.h.

Constructor & Destructor Documentation

◆ ComponentKey()

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

Definition at line 16 of file smacc_client.h.

17 {
18 this->name = name;
19 this->typeinfo = typeinfo;
20 encodedKey = std::to_string((long)(void *)typeinfo) + "_" + name;
21 }
const std::type_info * typeinfo
Definition: smacc_client.h:23
std::string encodedKey
Definition: smacc_client.h:22
std::string name
Definition: smacc_client.h:24

References encodedKey, name, and typeinfo.

Member Function Documentation

◆ operator<()

bool smacc::ComponentKey::operator< ( const ComponentKey other) const
inline

Definition at line 26 of file smacc_client.h.

27 {
28 return this->encodedKey < other.encodedKey;
29 }

References encodedKey.

◆ operator==()

bool smacc::ComponentKey::operator== ( const ComponentKey other) const
inline

Definition at line 30 of file smacc_client.h.

31 {
32 return this->encodedKey == other.encodedKey;
33 }

References encodedKey.

Member Data Documentation

◆ encodedKey

std::string smacc::ComponentKey::encodedKey

Definition at line 22 of file smacc_client.h.

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

◆ name

std::string smacc::ComponentKey::name

Definition at line 24 of file smacc_client.h.

Referenced by ComponentKey().

◆ typeinfo

const std::type_info* smacc::ComponentKey::typeinfo

Definition at line 23 of file smacc_client.h.

Referenced by ComponentKey().


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