|
||||
File indexing completed on 2025-01-18 10:15:41
0001 //------------------------------------------------------------------------------ 0002 // Copyright (c) 2013 by European Organization for Nuclear Research (CERN) 0003 // Author: Lukasz Janyst <ljanyst@cern.ch> 0004 //------------------------------------------------------------------------------ 0005 // XRootD is free software: you can redistribute it and/or modify 0006 // it under the terms of the GNU Lesser General Public License as published by 0007 // the Free Software Foundation, either version 3 of the License, or 0008 // (at your option) any later version. 0009 // 0010 // XRootD is distributed in the hope that it will be useful, 0011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 // GNU General Public License for more details. 0014 // 0015 // You should have received a copy of the GNU Lesser General Public License 0016 // along with XRootD. If not, see <http://www.gnu.org/licenses/>. 0017 //------------------------------------------------------------------------------ 0018 0019 #ifndef __XRD_OUC_ENUM_HH__ 0020 #define __XRD_OUC_ENUM_HH__ 0021 0022 #define XRDOUC_ENUM_OPERATORS( T ) \ 0023 inline T operator | (const T a, const T b) { return T(int(a) | int(b)); } \ 0024 inline T &operator |= ( T &a, const T b) { return a = a | b; } \ 0025 inline T operator & (const T a, const T b) { return T(int(a) & int(b)); } \ 0026 inline T &operator &= ( T &a, const T b) { return a = a & b; } \ 0027 inline T operator ^ (const T a, const T b) { return T(int(a) ^ int(b)); } \ 0028 inline T &operator ^= ( T &a, const T b) { return a = a ^ b; } \ 0029 inline T operator ~ (const T a) { return T(~int(a)); } 0030 0031 0032 #endif // __XRD_OUC_ENUM_HH__
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |