RigsofRods
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 | ) |
Node::Id::Id | ( | std::string const & | id_str | ) |
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 |
void Node::Id::SetNum | ( | unsigned int | id_num | ) |
void Node::Id::setStr | ( | std::string const & | id_str | ) |
|
inline |
std::string Node::Id::ToString | ( | ) | const |
|
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.