RigsofRods
Soft-body Physics Simulation
|
Legacy parser resolved references on-the-fly and the condition to check named nodes was "are there any named nodes defined at this point?" The new parser defers node resolution, so every ref. More...
#include <RigDef_Node.h>
Public Member Functions | |
BITMASK_PROPERTY_GET (m_flags, 1, IMPORT_STATE_IS_VALID, GetImportState_IsValid) | |
BITMASK_PROPERTY_GET (m_flags, 2, IMPORT_STATE_MUST_CHECK_NAMED_FIRST, GetImportState_MustCheckNamedFirst) | |
BITMASK_PROPERTY_GET (m_flags, 3, IMPORT_STATE_IS_RESOLVED_NAMED, GetImportState_IsResolvedNamed) | |
BITMASK_PROPERTY_GET (m_flags, 4, IMPORT_STATE_IS_RESOLVED_NUMBERED, GetImportState_IsResolvedNumbered) | |
BITMASK_PROPERTY_GET (m_flags, 5, REGULAR_STATE_IS_VALID, GetRegularState_IsValid) | |
BITMASK_PROPERTY_GET (m_flags, 6, REGULAR_STATE_IS_NAMED, GetRegularState_IsNamed) | |
BITMASK_PROPERTY_GET (m_flags, 7, REGULAR_STATE_IS_NUMBERED, GetRegularState_IsNumbered) | |
Ref (std::string const &id_str, unsigned int id_num, unsigned flags, unsigned line_number_defined) | |
Ref () | |
const std::string & | Str () const |
unsigned int | Num () const |
bool | Compare (Ref const &rhs) const |
bool | operator== (Ref const &rhs) const |
bool | operator!= (Ref const &rhs) const |
bool | IsValidAnyState () const |
unsigned | GetLineNumber () const |
void | Invalidate () |
std::string | ToString () const |
Private Attributes | |
std::string | m_id |
unsigned int | m_id_as_number |
unsigned int | m_flags |
unsigned int | m_line_number |
Legacy parser resolved references on-the-fly and the condition to check named nodes was "are there any named nodes defined at this point?" The new parser defers node resolution, so every ref.
must keep track whether named nodes were already defined at that point.
Definition at line 77 of file RigDef_Node.h.
Node::Ref::Ref | ( | std::string const & | id_str, |
unsigned int | id_num, | ||
unsigned | flags, | ||
unsigned | line_number_defined | ||
) |
Definition at line 79 of file RigDef_Node.cpp.
Node::Ref::Ref | ( | ) |
Definition at line 88 of file RigDef_Node.cpp.
RigDef::Node::Ref::BITMASK_PROPERTY_GET | ( | m_flags | , |
1 | , | ||
IMPORT_STATE_IS_VALID | , | ||
GetImportState_IsValid | |||
) |
RigDef::Node::Ref::BITMASK_PROPERTY_GET | ( | m_flags | , |
2 | , | ||
IMPORT_STATE_MUST_CHECK_NAMED_FIRST | , | ||
GetImportState_MustCheckNamedFirst | |||
) |
RigDef::Node::Ref::BITMASK_PROPERTY_GET | ( | m_flags | , |
3 | , | ||
IMPORT_STATE_IS_RESOLVED_NAMED | , | ||
GetImportState_IsResolvedNamed | |||
) |
RigDef::Node::Ref::BITMASK_PROPERTY_GET | ( | m_flags | , |
4 | , | ||
IMPORT_STATE_IS_RESOLVED_NUMBERED | , | ||
GetImportState_IsResolvedNumbered | |||
) |
RigDef::Node::Ref::BITMASK_PROPERTY_GET | ( | m_flags | , |
5 | , | ||
REGULAR_STATE_IS_VALID | , | ||
GetRegularState_IsValid | |||
) |
RigDef::Node::Ref::BITMASK_PROPERTY_GET | ( | m_flags | , |
6 | , | ||
REGULAR_STATE_IS_NAMED | , | ||
GetRegularState_IsNamed | |||
) |
RigDef::Node::Ref::BITMASK_PROPERTY_GET | ( | m_flags | , |
7 | , | ||
REGULAR_STATE_IS_NUMBERED | , | ||
GetRegularState_IsNumbered | |||
) |
|
inline |
|
inline |
void Node::Ref::Invalidate | ( | ) |
Definition at line 95 of file RigDef_Node.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string Node::Ref::ToString | ( | ) | const |
|
private |
Definition at line 110 of file RigDef_Node.h.
|
private |
Definition at line 108 of file RigDef_Node.h.
|
private |
Definition at line 109 of file RigDef_Node.h.
|
private |
Definition at line 111 of file RigDef_Node.h.