LLVM 20.0.0git
Public Member Functions | List of all members
llvm::MachO::PackedVersion Class Reference

#include "llvm/TextAPI/PackedVersion.h"

Public Member Functions

constexpr PackedVersion ()=default
 
constexpr PackedVersion (uint32_t RawVersion)
 
 PackedVersion (unsigned Major, unsigned Minor, unsigned Subminor)
 
 PackedVersion (VersionTuple VT)
 
bool empty () const
 
unsigned getMajor () const
 Retrieve the major version number.
 
unsigned getMinor () const
 Retrieve the minor version number, if provided.
 
unsigned getSubminor () const
 Retrieve the subminor version number, if provided.
 
bool parse32 (StringRef Str)
 
std::pair< bool, boolparse64 (StringRef Str)
 
bool operator< (const PackedVersion &O) const
 
bool operator== (const PackedVersion &O) const
 
bool operator!= (const PackedVersion &O) const
 
uint32_t rawValue () const
 
 operator std::string () const
 
void print (raw_ostream &OS) const
 

Detailed Description

Definition at line 27 of file PackedVersion.h.

Constructor & Destructor Documentation

◆ PackedVersion() [1/4]

constexpr llvm::MachO::PackedVersion::PackedVersion ( )
constexprdefault

Referenced by PackedVersion().

◆ PackedVersion() [2/4]

constexpr llvm::MachO::PackedVersion::PackedVersion ( uint32_t  RawVersion)
inlineconstexpr

Definition at line 32 of file PackedVersion.h.

◆ PackedVersion() [3/4]

llvm::MachO::PackedVersion::PackedVersion ( unsigned  Major,
unsigned  Minor,
unsigned  Subminor 
)
inline

Definition at line 33 of file PackedVersion.h.

◆ PackedVersion() [4/4]

llvm::MachO::PackedVersion::PackedVersion ( VersionTuple  VT)
inline

Member Function Documentation

◆ empty()

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

Definition at line 45 of file PackedVersion.h.

◆ getMajor()

unsigned llvm::MachO::PackedVersion::getMajor ( ) const
inline

Retrieve the major version number.

Definition at line 48 of file PackedVersion.h.

Referenced by print().

◆ getMinor()

unsigned llvm::MachO::PackedVersion::getMinor ( ) const
inline

Retrieve the minor version number, if provided.

Definition at line 51 of file PackedVersion.h.

Referenced by print().

◆ getSubminor()

unsigned llvm::MachO::PackedVersion::getSubminor ( ) const
inline

Retrieve the subminor version number, if provided.

Definition at line 54 of file PackedVersion.h.

Referenced by print().

◆ operator std::string()

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

Definition at line 103 of file PackedVersion.cpp.

References OS, and llvm::print().

◆ operator!=()

bool llvm::MachO::PackedVersion::operator!= ( const PackedVersion O) const
inline

Definition at line 63 of file PackedVersion.h.

◆ operator<()

bool llvm::MachO::PackedVersion::operator< ( const PackedVersion O) const
inline

Definition at line 59 of file PackedVersion.h.

◆ operator==()

bool llvm::MachO::PackedVersion::operator== ( const PackedVersion O) const
inline

Definition at line 61 of file PackedVersion.h.

◆ parse32()

bool llvm::MachO::PackedVersion::parse32 ( StringRef  Str)

◆ parse64()

std::pair< bool, bool > llvm::MachO::PackedVersion::parse64 ( StringRef  Str)

◆ print()

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

Definition at line 110 of file PackedVersion.cpp.

References llvm::format(), getMajor(), getMinor(), getSubminor(), and OS.

◆ rawValue()

uint32_t llvm::MachO::PackedVersion::rawValue ( ) const
inline

Definition at line 65 of file PackedVersion.h.


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