Bash++
Bash++ compiler internal documentation
Public Member Functions | Public Attributes | List of all members
BashVersion Struct Reference

Represents a Bash version to target for code generation. More...

#include <BashVersion.h>

Public Member Functions

 operator uint32_t () const
 
bool operator>= (const BashVersion &other) const
 
bool operator<= (const BashVersion &other) const
 
bool operator> (const BashVersion &other) const
 
bool operator< (const BashVersion &other) const
 
bool operator== (const BashVersion &other) const
 
bool operator!= (const BashVersion &other) const
 
std::string to_string () const
 
 operator std::string () const
 

Public Attributes

uint16_t major = 5
 
uint16_t minor = 2
 

Detailed Description

Represents a Bash version to target for code generation.

Copyright (C) 2025 Andrew S. Rightenburg Bash++: Bash with classes

This struct is used to specify the target Bash version for code generation. It is represented as a single unsigned 32-bit integer for efficient comparison. The high 16 bits represent the major version, and the low 16 bits represent the minor version.

Member Function Documentation

◆ operator std::string()

BashVersion::operator std::string ( ) const
inline

◆ operator uint32_t()

BashVersion::operator uint32_t ( ) const
inline

◆ operator!=()

bool BashVersion::operator!= ( const BashVersion other) const
inline

◆ operator<()

bool BashVersion::operator< ( const BashVersion other) const
inline

◆ operator<=()

bool BashVersion::operator<= ( const BashVersion other) const
inline

◆ operator==()

bool BashVersion::operator== ( const BashVersion other) const
inline

◆ operator>()

bool BashVersion::operator> ( const BashVersion other) const
inline

◆ operator>=()

bool BashVersion::operator>= ( const BashVersion other) const
inline

◆ to_string()

std::string BashVersion::to_string ( ) const
inline

Member Data Documentation

◆ major

uint16_t BashVersion::major = 5

◆ minor

uint16_t BashVersion::minor = 2

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