return false; } return true; } void NestedIdentifier::appendIdentifier(Identifier* id) { id->parent = this; identifier_list.push_back(id); } bool NestedIdentifier::isEqualImpl(const ASTNode& rhs, ASTNodeSet& visited) const { BEGIN_COMPARE() COMPARE_MEMBER(identifier_list) END_COMPARE() } bool NestedIdentifier::replaceUseWith(const ASTNode& from, const ASTNode& to, bool update_parent) { BEGIN_REPLACE() REPLACE_USE_WITH(identifier_list) END_REPLACE() } ASTNode* NestedIdentifier::clone() const { NestedIdentifier* cloned = new NestedIdentifier(); foreach(i, identifier_list) cloned->appendIdentifier(cast<Identifier>((*i)->clone())); return cloned;
bool VTextureWeightmapChannelResource::DetailTextureProperties_t::operator == (const DetailTextureProperties_t &other) const { COMPARE_MEMBER(m_iTextureID); COMPARE_MEMBER(m_iMaterialID); COMPARE_MEMBER(m_vTilingAndOfs); COMPARE_MEMBER(m_bUseThreeWayMapping); COMPARE_MEMBER(m_spDiffuseTexture); COMPARE_MEMBER(m_spNormalmapTexture); COMPARE_MEMBER(m_spSpecularTexture); COMPARE_MEMBER(m_fBakePriority); COMPARE_MEMBER(m_sDiffuseTexFile); COMPARE_MEMBER(m_sNormalmapTexFile); COMPARE_MEMBER(m_sSpecularTexFile); COMPARE_MEMBER(m_bUseClamping); return true; }