CARLA
Public Member Functions | Private Attributes | List of all members
carla::client::ActorAttributeValue Class Reference

#include <ActorAttribute.h>

+ Inheritance diagram for carla::client::ActorAttributeValue:
+ Collaboration diagram for carla::client::ActorAttributeValue:

Public Member Functions

 ActorAttributeValue (rpc::ActorAttributeValue attribute)
 
 ActorAttributeValue (ActorAttributeValue const &)=default
 
 ActorAttributeValue (ActorAttributeValue &&)=default
 
virtual const std::string & GetId () const override
 
virtual rpc::ActorAttributeType GetType () const override
 
virtual const std::string & GetValue () const override
 
 operator rpc::ActorAttributeValue () const
 Serialize this object as a carla::rpc::ActorAttributeValue. More...
 
ActorAttributeValueoperator= (ActorAttributeValue const &)=default
 
ActorAttributeValueoperator= (ActorAttributeValue &&)=default
 
virtual ~ActorAttributeValue ()=default
 
- Public Member Functions inherited from carla::client::ActorAttributeValueAccess
 ActorAttributeValueAccess ()=default
 
 ActorAttributeValueAccess (ActorAttributeValueAccess const &)=default
 
 ActorAttributeValueAccess (ActorAttributeValueAccess &&)=default
 
template<>
bool As () const
 
template<>
int As () const
 
template<>
float As () const
 
template<typename T >
As () const
 Cast the value to the given type. More...
 
template<rpc::ActorAttributeType Type>
auto As () const
 Cast the value to the type specified by the enum carla::rpc::ActorAttributeType. More...
 
template<>
bool As () const
 
template<>
int As () const
 
template<>
float As () const
 
template<>
std::string As () const
 
template<>
sensor::data::Color As () const
 
template<typename T >
bool operator!= (const T &rhs) const
 
ActorAttributeValueAccessoperator= (ActorAttributeValueAccess const &)=default
 
ActorAttributeValueAccessoperator= (ActorAttributeValueAccess &&)=default
 
template<typename T >
bool operator== (const T &rhs) const
 
template<>
bool operator== (const ActorAttributeValueAccess &rhs) const
 
template<>
bool operator== (const ActorAttributeValue &rhs) const
 
template<>
bool operator== (const ActorAttribute &rhs) const
 
virtual ~ActorAttributeValueAccess ()=default
 

Private Attributes

rpc::ActorAttributeValue _attribute
 

Additional Inherited Members

- Protected Member Functions inherited from carla::client::ActorAttributeValueAccess
void Validate () const
 

Detailed Description

Definition at line 141 of file LibCarla/source/carla/client/ActorAttribute.h.

Constructor & Destructor Documentation

◆ ActorAttributeValue() [1/3]

carla::client::ActorAttributeValue::ActorAttributeValue ( rpc::ActorAttributeValue  attribute)
inline

◆ ActorAttributeValue() [2/3]

carla::client::ActorAttributeValue::ActorAttributeValue ( ActorAttributeValue const &  )
default

◆ ActorAttributeValue() [3/3]

carla::client::ActorAttributeValue::ActorAttributeValue ( ActorAttributeValue &&  )
default

◆ ~ActorAttributeValue()

virtual carla::client::ActorAttributeValue::~ActorAttributeValue ( )
virtualdefault

Member Function Documentation

◆ GetId()

virtual const std::string& carla::client::ActorAttributeValue::GetId ( ) const
inlineoverridevirtual

◆ GetType()

virtual rpc::ActorAttributeType carla::client::ActorAttributeValue::GetType ( ) const
inlineoverridevirtual

◆ GetValue()

virtual const std::string& carla::client::ActorAttributeValue::GetValue ( ) const
inlineoverridevirtual

◆ operator rpc::ActorAttributeValue()

carla::client::ActorAttributeValue::operator rpc::ActorAttributeValue ( ) const
inline

Serialize this object as a carla::rpc::ActorAttributeValue.

Definition at line 165 of file LibCarla/source/carla/client/ActorAttribute.h.

◆ operator=() [1/2]

ActorAttributeValue& carla::client::ActorAttributeValue::operator= ( ActorAttributeValue const &  )
default

◆ operator=() [2/2]

ActorAttributeValue& carla::client::ActorAttributeValue::operator= ( ActorAttributeValue &&  )
default

Member Data Documentation

◆ _attribute

rpc::ActorAttributeValue carla::client::ActorAttributeValue::_attribute
private

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