/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Dali
{
+TypeInfo::TypeInfo() = default;
-TypeInfo::TypeInfo()
-{
-}
+TypeInfo::~TypeInfo() = default;
-TypeInfo::~TypeInfo()
-{
-}
+TypeInfo::TypeInfo(const TypeInfo& copy) = default;
-TypeInfo::TypeInfo(const TypeInfo& copy)
-: BaseHandle(copy)
-{
-}
+TypeInfo& TypeInfo::operator=(const TypeInfo& rhs) = default;
-TypeInfo& TypeInfo::operator=(const TypeInfo& rhs)
-{
- BaseHandle::operator=(rhs);
- return *this;
-}
+TypeInfo::TypeInfo(TypeInfo&& rhs) noexcept = default;
+
+TypeInfo& TypeInfo::operator=(TypeInfo&& rhs) noexcept = default;
const std::string& TypeInfo::GetName() const
{
return GetImplementation(*this).GetCreator();
}
-void TypeInfo::GetActions( TypeInfo::NameContainer& container ) const
+size_t TypeInfo::GetActionCount() const
+{
+ return GetImplementation(*this).GetActionCount();
+}
+
+std::string TypeInfo::GetActionName(size_t index)
+{
+ return GetImplementation(*this).GetActionName(static_cast<uint32_t>(index));
+}
+
+size_t TypeInfo::GetSignalCount() const
+{
+ return GetImplementation(*this).GetSignalCount();
+}
+
+std::string TypeInfo::GetSignalName(size_t index)
+{
+ return GetImplementation(*this).GetSignalName(static_cast<uint32_t>(index));
+}
+
+size_t TypeInfo::GetPropertyCount() const
{
- GetImplementation(*this).GetActions( container );
+ return GetImplementation(*this).GetPropertyCount();
}
-void TypeInfo::GetSignals( TypeInfo::NameContainer& container ) const
+void TypeInfo::GetPropertyIndices(Property::IndexContainer& indices) const
{
- GetImplementation(*this).GetSignals( container );
+ indices.Clear(); // We do not want to clear the container if called internally, so only clear here
+ GetImplementation(*this).GetPropertyIndices(indices);
}
-void TypeInfo::GetProperties( TypeInfo::NameContainer& container ) const
+std::string_view TypeInfo::GetPropertyName(Property::Index index) const
{
- GetImplementation(*this).GetProperties( container );
+ return GetImplementation(*this).GetRegisteredPropertyName(index);
}
-void TypeInfo::GetPropertyIndices( Property::IndexContainer& indices ) const
+Property::Index TypeInfo::GetChildPropertyIndex(const std::string& name) const
{
- indices.clear(); // We do not want to clear the container if called internally, so only clear here
- GetImplementation(*this).GetPropertyIndices( indices );
+ return GetImplementation(*this).GetChildPropertyIndex(Internal::ConstString(name));
}
-const std::string& TypeInfo::GetPropertyName( Property::Index index ) const
+std::string_view TypeInfo::GetChildPropertyName(Property::Index index) const
{
- return GetImplementation(*this).GetPropertyName( index );
+ return GetImplementation(*this).GetChildPropertyName(index);
+}
+
+Property::Type TypeInfo::GetChildPropertyType(Property::Index index) const
+{
+ return GetImplementation(*this).GetChildPropertyType(index);
+}
+
+void TypeInfo::GetChildPropertyIndices(Property::IndexContainer& indices) const
+{
+ indices.Clear(); // We do not want to clear the container if called internally, so only clear here
+ GetImplementation(*this).GetChildPropertyIndices(indices);
}
TypeInfo::TypeInfo(Internal::TypeInfo* internal)
}
} // namespace Dali
-