OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
Go to the documentation of this file.
32 #ifndef _OMS_COM_REF_H_
33 #define _OMS_COM_REF_H_
50 ComRef(
const std::string& path);
68 std::string
suffix()
const;
77 operator std::string()
const {
return std::string(
cref); }
91 struct hash<
oms::ComRef>
95 return hash<std::string>()(std::string(cref));
~ComRef()
Definition: ComRef.cpp:57
ComRef()
Definition: ComRef.cpp:42
ComRef front() const
returns the first part of the ComRef (including suffix if its the only part)
Definition: ComRef.cpp:166
bool isValidIdent() const
Definition: ComRef.cpp:94
ComRef - component reference.
Definition: ComRef.h:46
char * cref
Definition: ComRef.h:80
bool operator<(const ComRef &lhs, const ComRef &rhs)
Definition: ComRef.cpp:220
ComRef & operator=(const ComRef ©)
Definition: ComRef.cpp:67
bool operator==(const ComRef &lhs, const ComRef &rhs)
Definition: ComRef.cpp:210
size_t size() const
Definition: ComRef.cpp:205
std::string pop_suffix()
returns the suffix as string and removes it from the current object
Definition: ComRef.cpp:118
bool isEmpty() const
Definition: ComRef.cpp:99
ComRef operator+(const ComRef &rhs) const
return ComRef(lhs + rhs) - Obs! lhs will lose its suffix
Definition: ComRef.cpp:79
bool operator!=(const ComRef &lhs, const ComRef &rhs)
Definition: ComRef.cpp:215
size_t operator()(const oms::ComRef &cref) const
Definition: ComRef.h:93
char * allocateAndCopyString(const char *source)
Definition: OMSString.cpp:38
bool hasSuffix() const
returns true if the cref has a suffix, i.e. contains ":"
Definition: ComRef.cpp:104
const char * c_str() const
Definition: ComRef.h:75
const std::regex re_ident("^[a-zA-Z][a-zA-Z0-9_]*$")
bool isRootOf(ComRef child) const
Definition: ComRef.cpp:155
ComRef pop_front()
returns the first part of the ComRef and removed it from the current object
Definition: ComRef.cpp:184
std::string suffix() const
returns the suffix as string
Definition: ComRef.cpp:146