Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::SmallSet< T > Class Template Reference

#include <locations.h>

Public Member Functions

 SmallSet ()
 
 SmallSet (uintptr_t data)
 
bool Contains (T value) const
 
void Add (T value)
 
void Remove (T value)
 
bool IsEmpty () const
 
void Clear ()
 
uintptr_t data () const
 

Detailed Description

template<typename T>
class dart::SmallSet< T >

Definition at line 642 of file locations.h.

Constructor & Destructor Documentation

◆ SmallSet() [1/2]

template<typename T >
dart::SmallSet< T >::SmallSet ( )
inline

Definition at line 644 of file locations.h.

644: data_(0) {}

◆ SmallSet() [2/2]

template<typename T >
dart::SmallSet< T >::SmallSet ( uintptr_t  data)
inlineexplicit

Definition at line 646 of file locations.h.

646: data_(data) {}
uintptr_t data() const
Definition locations.h:658

Member Function Documentation

◆ Add()

template<typename T >
void dart::SmallSet< T >::Add ( T  value)
inline

Definition at line 650 of file locations.h.

650{ data_ |= ToMask(value); }

◆ Clear()

template<typename T >
void dart::SmallSet< T >::Clear ( )
inline

Definition at line 656 of file locations.h.

656{ data_ = 0; }

◆ Contains()

template<typename T >
bool dart::SmallSet< T >::Contains ( T  value) const
inline

Definition at line 648 of file locations.h.

648{ return (data_ & ToMask(value)) != 0; }

◆ data()

template<typename T >
uintptr_t dart::SmallSet< T >::data ( ) const
inline

Definition at line 658 of file locations.h.

658{ return data_; }

◆ IsEmpty()

template<typename T >
bool dart::SmallSet< T >::IsEmpty ( ) const
inline

Definition at line 654 of file locations.h.

654{ return data_ == 0; }

◆ Remove()

template<typename T >
void dart::SmallSet< T >::Remove ( T  value)
inline

Definition at line 652 of file locations.h.

652{ data_ &= ~ToMask(value); }

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