#include <TemplatesAliases.h>
Class used to store and resolve template aliases.  
 More...
Class used to store and resolve template aliases. 
- See also
- RegisterTemplateAlias for how new aliases should be registered. 
|  | 
| static bool | addAlias (const std::string &name, const std::string &result, const bool doWarnUser) | 
|  | 
| static std::string | resolveAlias (const std::string &name) | 
|  | Get the template pointed to by the alias. Returns the input if there is no alias.  More... 
 | 
|  | 
| static const TemplateAlias * | getTemplateAlias (const std::string &name) | 
|  | Get the alias template associated with a given name. Return false & nullptr if none;.  More... 
 | 
|  | 
◆ addAlias()
  
  | 
        
          | bool sofa::defaulttype::TemplateAliases::addAlias | ( | const std::string & | name, |  
          |  |  | const std::string & | result, |  
          |  |  | const bool | doWarnUser |  
          |  | ) |  |  |  | static | 
 
Add an alias for a template
- Parameters
- 
  
    | name | name of the new alias |  | result | real template pointed to |  
 
 
 
◆ getTemplateAlias()
  
  | 
        
          | const TemplateAlias * sofa::defaulttype::TemplateAliases::getTemplateAlias | ( | const std::string & | name | ) |  |  | static | 
 
Get the alias template associated with a given name. Return false & nullptr if none;. 
 
 
◆ resolveAlias()
  
  | 
        
          | std::string sofa::defaulttype::TemplateAliases::resolveAlias | ( | const std::string & | name | ) |  |  | static | 
 
Get the template pointed to by the alias. Returns the input if there is no alias.