![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
Abstract node ID (numbered or named) Node name is always available. More...
#include <RigDef_Node.h>
Public Member Functions | |
BITMASK_PROPERTY_GET (m_flags, 1, IS_VALID, IsValid) | |
BITMASK_PROPERTY_GET (m_flags, 2, IS_TYPE_NUMBERED, IsTypeNumbered) | |
BITMASK_PROPERTY_GET (m_flags, 3, IS_TYPE_NAMED, IsTypeNamed) | |
Id () | |
Id (unsigned int id_num) | |
Id (std::string const &id_str) | |
void | SetNum (unsigned int id_num) |
void | setStr (std::string const &id_str) |
const std::string & | Str () const |
unsigned int | Num () const |
void | Invalidate () |
std::string | ToString () const |
Private Attributes | |
unsigned int | m_id_num |
std::string | m_id_str |
unsigned int | m_flags |
Abstract node ID (numbered or named) Node name is always available.
For numbered nodes, it's the number converted to string. Node number is only available for explicitly numbered nodes (legacy).
Definition at line 44 of file RigDef_Node.h.
Node::Id::Id | ( | ) |
Definition at line 34 of file RigDef_Node.cpp.
Node::Id::Id | ( | unsigned int | id_num | ) |
Definition at line 39 of file RigDef_Node.cpp.
Node::Id::Id | ( | std::string const & | id_str | ) |
Definition at line 46 of file RigDef_Node.cpp.
RigDef::Node::Id::BITMASK_PROPERTY_GET | ( | m_flags | , |
1 | , | ||
IS_VALID | , | ||
IsValid | |||
) |
RigDef::Node::Id::BITMASK_PROPERTY_GET | ( | m_flags | , |
2 | , | ||
IS_TYPE_NUMBERED | , | ||
IsTypeNumbered | |||
) |
RigDef::Node::Id::BITMASK_PROPERTY_GET | ( | m_flags | , |
3 | , | ||
IS_TYPE_NAMED | , | ||
IsTypeNamed | |||
) |
void Node::Id::Invalidate | ( | ) |
Definition at line 72 of file RigDef_Node.cpp.
|
inline |
Definition at line 62 of file RigDef_Node.h.
void Node::Id::SetNum | ( | unsigned int | id_num | ) |
Definition at line 55 of file RigDef_Node.cpp.
void Node::Id::setStr | ( | std::string const & | id_str | ) |
Definition at line 63 of file RigDef_Node.cpp.
|
inline |
Definition at line 61 of file RigDef_Node.h.
std::string Node::Id::ToString | ( | ) | const |
Definition at line 129 of file RigDef_Node.cpp.
|
private |
Definition at line 72 of file RigDef_Node.h.
|
private |
Definition at line 70 of file RigDef_Node.h.
|
private |
Definition at line 71 of file RigDef_Node.h.