LLVM 20.0.0git
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::MachO::ArchitectureSet Class Reference

#include "llvm/TextAPI/ArchitectureSet.h"

Classes

class  arch_iterator
 

Public Types

using iterator = arch_iterator< ArchSetType >
 
using const_iterator = arch_iterator< const ArchSetType >
 

Public Member Functions

constexpr ArchitectureSet ()=default
 
constexpr ArchitectureSet (ArchSetType Raw)
 
 ArchitectureSet (Architecture Arch)
 
 ArchitectureSet (const std::vector< Architecture > &Archs)
 
void set (Architecture Arch)
 
ArchitectureSet clear (Architecture Arch)
 
bool has (Architecture Arch) const
 
bool contains (ArchitectureSet Archs) const
 
size_t count () const
 
bool empty () const
 
ArchSetType rawValue () const
 
bool hasX86 () const
 
ArchitectureSet operator& (const ArchitectureSet &o)
 
ArchitectureSet operator| (const ArchitectureSet &o)
 
ArchitectureSetoperator|= (const ArchitectureSet &o)
 
ArchitectureSetoperator|= (const Architecture &Arch)
 
bool operator== (const ArchitectureSet &o) const
 
bool operator!= (const ArchitectureSet &o) const
 
bool operator< (const ArchitectureSet &o) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
 operator std::string () const
 
 operator std::vector< Architecture > () const
 
void print (raw_ostream &OS) const
 

Static Public Member Functions

static ArchitectureSet All ()
 

Detailed Description

Definition at line 29 of file ArchitectureSet.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 153 of file ArchitectureSet.h.

◆ iterator

Definition at line 152 of file ArchitectureSet.h.

Constructor & Destructor Documentation

◆ ArchitectureSet() [1/4]

constexpr llvm::MachO::ArchitectureSet::ArchitectureSet ( )
constexprdefault

Referenced by All().

◆ ArchitectureSet() [2/4]

constexpr llvm::MachO::ArchitectureSet::ArchitectureSet ( ArchSetType  Raw)
inlineconstexpr

Definition at line 39 of file ArchitectureSet.h.

◆ ArchitectureSet() [3/4]

llvm::MachO::ArchitectureSet::ArchitectureSet ( Architecture  Arch)
inline

Definition at line 40 of file ArchitectureSet.h.

References set().

◆ ArchitectureSet() [4/4]

llvm::MachO::ArchitectureSet::ArchitectureSet ( const std::vector< Architecture > &  Archs)

Definition at line 19 of file ArchitectureSet.cpp.

References llvm::MachO::AK_unknown, and set().

Member Function Documentation

◆ All()

static ArchitectureSet llvm::MachO::ArchitectureSet::All ( )
inlinestatic

Definition at line 43 of file ArchitectureSet.h.

References ArchitectureSet().

Referenced by llvm::MachO::InterfaceFile::remove().

◆ begin() [1/2]

iterator llvm::MachO::ArchitectureSet::begin ( )
inline

Definition at line 155 of file ArchitectureSet.h.

◆ begin() [2/2]

const_iterator llvm::MachO::ArchitectureSet::begin ( ) const
inline

Definition at line 158 of file ArchitectureSet.h.

◆ clear()

ArchitectureSet llvm::MachO::ArchitectureSet::clear ( Architecture  Arch)
inline

Definition at line 51 of file ArchitectureSet.h.

Referenced by llvm::MachO::InterfaceFile::remove().

◆ contains()

bool llvm::MachO::ArchitectureSet::contains ( ArchitectureSet  Archs) const
inline

Definition at line 60 of file ArchitectureSet.h.

Referenced by llvm::MachO::Symbol::hasArchitecture().

◆ count()

size_t llvm::MachO::ArchitectureSet::count ( ) const

Definition at line 28 of file ArchitectureSet.cpp.

◆ empty()

bool llvm::MachO::ArchitectureSet::empty ( ) const
inline

Definition at line 66 of file ArchitectureSet.h.

◆ end() [1/2]

iterator llvm::MachO::ArchitectureSet::end ( )
inline

Definition at line 156 of file ArchitectureSet.h.

◆ end() [2/2]

const_iterator llvm::MachO::ArchitectureSet::end ( ) const
inline

Definition at line 159 of file ArchitectureSet.h.

◆ has()

bool llvm::MachO::ArchitectureSet::has ( Architecture  Arch) const
inline

◆ hasX86()

bool llvm::MachO::ArchitectureSet::hasX86 ( ) const
inline

◆ operator std::string()

llvm::MachO::ArchitectureSet::operator std::string ( ) const

◆ operator std::vector< Architecture >()

llvm::MachO::ArchitectureSet::operator std::vector< Architecture > ( ) const

Definition at line 52 of file ArchitectureSet.cpp.

References llvm::MachO::AK_unknown.

◆ operator!=()

bool llvm::MachO::ArchitectureSet::operator!= ( const ArchitectureSet o) const
inline

Definition at line 146 of file ArchitectureSet.h.

◆ operator&()

ArchitectureSet llvm::MachO::ArchitectureSet::operator& ( const ArchitectureSet o)
inline

Definition at line 124 of file ArchitectureSet.h.

◆ operator<()

bool llvm::MachO::ArchitectureSet::operator< ( const ArchitectureSet o) const
inline

Definition at line 150 of file ArchitectureSet.h.

◆ operator==()

bool llvm::MachO::ArchitectureSet::operator== ( const ArchitectureSet o) const
inline

Definition at line 142 of file ArchitectureSet.h.

◆ operator|()

ArchitectureSet llvm::MachO::ArchitectureSet::operator| ( const ArchitectureSet o)
inline

Definition at line 128 of file ArchitectureSet.h.

◆ operator|=() [1/2]

ArchitectureSet & llvm::MachO::ArchitectureSet::operator|= ( const Architecture Arch)
inline

Definition at line 137 of file ArchitectureSet.h.

References set().

◆ operator|=() [2/2]

ArchitectureSet & llvm::MachO::ArchitectureSet::operator|= ( const ArchitectureSet o)
inline

Definition at line 132 of file ArchitectureSet.h.

◆ print()

void llvm::MachO::ArchitectureSet::print ( raw_ostream OS) const

Definition at line 62 of file ArchitectureSet.cpp.

Referenced by llvm::MachO::operator<<().

◆ rawValue()

ArchSetType llvm::MachO::ArchitectureSet::rawValue ( ) const
inline

Definition at line 68 of file ArchitectureSet.h.

◆ set()

void llvm::MachO::ArchitectureSet::set ( Architecture  Arch)
inline

Definition at line 45 of file ArchitectureSet.h.

References llvm::MachO::AK_unknown.

Referenced by ArchitectureSet(), and operator|=().


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