#include <ActorAttribute.h>
Inheritance diagram for carla::client::ActorAttributeValueAccess:Public Member Functions | |
| ActorAttributeValueAccess ()=default | |
| ActorAttributeValueAccess (ActorAttributeValueAccess const &)=default | |
| ActorAttributeValueAccess (ActorAttributeValueAccess &&)=default | |
| template<> | |
| bool | As () const |
| template<> | |
| int | As () const |
| template<> | |
| float | As () const |
| template<typename T > | |
| 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 |
| 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 const &)=default |
| ActorAttributeValueAccess & | operator= (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 |
Protected Member Functions | |
| virtual const std::string & | GetValue () const =0 |
| void | Validate () const |
Definition at line 47 of file LibCarla/source/carla/client/ActorAttribute.h.
|
default |
|
default |
|
default |
|
virtualdefault |
| bool carla::client::ActorAttributeValueAccess::As | ( | ) | const |
Definition at line 35 of file ActorAttribute.cpp.
References Bool, carla::client::ActorAttribute::GetValue(), LIBCARLA_THROW_BAD_VALUE_CAST, LIBCARLA_THROW_INVALID_VALUE, and carla::StringUtil::ToLowerCopy().
Here is the call graph for this function:| int carla::client::ActorAttributeValueAccess::As | ( | ) | const |
Definition at line 47 of file ActorAttribute.cpp.
References carla::client::ActorAttribute::GetValue(), Int, and LIBCARLA_THROW_BAD_VALUE_CAST.
Here is the call graph for this function:| float carla::client::ActorAttributeValueAccess::As | ( | ) | const |
Definition at line 53 of file ActorAttribute.cpp.
References Float, carla::client::ActorAttribute::GetValue(), LIBCARLA_THROW_BAD_VALUE_CAST, and LIBCARLA_THROW_INVALID_VALUE.
Here is the call graph for this function:| T carla::client::ActorAttributeValueAccess::As | ( | ) | const |
Cast the value to the given type.
| BadAttributeCast | if the cast fails. |
| auto carla::client::ActorAttributeValueAccess::As | ( | ) | const |
Cast the value to the type specified by the enum carla::rpc::ActorAttributeType.
| BadAttributeCast | if the cast fails. |
| bool carla::client::ActorAttributeValueAccess::As | ( | ) | const |
| int carla::client::ActorAttributeValueAccess::As | ( | ) | const |
| float carla::client::ActorAttributeValueAccess::As | ( | ) | const |
| std::string carla::client::ActorAttributeValueAccess::As | ( | ) | const |
| sensor::data::Color carla::client::ActorAttributeValueAccess::As | ( | ) | const |
|
pure virtual |
Implemented in carla::client::ActorAttribute, and carla::client::ActorAttributeValue.
|
pure virtual |
Implemented in carla::client::ActorAttribute, and carla::client::ActorAttributeValue.
Referenced by operator==().
Here is the caller graph for this function:
|
protectedpure virtual |
Implemented in carla::client::ActorAttribute, and carla::client::ActorAttributeValue.
Referenced by operator==().
Here is the caller graph for this function:
|
inline |
Definition at line 79 of file LibCarla/source/carla/client/ActorAttribute.h.
|
default |
|
default |
|
inline |
Definition at line 130 of file LibCarla/source/carla/client/ActorAttribute.h.
|
inline |
Definition at line 135 of file LibCarla/source/carla/client/ActorAttribute.h.
References carla::road::element::GetType(), GetType(), and GetValue().
Here is the call graph for this function:
|
inline |
Definition at line 179 of file LibCarla/source/carla/client/ActorAttribute.h.
|
inline |
Definition at line 236 of file LibCarla/source/carla/client/ActorAttribute.h.
|
protected |
Definition at line 91 of file ActorAttribute.cpp.
References carla::rpc::Bool, carla::rpc::Float, carla::client::ActorAttribute::GetType(), carla::rpc::Int, LIBCARLA_THROW_INVALID_VALUE, carla::rpc::RGBColor, and carla::rpc::String.
Referenced by carla::client::ActorAttribute::Set().
Here is the call graph for this function:
Here is the caller graph for this function:
1.8.13