ParameterBase class
Derived classes
-
template<typename T>class Parameter
-
template<u32 N>class ParameterCurve
-
template<typename T>class Parameter
-
template<typename T>class Parameter
Public types
- enum class ParameterType { Bool = 0, F32 = 1, Int = 2, Vec2 = 3, Vec3 = 4, Vec4 = 5, Color = 6, String32 = 7, String64 = 8, Curve1 = 9, Curve2 = 10, Curve3 = 11, Curve4 = 12, BufferInt = 13, BufferF32 = 14, String256 = 15, Quat = 16, U32 = 17, BufferU32 = 18, BufferBinary = 19, StringRef = 20, Special = 21 }
Public static functions
- static auto getTagName() -> const char*
- static auto getAttributeNameString() -> const char*
- static auto getAttributeTypeString() -> const char*
- static auto getAttributeValueString() -> const char*
- static auto getParameterTypeName(ParameterType type) -> const char*
-
static auto calcHash(const sead::
SafeString& key) -> u32
Constructors, destructors, conversion operators
- ParameterBase()
-
ParameterBase(const sead::
SafeString& name, const sead:: SafeString& label, IParameterObj* param_obj) -
ParameterBase(const sead::
SafeString& name, const sead:: SafeString& label, const sead:: SafeString& meta, IParameterObj* param_obj) - ~ParameterBase() virtual
Public functions
-
void initializeListNode(const sead::
SafeString& name, const sead:: SafeString& label, const sead:: SafeString& meta, IParameterObj* param_obj) - auto getNameHash() const -> u32
-
auto getParameterName() const -> sead::
SafeString -
auto getName() const -> sead::
SafeString -
auto getLabel() const -> sead::
SafeString -
auto getMeta() const -> sead::
SafeString - auto getNext() const -> ParameterBase*
- auto isSafeType(ParameterType type) const -> bool
- auto verifyType(ParameterType type) const -> bool
- auto copy(const ParameterBase& other) -> bool virtual
- void copyUnsafe(const ParameterBase& other) virtual
- auto copyLerp(const ParameterBase& param1, const ParameterBase& param2, f32 t) -> bool virtual
-
void writeToXML(sead::XmlElement* element,
sead::
Heap* heap) virtual - auto readFromXML(const sead::XmlElement& element, bool x) -> bool virtual
- auto getParameterType() const -> ParameterType pure virtual
- auto ptr() const -> const void* pure virtual
- auto ptr() -> void* pure virtual
- auto typePtr() const -> const void* pure virtual
- auto typePtr() -> void* pure virtual
- auto size() const -> u32 pure virtual
- auto calcBinarizeSize() const -> u32 virtual
-
auto clone(sead::
Heap* heap, IParameterObj* obj) const -> ParameterBase* pure virtual - void applyResource(ResParameter res)
- void applyResource(ResParameter res, f32 t)
-
void applyString(const sead::
SafeString& string, bool x) -
void postApplyResource_(const void*,
size_
t) virtual -
void createByTypeName(const sead::
SafeString& a, const sead:: SafeString& b) - auto isBinary() const -> bool virtual
- auto isBinaryInternalBuffer() const -> bool virtual
- auto isInterpolatable() const -> bool
-
auto binarize(void* binary) const -> size_
t - auto makeZero() -> bool
-
template<typename T>auto ptrT() -> T*
-
template<typename T>auto ptrT() const -> const T*
Protected functions
-
template<typename T>void copyLerp_(const ParameterBase& param1, const ParameterBase& param2, f32 t)
-
template<>void copyLerp_(const ParameterBase& param1, const ParameterBase& param2, f32 t)
Protected variables
Function documentation
#include <src/utility/aglParameter.cpp>
template<>
void agl:: utl:: ParameterBase:: copyLerp_(const ParameterBase& param1,
const ParameterBase& param2,
f32 t) protected