| 71 | } |
| 72 | |
| 73 | bool PrimitiveVariable::operator==( const PrimitiveVariable &other ) const |
| 74 | { |
| 75 | if( interpolation != other.interpolation ) |
| 76 | { |
| 77 | return false; |
| 78 | } |
| 79 | |
| 80 | if( data && other.data ) |
| 81 | { |
| 82 | if( !data->isEqualTo( other.data.get() ) ) |
| 83 | { |
| 84 | return false; |
| 85 | } |
| 86 | } |
| 87 | else if( data || other.data ) |
| 88 | { |
| 89 | return false; |
| 90 | } |
| 91 | |
| 92 | if( indices && other.indices ) |
| 93 | { |
| 94 | if( !indices->isEqualTo( other.indices.get() ) ) |
| 95 | { |
| 96 | return false; |
| 97 | } |
| 98 | } |
| 99 | else if( indices || other.indices ) |
| 100 | { |
| 101 | return false; |
| 102 | } |
| 103 | |
| 104 | return true; |
| 105 | } |
| 106 | |
| 107 | bool PrimitiveVariable::operator!=( const PrimitiveVariable &other ) const |
| 108 | { |