CARLA
Public Member Functions | Public Attributes | List of all members
carla::rpc::FloatColor Struct Reference

#include <FloatColor.h>

+ Collaboration diagram for carla::rpc::FloatColor:

Public Member Functions

 FloatColor ()=default
 
 FloatColor (const FloatColor &)=default
 
 FloatColor (float r, float g, float b, float a=1.f)
 
 MSGPACK_DEFINE_ARRAY (r, g, b, a)
 
bool operator!= (const FloatColor &rhs) const
 
FloatColoroperator= (const FloatColor &)=default
 
bool operator== (const FloatColor &rhs) const
 

Public Attributes

float a = 1.f
 
float b = 0.f
 
float g = 0.f
 
float r = 0.f
 

Detailed Description

Definition at line 23 of file FloatColor.h.

Constructor & Destructor Documentation

◆ FloatColor() [1/3]

carla::rpc::FloatColor::FloatColor ( )
default

Referenced by operator!=().

+ Here is the caller graph for this function:

◆ FloatColor() [2/3]

carla::rpc::FloatColor::FloatColor ( const FloatColor )
default

◆ FloatColor() [3/3]

carla::rpc::FloatColor::FloatColor ( float  r,
float  g,
float  b,
float  a = 1.f 
)
inline

Definition at line 34 of file FloatColor.h.

References operator=().

+ Here is the call graph for this function:

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

carla::rpc::FloatColor::MSGPACK_DEFINE_ARRAY ( r  ,
g  ,
b  ,
a   
)

Referenced by operator!=().

+ Here is the caller graph for this function:

◆ operator!=()

bool carla::rpc::FloatColor::operator!= ( const FloatColor rhs) const
inline

Definition at line 43 of file FloatColor.h.

References b, FloatColor(), g, MSGPACK_DEFINE_ARRAY(), and r.

+ Here is the call graph for this function:

◆ operator=()

FloatColor& carla::rpc::FloatColor::operator= ( const FloatColor )
default

Referenced by FloatColor().

+ Here is the caller graph for this function:

◆ operator==()

bool carla::rpc::FloatColor::operator== ( const FloatColor rhs) const
inline

Definition at line 39 of file FloatColor.h.

References a, b, g, and r.

Member Data Documentation

◆ a

float carla::rpc::FloatColor::a = 1.f

Definition at line 29 of file FloatColor.h.

Referenced by operator==().

◆ b

float carla::rpc::FloatColor::b = 0.f

Definition at line 28 of file FloatColor.h.

Referenced by operator!=(), and operator==().

◆ g

float carla::rpc::FloatColor::g = 0.f

Definition at line 27 of file FloatColor.h.

Referenced by operator!=(), and operator==().

◆ r

float carla::rpc::FloatColor::r = 0.f

Definition at line 26 of file FloatColor.h.

Referenced by operator!=(), and operator==().


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