Doxygen
PageListContext类 参考

#include <context.h>

+ 类 PageListContext 继承关系图:
+ PageListContext 的协作图:

class  Private
 

Public 成员函数

virtual uint count () const
 Returns the number of elements in the list 更多...
 
virtual TemplateVariant at (uint index) const
 Returns the element at index position index. 更多...
 
virtual TemplateListIntf::ConstIteratorPtr createIterator () const
 Creates a new iterator for this list. 更多...
 
void addPages (const PageLinkedMap &pages)
 
 PageListContext (const PageLinkedMap &pages)
 
virtual ~PageListContext ()
 
- Public 成员函数 继承自 TemplateListIntf
virtual ~TemplateListIntf ()
 Destroys the list 更多...
 

静态 Public 成员函数

static TemplateListIntfPtr alloc (const PageLinkedMap &pages)
 

Private 属性

std::unique_ptr< Privatep
 

额外继承的成员函数

- Public 类型 继承自 TemplateListIntf
using ConstIteratorPtr = std::unique_ptr< ConstIterator >
 

详细描述

在文件 context.h710 行定义.

构造及析构函数说明

◆ PageListContext()

PageListContext::PageListContext ( const PageLinkedMap pages)

在文件 context.cpp6641 行定义.

6641  : p(std::make_unique<Private>())
6642 {
6643  p->addPages(pages);
6644 }

引用了 p.

◆ ~PageListContext()

PageListContext::~PageListContext ( )
virtual

在文件 context.cpp6646 行定义.

6647 {
6648 }

成员函数说明

◆ addPages()

void PageListContext::addPages ( const PageLinkedMap pages)

◆ alloc()

static TemplateListIntfPtr PageListContext::alloc ( const PageLinkedMap pages)
inlinestatic

在文件 context.h713 行定义.

714  { return std::static_pointer_cast<TemplateListIntf>(std::make_shared<PageListContext>(pages)); }

被这些函数引用 generateOutputViaTemplate().

◆ at()

TemplateVariant PageListContext::at ( uint  index) const
virtual

Returns the element at index position index.

实现了 TemplateListIntf.

在文件 context.cpp6656 行定义.

6657 {
6658  return p->at(index);
6659 }

引用了 p.

◆ count()

uint PageListContext::count ( ) const
virtual

Returns the number of elements in the list

实现了 TemplateListIntf.

在文件 context.cpp6651 行定义.

6652 {
6653  return p->count();
6654 }

引用了 p.

◆ createIterator()

TemplateListIntf::ConstIteratorPtr PageListContext::createIterator ( ) const
virtual

Creates a new iterator for this list.

注解
the user should call delete on the returned pointer.

实现了 TemplateListIntf.

在文件 context.cpp6661 行定义.

6662 {
6663  return p->createIterator();
6664 }

引用了 p.

类成员变量说明

◆ p

std::unique_ptr<Private> PageListContext::p
private

在文件 context.h727 行定义.

被这些函数引用 at(), count(), createIterator() , 以及 PageListContext().


该类的文档由以下文件生成:
PageListContext::p
std::unique_ptr< Private > p
Definition: context.h:727