qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
DocumentCache Class Reference

#include <documentcache.h>

Collaboration diagram for DocumentCache:
Collaboration graph

Public Member Functions

QTextDocument * pop ()
 
void push (QTextDocument *doc)
 

Static Public Member Functions

static DocumentCachegetInstance ()
 Returns the singleton instance. More...
 

Private Member Functions

 DocumentCache ()=default
 
 ~DocumentCache ()
 
 DocumentCache (DocumentCache &)=delete
 
DocumentCacheoperator= (const DocumentCache &)=delete
 

Private Attributes

QStack< QTextDocument * > documents
 

Detailed Description

Definition at line 26 of file documentcache.h.

Constructor & Destructor Documentation

◆ DocumentCache() [1/2]

DocumentCache::DocumentCache ( )
privatedefault

◆ ~DocumentCache()

DocumentCache::~DocumentCache ( )
private

Definition at line 23 of file documentcache.cpp.

◆ DocumentCache() [2/2]

DocumentCache::DocumentCache ( DocumentCache )
privatedelete

Member Function Documentation

◆ getInstance()

DocumentCache & DocumentCache::getInstance ( )
static

Returns the singleton instance.

Definition at line 48 of file documentcache.cpp.

Here is the caller graph for this function:

◆ operator=()

DocumentCache& DocumentCache::operator= ( const DocumentCache )
privatedelete

◆ pop()

QTextDocument * DocumentCache::pop ( )

Definition at line 29 of file documentcache.cpp.

Here is the caller graph for this function:

◆ push()

void DocumentCache::push ( QTextDocument *  doc)

Definition at line 37 of file documentcache.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ documents

QStack<QTextDocument*> DocumentCache::documents
private

Definition at line 41 of file documentcache.h.


The documentation for this class was generated from the following files: