Advanced Multi-Physics (AMP)
On-Line Documentation
Public Member Functions | Private Attributes | List of all members
AMP::ARGB32 Class Referencefinal

Structure to store RGBA data. More...

#include <RGBA.h>

Public Member Functions

constexpr uint8_t alpha () const
 
constexpr ARGB32 ()
 
constexpr ARGB32 (RGBA32 x)
 
constexpr ARGB32 (uint32_t x)
 
constexpr ARGB32 (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
constexpr ARGB32 (uint8_t x)
 
constexpr uint8_t blue () const
 
constexpr uint8_t green () const
 
constexpr operator double ()
 
constexpr operator float ()
 
constexpr operator uint16_t ()
 
constexpr operator uint32_t ()
 
constexpr operator uint8_t ()
 
constexpr bool operator== (const ARGB32 &rhs) const
 
constexpr uint8_t red () const
 

Private Attributes

uint32_t data
 

Detailed Description

Structure to store RGBA data.

Definition at line 52 of file RGBA.h.

Constructor & Destructor Documentation

◆ ARGB32() [1/5]

constexpr AMP::ARGB32::ARGB32 ( )
inlineconstexpr

Definition at line 55 of file RGBA.h.

◆ ARGB32() [2/5]

constexpr AMP::ARGB32::ARGB32 ( uint8_t  x)
inlineexplicitconstexpr

Definition at line 56 of file RGBA.h.

◆ ARGB32() [3/5]

constexpr AMP::ARGB32::ARGB32 ( uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255 
)
inlineexplicitconstexpr

Definition at line 57 of file RGBA.h.

◆ ARGB32() [4/5]

constexpr AMP::ARGB32::ARGB32 ( uint32_t  x)
inlineexplicitconstexpr

Definition at line 61 of file RGBA.h.

◆ ARGB32() [5/5]

constexpr AMP::ARGB32::ARGB32 ( RGBA32  x)
explicitconstexpr

Definition at line 88 of file RGBA.h.

Member Function Documentation

◆ alpha()

constexpr uint8_t AMP::ARGB32::alpha ( ) const
inlineconstexpr

Definition at line 63 of file RGBA.h.

References data.

◆ blue()

constexpr uint8_t AMP::ARGB32::blue ( ) const
inlineconstexpr

Definition at line 66 of file RGBA.h.

References data.

Referenced by operator double(), operator uint16_t(), and operator uint8_t().

◆ green()

constexpr uint8_t AMP::ARGB32::green ( ) const
inlineconstexpr

Definition at line 65 of file RGBA.h.

References data.

Referenced by operator double(), operator uint16_t(), and operator uint8_t().

◆ operator double()

constexpr AMP::ARGB32::operator double ( )
inlineconstexpr

Definition at line 71 of file RGBA.h.

References blue(), green(), and red().

◆ operator float()

constexpr AMP::ARGB32::operator float ( )
inlineconstexpr

Definition at line 70 of file RGBA.h.

◆ operator uint16_t()

constexpr AMP::ARGB32::operator uint16_t ( )
inlineconstexpr

Definition at line 69 of file RGBA.h.

References blue(), green(), and red().

◆ operator uint32_t()

constexpr AMP::ARGB32::operator uint32_t ( )
inlineconstexpr

Definition at line 67 of file RGBA.h.

References data.

◆ operator uint8_t()

constexpr AMP::ARGB32::operator uint8_t ( )
inlineconstexpr

Definition at line 68 of file RGBA.h.

References blue(), green(), and red().

◆ operator==()

constexpr bool AMP::ARGB32::operator== ( const ARGB32 rhs) const
inlineconstexpr

Definition at line 75 of file RGBA.h.

References data.

◆ red()

constexpr uint8_t AMP::ARGB32::red ( ) const
inlineconstexpr

Definition at line 64 of file RGBA.h.

References data.

Referenced by operator double(), operator uint16_t(), and operator uint8_t().

Member Data Documentation

◆ data

uint32_t AMP::ARGB32::data
private

Definition at line 78 of file RGBA.h.

Referenced by alpha(), blue(), green(), operator uint32_t(), operator==(), and red().


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



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page