X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/51004dcb01e06fef634b61be77ed73dd61cb6db9..b801cf366c7671a99bdcef84d1e9c0ec64b36723:/icuSources/common/unicode/enumset.h diff --git a/icuSources/common/unicode/enumset.h b/icuSources/common/unicode/enumset.h index a7a2416d..5106c371 100644 --- a/icuSources/common/unicode/enumset.h +++ b/icuSources/common/unicode/enumset.h @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 2012, International Business Machines +* Copyright (C) 2012,2014 International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -21,9 +21,10 @@ U_NAMESPACE_BEGIN +/* Can't use #ifndef U_HIDE_INTERNAL_API for the entire EnumSet class, needed in .h file declarations */ /** * enum bitset for boolean fields. Similar to Java EnumSet<>. - * Needs to range check. + * Needs to range check. Used for private instance variables. * @internal */ template @@ -32,6 +33,7 @@ public: inline EnumSet() : fBools(0) {} inline EnumSet(const EnumSet& other) : fBools(other.fBools) {} inline ~EnumSet() {} +#ifndef U_HIDE_INTERNAL_API inline void clear() { fBools=0; } inline void add(T toAdd) { set(toAdd, 1); } inline void remove(T toRemove) { set(toRemove, 0); } @@ -48,6 +50,7 @@ public: inline uint32_t getAll() const { return fBools; } +#endif /* U_HIDE_INTERNAL_API */ private: inline uint32_t flag(T toCheck) const { return (1<<(toCheck-minValue)); }