Commit c0ef50f5 authored by Jan Möbius's avatar Jan Möbius

Added missing Operator

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8515 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 104fec38
......@@ -102,6 +102,9 @@ class DataType {
bool operator<( const unsigned int& _i );
bool operator<( const DataType& _i ) const;
DataType operator|=( const unsigned int& _i );
DataType operator|=( const DataType& _i );
bool operator&( const unsigned int& _i );
bool operator&( const DataType& _i ) const;
......
......@@ -370,6 +370,16 @@ bool DataType::operator&( const DataType& _i ) const {
//===========================================
DataType DataType::operator|=( const unsigned int& _i ) {
return (field |= _i);
}
DataType DataType::operator|=( const DataType& _i ) {
return ( field |= _i.field);
}
//===========================================
DataType DataType::operator|( const DataType& _i ) const {
return (field | _i.field);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment