CARLA
Loading...
Searching...
No Matches
carla::client::ActorAttributeValueAccess Class Referenceabstract

#include <ActorAttribute.h>

Inheritance diagram for carla::client::ActorAttributeValueAccess:

Public Member Functions

 ActorAttributeValueAccess ()=default
 ActorAttributeValueAccess (ActorAttributeValueAccess &&)=default
 ActorAttributeValueAccess (ActorAttributeValueAccess const &)=default
template<>
float As () const
template<>
int As () const
template<>
bool As () const
template<>
float As () const
template<>
int As () const
template<>
bool As () const
template<rpc::ActorAttributeType Type>
auto As () const
 Cast the value to the type specified by the enum carla::rpc::ActorAttributeType.
template<typename T>
T As () const
 Cast the value to the given type.
virtual const std::string & GetId () const =0
virtual rpc::ActorAttributeType GetType () const =0
template<typename T>
bool operator!= (const T &rhs) const
ActorAttributeValueAccess & operator= (ActorAttributeValueAccess &&)=default
ActorAttributeValueAccess & operator= (ActorAttributeValueAccess const &)=default
template<>
bool operator== (const ActorAttribute &rhs) const
template<>
bool operator== (const ActorAttributeValue &rhs) const
template<>
bool operator== (const ActorAttributeValueAccess &rhs) const
template<typename T>
bool operator== (const T &rhs) const
virtual ~ActorAttributeValueAccess ()=default

Protected Member Functions

virtual const std::string & GetValue () const =0
void Validate () const

Detailed Description

Constructor & Destructor Documentation

◆ ActorAttributeValueAccess() [1/3]

carla::client::ActorAttributeValueAccess::ActorAttributeValueAccess ( )
default

◆ ActorAttributeValueAccess() [2/3]

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

◆ ActorAttributeValueAccess() [3/3]

carla::client::ActorAttributeValueAccess::ActorAttributeValueAccess ( ActorAttributeValueAccess && )
default

◆ ~ActorAttributeValueAccess()

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

Member Function Documentation

◆ As() [1/8]

template<>
float carla::client::ActorAttributeValueAccess::As ( ) const

◆ As() [2/8]

template<>
int carla::client::ActorAttributeValueAccess::As ( ) const

Definition at line 47 of file ActorAttribute.cpp.

References GetValue(), Int, and LIBCARLA_THROW_BAD_VALUE_CAST.

◆ As() [3/8]

template<>
bool carla::client::ActorAttributeValueAccess::As ( ) const

◆ As() [4/8]

template<>
float carla::client::ActorAttributeValueAccess::As ( ) const

References As().

◆ As() [5/8]

template<>
int carla::client::ActorAttributeValueAccess::As ( ) const

◆ As() [6/8]

template<>
bool carla::client::ActorAttributeValueAccess::As ( ) const

◆ As() [7/8]

template<rpc::ActorAttributeType Type>
auto carla::client::ActorAttributeValueAccess::As ( ) const

Cast the value to the type specified by the enum carla::rpc::ActorAttributeType.

Exceptions
BadAttributeCastif the cast fails.

References operator==().

◆ As() [8/8]

◆ GetId()

virtual const std::string & carla::client::ActorAttributeValueAccess::GetId ( ) const
pure virtual

◆ GetType()

virtual rpc::ActorAttributeType carla::client::ActorAttributeValueAccess::GetType ( ) const
pure virtual

◆ GetValue()

virtual const std::string & carla::client::ActorAttributeValueAccess::GetValue ( ) const
protectedpure virtual

◆ operator!=()

template<typename T>
bool carla::client::ActorAttributeValueAccess::operator!= ( const T & rhs) const
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==() [1/4]

template<>
bool carla::client::ActorAttributeValueAccess::operator== ( const ActorAttribute & rhs) const
inline

◆ operator==() [2/4]

template<>
bool carla::client::ActorAttributeValueAccess::operator== ( const ActorAttributeValue & rhs) const
inline

◆ operator==() [3/4]

template<>
bool carla::client::ActorAttributeValueAccess::operator== ( const ActorAttributeValueAccess & rhs) const
inline

◆ operator==() [4/4]

template<typename T>
bool carla::client::ActorAttributeValueAccess::operator== ( const T & rhs) const
inline

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

References As().

Referenced by As().

◆ Validate()


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