Doxygen
PropertyMap< T > 模板类 参考

Class representing a mapping of properties and the corresponding getter function. 更多...

+ 类 PropertyMap< T > 继承关系图:

Public 类型

using Map = std::map< std::string, TemplateVariant(T::*)() const >
 

Public 成员函数

 PropertyMap (std::initializer_list< typename Map::value_type > init)
 
TemplateVariant get (const T *obj, const QCString &n) const
 
StringVector fields () const
 
Mapmap ()
 

Private 属性

const Map m_map
 

详细描述

template<class T>
class PropertyMap< T >

Class representing a mapping of properties and the corresponding getter function.

The map should be initialized at initialization time.

在文件 context.cpp118 行定义.

成员类型定义说明

◆ Map

template<class T >
using PropertyMap< T >::Map = std::map< std::string, TemplateVariant(T::*)() const >

在文件 context.cpp121 行定义.

构造及析构函数说明

◆ PropertyMap()

template<class T >
PropertyMap< T >::PropertyMap ( std::initializer_list< typename Map::value_type >  init)
inline

在文件 context.cpp123 行定义.

124  : m_map(init) {}

成员函数说明

◆ fields()

template<class T >
StringVector PropertyMap< T >::fields ( ) const
inline

在文件 context.cpp131 行定义.

132  {
133  StringVector result;
134  result.reserve(m_map.size());
135  for (const auto &imap : m_map) result.push_back(imap.first);
136  return result;
137  }

被这些函数引用 DoxygenContext::Private::fields(), TranslateContext::Private::fields(), IncludeInfoContext::Private::fields(), ClassContext::Private::fields(), NamespaceContext::Private::fields(), FileContext::Private::fields(), DirContext::Private::fields(), PageContext::Private::fields(), MemberContext::Private::fields(), ConceptContext::Private::fields(), ModuleContext::Private::fields(), ClassIndexContext::Private::fields(), ClassHierarchyContext::Private::fields(), NestingNodeContext::Private::fields(), ClassTreeContext::Private::fields(), NamespaceTreeContext::Private::fields(), FileTreeContext::Private::fields(), PageTreeContext::Private::fields(), ConceptTreeContext::Private::fields(), ModuleTreeContext::Private::fields(), ExampleTreeContext::Private::fields(), NavPathElemContext::Private::fields(), GlobalsIndexContext::Private::fields(), ClassMembersIndexContext::Private::fields(), NamespaceMembersIndexContext::Private::fields(), InheritanceGraphContext::Private::fields(), InheritanceNodeContext::Private::fields(), MemberInfoContext::Private::fields(), MemberGroupInfoContext::Private::fields(), MemberListInfoContext::Private::fields(), InheritedMemberInfoContext::Private::fields(), ArgumentContext::Private::fields(), SymbolContext::Private::fields(), SymbolGroupContext::Private::fields(), SymbolIndexContext::Private::fields() , 以及 SearchIndexContext::Private::fields().

◆ get()

template<class T >
TemplateVariant PropertyMap< T >::get ( const T *  obj,
const QCString n 
) const
inline

◆ map()

template<class T >
Map& PropertyMap< T >::map ( )
inline

在文件 context.cpp139 行定义.

139 { return m_map; }

类成员变量说明

◆ m_map


该类的文档由以下文件生成:
StringVector
std::vector< std::string > StringVector
Definition: containers.h:32
Config::init
void init()
QCString::str
std::string str() const
Definition: qcstring.h:442
TemplateVariant
Variant type which can hold one value of a fixed set of types.
Definition: template.h:98
PropertyMap::m_map
const Map m_map
Definition: context.cpp:142