Changeset 3 for CMT/v1r19/source/cmt_tag.cxx
- Timestamp:
- Mar 2, 2005, 5:39:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/v1r19/source/cmt_tag.cxx
r2 r3 572 572 573 573 return (&(default_tag)); 574 } 575 576 /*----------------------------------------------------------*/ 577 bool Tag::check_tag_used (const Tag* tag) 578 { 579 if (tag == 0) return (false); 580 581 if (tag->m_tag_refs.size () > 0) return (true); 582 if (tag->m_tag_excludes.size () > 0) return (true); 583 584 return (false); 574 585 } 575 586 … … 852 863 } 853 864 854 865 /* 866 Check if a tag is part of the operands of a tag 867 */ 868 bool Tag::use_operand (const Tag* other) const 869 { 870 if (other == this) return (true); 871 if (m_and_operands.size () == 0) return (false); 872 873 for (int i = 0; i < m_and_operands.size (); i++) 874 { 875 Tag* t = m_and_operands[i]; 876 877 if (t != 0) 878 { 879 if (t->use_operand (other)) return (true); 880 } 881 } 882 883 return (false); 884 } 885 886 /* 887 Check if a tag is part of the refs of a tag 888 */ 889 bool Tag::use_ref (const Tag* other) const 890 { 891 if (other == this) return (false); 892 if (m_tag_refs.size () == 0) return (false); 893 894 for (int i = 0; i < m_tag_refs.size (); i++) 895 { 896 Tag* t = m_tag_refs[i]; 897 898 if (t == other) return (true); 899 } 900 901 return (false); 902 } 903 904
Note: See TracChangeset
for help on using the changeset viewer.