ICU 57.1 57.1
Public Member Functions
EnumSet< T, minValue, limitValue > Class Template Reference

enum bitset for boolean fields. More...

#include <enumset.h>

Public Member Functions

 EnumSet (const EnumSet< T, minValue, limitValue > &other)
 
void clear ()
 
void add (T toAdd)
 
void remove (T toRemove)
 
int32_t contains (T toCheck) const
 
void set (T toSet, int32_t v)
 
int32_t get (T toCheck) const
 
UBool isValidEnum (T toCheck) const
 
UBool isValidValue (int32_t v) const
 
const EnumSet< T, minValue, limitValue > & operator= (const EnumSet< T, minValue, limitValue > &other)
 
uint32_t getAll () const
 

Detailed Description

template<typename T, uint32_t minValue, uint32_t limitValue>
class EnumSet< T, minValue, limitValue >

enum bitset for boolean fields.

Similar to Java EnumSet<>. Needs to range check. Used for private instance variables.

Internal:
Do not use. This API is for internal use only.

Definition at line 31 of file enumset.h.

Constructor & Destructor Documentation

◆ EnumSet() [1/2]

template<typename T , uint32_t minValue, uint32_t limitValue>
EnumSet< T, minValue, limitValue >::EnumSet ( )
inline

Definition at line 33 of file enumset.h.

◆ EnumSet() [2/2]

template<typename T , uint32_t minValue, uint32_t limitValue>
EnumSet< T, minValue, limitValue >::EnumSet ( const EnumSet< T, minValue, limitValue > &  other)
inline

Definition at line 34 of file enumset.h.

◆ ~EnumSet()

template<typename T , uint32_t minValue, uint32_t limitValue>
EnumSet< T, minValue, limitValue >::~EnumSet ( )
inline

Definition at line 35 of file enumset.h.

Member Function Documentation

◆ add()

template<typename T , uint32_t minValue, uint32_t limitValue>
void EnumSet< T, minValue, limitValue >::add ( T  toAdd)
inline

Definition at line 38 of file enumset.h.

◆ clear()

template<typename T , uint32_t minValue, uint32_t limitValue>
void EnumSet< T, minValue, limitValue >::clear ( )
inline

Definition at line 37 of file enumset.h.

◆ contains()

template<typename T , uint32_t minValue, uint32_t limitValue>
int32_t EnumSet< T, minValue, limitValue >::contains ( T  toCheck) const
inline

Definition at line 40 of file enumset.h.

◆ get()

template<typename T , uint32_t minValue, uint32_t limitValue>
int32_t EnumSet< T, minValue, limitValue >::get ( T  toCheck) const
inline

Definition at line 42 of file enumset.h.

◆ getAll()

template<typename T , uint32_t minValue, uint32_t limitValue>
uint32_t EnumSet< T, minValue, limitValue >::getAll ( ) const
inline

Definition at line 50 of file enumset.h.

◆ isValidEnum()

template<typename T , uint32_t minValue, uint32_t limitValue>
UBool EnumSet< T, minValue, limitValue >::isValidEnum ( T  toCheck) const
inline

Definition at line 43 of file enumset.h.

◆ isValidValue()

template<typename T , uint32_t minValue, uint32_t limitValue>
UBool EnumSet< T, minValue, limitValue >::isValidValue ( int32_t  v) const
inline

Definition at line 44 of file enumset.h.

◆ operator=()

template<typename T , uint32_t minValue, uint32_t limitValue>
const EnumSet< T, minValue, limitValue > & EnumSet< T, minValue, limitValue >::operator= ( const EnumSet< T, minValue, limitValue > &  other)
inline

Definition at line 45 of file enumset.h.

◆ remove()

template<typename T , uint32_t minValue, uint32_t limitValue>
void EnumSet< T, minValue, limitValue >::remove ( T  toRemove)
inline

Definition at line 39 of file enumset.h.

◆ set()

template<typename T , uint32_t minValue, uint32_t limitValue>
void EnumSet< T, minValue, limitValue >::set ( T  toSet,
int32_t  v 
)
inline

Definition at line 41 of file enumset.h.


The documentation for this class was generated from the following file: