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

#include <smacc_client.hpp>

Collaboration diagram for smacc2::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 28 of file smacc_client.hpp.

Constructor & Destructor Documentation

◆ ComponentKey()

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

Definition at line 30 of file smacc_client.hpp.

31 {
32 this->name = name;
33 this->typeinfo = typeinfo;
34 encodedKey = std::to_string((long)(void *)typeinfo) + "_" + name;
35 }
const std::type_info * typeinfo
std::string encodedKey

References encodedKey, name, and typeinfo.

Member Function Documentation

◆ operator<()

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

Definition at line 40 of file smacc_client.hpp.

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

References encodedKey.

◆ 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.

Member Data Documentation

◆ encodedKey

std::string smacc2::ComponentKey::encodedKey

Definition at line 36 of file smacc_client.hpp.

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

◆ name

std::string smacc2::ComponentKey::name

Definition at line 38 of file smacc_client.hpp.

Referenced by ComponentKey().

◆ typeinfo

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

Definition at line 37 of file smacc_client.hpp.

Referenced by ComponentKey().


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