MEPP2 Project
Public Member Functions | Public Attributes | List of all members
Color_Unit Struct Reference

Struct of integer color components. More...

#include <Compression_Valence_Component.h>

Collaboration diagram for Color_Unit:
Collaboration graph

Public Member Functions

 Color_Unit ()
 
 Color_Unit (int _c0, int _c1, int _c2)
 
const Color_Unit operator+ (const Color_Unit &m_color) const
 Addition operator. More...
 
const Color_Unit operator- (const Color_Unit &m_color) const
 Negation operator. More...
 
bool operator== (const Color_Unit &m_color) const
 Comparison operatior ==. More...
 
bool operator!= (const Color_Unit &m_color) const
 Comparison operatior !=. More...
 

Public Attributes

int c0
 
int c1
 
int c2
 

Detailed Description

Struct of integer color components.

Definition at line 118 of file Compression_Valence_Component.h.

Constructor & Destructor Documentation

◆ Color_Unit() [1/2]

Color_Unit::Color_Unit ( )
inline

Definition at line 124 of file Compression_Valence_Component.h.

◆ Color_Unit() [2/2]

Color_Unit::Color_Unit ( int  _c0,
int  _c1,
int  _c2 
)
inline

Definition at line 128 of file Compression_Valence_Component.h.

Member Function Documentation

◆ operator!=()

bool Color_Unit::operator!= ( const Color_Unit m_color) const
inline

Comparison operatior !=.

Parameters
m_colorThe col.

Definition at line 196 of file Compression_Valence_Component.h.

◆ operator+()

const Color_Unit Color_Unit::operator+ ( const Color_Unit m_color) const
inline

Addition operator.

Parameters
m_colorThe color.
Returns
The result of the operation.

Definition at line 146 of file Compression_Valence_Component.h.

◆ operator-()

const Color_Unit Color_Unit::operator- ( const Color_Unit m_color) const
inline

Negation operator.

Parameters
m_colorThe color.
Returns
The result of the operation.

Definition at line 165 of file Compression_Valence_Component.h.

◆ operator==()

bool Color_Unit::operator== ( const Color_Unit m_color) const
inline

Comparison operatior ==.

Parameters
m_colorThe col.
Returns
true if the parameters are considered equivalent.

Definition at line 184 of file Compression_Valence_Component.h.

Member Data Documentation

◆ c0

int Color_Unit::c0

Definition at line 120 of file Compression_Valence_Component.h.

◆ c1

int Color_Unit::c1

Definition at line 121 of file Compression_Valence_Component.h.

◆ c2

int Color_Unit::c2

Definition at line 122 of file Compression_Valence_Component.h.


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