Lines Matching full:other
12 // documentation and/or other materials provided with the distribution.
67 /// \param other The optional object to copy from.
69 utils::optional< T >::optional(const optional< T >& other) :
70 _data(other._data == NULL ? NULL : new T(*(other._data)))
118 /// \param other The optional object to copy from.
123 utils::optional< T >::operator=(const optional< T >& other)
125 T* new_data = other._data == NULL ? NULL : new T(*(other._data));
135 /// \param other The other object to compare this one to.
137 /// \return True if this object and other are equal; false otherwise.
140 utils::optional< T >::operator==(const optional< T >& other) const
142 if (_data == NULL && other._data == NULL) {
144 } else if (_data == NULL || other._data == NULL) {
147 INV(_data != NULL && other._data != NULL);
148 return *_data == *other._data;
155 /// \param other The other object to compare this one to.
157 /// \return True if this object and other are different; false otherwise.
160 utils::optional< T >::operator!=(const optional< T >& other) const
162 return !(*this == other);