![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <ParameterSchemaRegistry.h>
Collaboration diagram for Olympe::ParameterSchemaRegistry:Static Public Member Functions | |
| static ParameterSchemaRegistry & | Get () |
Private Member Functions | |
| ParameterSchemaRegistry () | |
| ~ParameterSchemaRegistry () | |
| ParameterSchemaRegistry (const ParameterSchemaRegistry &)=delete | |
| ParameterSchemaRegistry & | operator= (const ParameterSchemaRegistry &)=delete |
| void | UpdateIndices () |
Private Attributes | |
| std::vector< ComponentSchema > | m_schemas |
| std::map< std::string, size_t > | m_schemaIndex |
| std::map< std::string, std::vector< size_t > > | m_categoryIndex |
Static Private Attributes | |
| static ParameterSchemaRegistry * | s_instance = nullptr |
Definition at line 14 of file ParameterSchemaRegistry.h.
|
private |
Definition at line 7 of file ParameterSchemaRegistry.cpp.
Referenced by Get().
Here is the caller graph for this function:
|
private |
Definition at line 8 of file ParameterSchemaRegistry.cpp.
|
privatedelete |
| void ParameterSchemaRegistry::ClearAllSchemas | ( | ) |
Definition at line 42 of file ParameterSchemaRegistry.cpp.
References m_categoryIndex, m_schemaIndex, and m_schemas.
| void ParameterSchemaRegistry::ClearCache | ( | ) |
Definition at line 83 of file ParameterSchemaRegistry.cpp.
|
static |
Definition at line 10 of file ParameterSchemaRegistry.cpp.
References ParameterSchemaRegistry(), and s_instance.
Here is the call graph for this function:| const std::vector< ComponentSchema > & ParameterSchemaRegistry::GetAllSchemas | ( | ) | const |
Definition at line 36 of file ParameterSchemaRegistry.cpp.
References m_schemas.
| std::vector< std::string > ParameterSchemaRegistry::GetCategories | ( | ) | const |
Definition at line 54 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and m_categoryIndex.
Here is the call graph for this function:| size_t ParameterSchemaRegistry::GetCategoryCount | ( | ) | const |
Definition at line 86 of file ParameterSchemaRegistry.cpp.
References m_categoryIndex.
| std::vector< ComponentSchema > ParameterSchemaRegistry::GetDeprecatedSchemas | ( | ) | const |
Definition at line 93 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and m_schemas.
Here is the call graph for this function:| const ParameterDefinition * ParameterSchemaRegistry::GetParameterDefinition | ( | const std::string & | componentName, |
| const std::string & | parameterName | ||
| ) | const |
Definition at line 60 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and GetSchema().
Here is the call graph for this function:| std::vector< ParameterDefinition > ParameterSchemaRegistry::GetParametersForComponent | ( | const std::string & | componentName | ) | const |
Definition at line 67 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and GetSchema().
Here is the call graph for this function:| const ComponentSchema * ParameterSchemaRegistry::GetSchema | ( | const std::string & | componentName | ) | const |
Definition at line 29 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), m_schemaIndex, and m_schemas.
Referenced by GetParameterDefinition(), GetParametersForComponent(), and IsSchemaDeprecated().
Here is the call graph for this function:
Here is the caller graph for this function:| size_t ParameterSchemaRegistry::GetSchemaCount | ( | ) | const |
Definition at line 85 of file ParameterSchemaRegistry.cpp.
References m_schemas.
| std::vector< std::string > ParameterSchemaRegistry::GetSchemaNames | ( | ) | const |
Definition at line 45 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and m_schemas.
Here is the call graph for this function:| std::vector< ComponentSchema > ParameterSchemaRegistry::GetSchemasByCategory | ( | const std::string & | category | ) | const |
Definition at line 48 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and m_schemas.
Referenced by GetSchemasInCategory().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< ComponentSchema > ParameterSchemaRegistry::GetSchemasInCategory | ( | const std::string & | category | ) | const |
Definition at line 57 of file ParameterSchemaRegistry.cpp.
References GetSchemasByCategory().
Here is the call graph for this function:| size_t ParameterSchemaRegistry::GetTotalParameterCount | ( | ) | const |
Definition at line 87 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and m_schemas.
Here is the call graph for this function:Definition at line 26 of file ParameterSchemaRegistry.cpp.
References m_schemaIndex.
Definition at line 90 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and GetSchema().
Here is the call graph for this function:Definition at line 40 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:Definition at line 39 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:
|
privatedelete |
| void ParameterSchemaRegistry::RebuildCategoryIndex | ( | ) |
Definition at line 80 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), m_categoryIndex, and m_schemas.
Here is the call graph for this function:| void ParameterSchemaRegistry::RegisterSchema | ( | const ComponentSchema & | schema | ) |
Definition at line 16 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), m_schemas, and UpdateIndices().
Here is the call graph for this function:| std::vector< ComponentSchema > ParameterSchemaRegistry::SearchSchemas | ( | const std::string & | query | ) | const |
Definition at line 51 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), and m_schemas.
Here is the call graph for this function:Definition at line 19 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), m_schemas, and UpdateIndices().
Here is the call graph for this function:
|
private |
Definition at line 96 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static(), m_categoryIndex, m_schemaIndex, and m_schemas.
Referenced by RegisterSchema(), and UnregisterSchema().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ParameterSchemaRegistry::ValidateComponent | ( | const ComponentData & | component | ) | const |
Definition at line 74 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:| bool ParameterSchemaRegistry::ValidateParameter | ( | const std::string & | componentName, |
| const std::string & | parameterName, | ||
| const std::string & | value | ||
| ) | const |
Definition at line 77 of file ParameterSchemaRegistry.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:
|
private |
Definition at line 79 of file ParameterSchemaRegistry.h.
Referenced by ClearAllSchemas(), GetCategories(), GetCategoryCount(), RebuildCategoryIndex(), and UpdateIndices().
|
private |
Definition at line 78 of file ParameterSchemaRegistry.h.
Referenced by ClearAllSchemas(), GetSchema(), HasSchema(), and UpdateIndices().
|
private |
Definition at line 77 of file ParameterSchemaRegistry.h.
Referenced by ClearAllSchemas(), GetAllSchemas(), GetDeprecatedSchemas(), GetSchema(), GetSchemaCount(), GetSchemaNames(), GetSchemasByCategory(), GetTotalParameterCount(), RebuildCategoryIndex(), RegisterSchema(), SearchSchemas(), UnregisterSchema(), and UpdateIndices().
|
staticprivate |
Definition at line 82 of file ParameterSchemaRegistry.h.
Referenced by Get().