evan 2026.1.4
Evan
Loading...
Searching...
No Matches
evan::Version Class Reference

Represents a software version using major, minor, and patch numbers. More...

#include <headers/evan/Version.hpp>

Inheritance diagram for evan::Version:
Collaboration diagram for evan::Version:

Public Member Functions

 Version (unsigned int major, unsigned int minor, unsigned int patch)
 Constructs a Version object with the specified major, minor, and patch numbers.
 
 ~Version ()
 Destructor for the Version class.
 
uint32_t to_uint32_t ()
 Converts the version information to a 32-bit unsigned integer.
 

Public Attributes

unsigned int _major
 
unsigned int _minor
 
unsigned int _patch
 

Detailed Description

Represents a software version using major, minor, and patch numbers.

The Version class encapsulates version information and provides a method to convert the version to a 32-bit unsigned integer representation.

Definition at line 32 of file Version.hpp.

Constructor & Destructor Documentation

◆ Version()

evan::Version::Version ( unsigned int  major,
unsigned int  minor,
unsigned int  patch 
)

Constructs a Version object with the specified major, minor, and patch numbers.

Parameters
majorThe major version number.
minorThe minor version number.
patchThe patch version number.

◆ ~Version()

evan::Version::~Version ( )

Destructor for the Version class.

Cleans up any resources used by the Version instance. Currently, this destructor does not perform any specific actions.

Member Function Documentation

◆ to_uint32_t()

uint32_t evan::Version::to_uint32_t ( )

Converts the version information to a 32-bit unsigned integer.

This function encodes the major, minor, and patch version numbers into a single 32-bit unsigned integer using the VK_MAKE_VERSION macro, which is commonly used for Vulkan versioning.

Returns
uint32_t The encoded version as a 32-bit unsigned integer.

Member Data Documentation

◆ _major

evan::Version::_major

The major version number.

Definition at line 66 of file Version.hpp.

◆ _minor

evan::Version::_minor

The minor version number.

Definition at line 67 of file Version.hpp.

◆ _patch

evan::Version::_patch

The patch version number.

Definition at line 68 of file Version.hpp.


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