Doxygen
DirContext::Private类 参考
+ 类 DirContext::Private 继承关系图:
+ DirContext::Private 的协作图:

struct  Cachable
 

Public 成员函数

 Private (const DirDef *dd)
 
virtual ~Private ()
 
TemplateVariant get (const QCString &n) const
 
StringVector fields () const
 
TemplateVariant title () const
 
TemplateVariant highlight () const
 
TemplateVariant subHighlight () const
 
TemplateVariant dirName () const
 
TemplateVariant dirs () const
 
TemplateVariant files () const
 
TemplateVariant hasDetails () const
 
TemplateVariant compoundType () const
 
TemplateVariant relPath () const
 
DotDirDepsPtr getDirDepsGraph () const
 
TemplateVariant hasDirGraph () const
 
TemplateVariant dirGraph () const
 
- Public 成员函数 继承自 DefinitionContext< DirContext::Private >
 DefinitionContext (const Definition *d)
 
virtual ~DefinitionContext ()
 

Private 成员函数

TemplateVariant createDirs () const
 
TemplateVariant createFiles () const
 
DotDirDepsPtr createDirDepsGraph () const
 

Private 属性

const DirDefm_dirDef
 
Cachable m_cachable
 

静态 Private 属性

static const PropertyMap< DirContext::Privates_inst
 

额外继承的成员函数

- Protected 成员函数 继承自 DefinitionContext< DirContext::Private >
TemplateVariant fileName () const
 
TemplateVariant anchor () const
 
TemplateVariant sourceFileName () const
 
TemplateVariant isLinkable () const
 
TemplateVariant isLinkableInProject () const
 
TemplateVariant name () const
 
TemplateVariant bareName () const
 
TemplateVariant details () const
 
TemplateVariant brief () const
 
TemplateVariant inbodyDocs () const
 
TemplateVariant dynSectionId () const
 
TemplateVariant sourceDef () const
 
TemplateVariant navigationPath () const
 
TemplateVariant partOfGroups () const
 
TemplateVariant isReference () const
 
TemplateVariant externalReference () const
 
TemplateVariant language () const
 
TemplateVariant compoundKind () const
 
QCString relPathAsString () const
 
virtual TemplateVariant relPath () const
 

详细描述

在文件 context.cpp3115 行定义.

构造及析构函数说明

◆ Private()

DirContext::Private::Private ( const DirDef dd)
inline

在文件 context.cpp3118 行定义.

3119  {
3120  }

◆ ~Private()

virtual DirContext::Private::~Private ( )
inlinevirtual

在文件 context.cpp3121 行定义.

3121 {}

成员函数说明

◆ compoundType()

TemplateVariant DirContext::Private::compoundType ( ) const
inline

在文件 context.cpp3135 行定义.

3135 { return theTranslator->trDir(FALSE,TRUE); }

引用了 FALSE, theTranslator, Translator::trDir() , 以及 TRUE.

◆ createDirDepsGraph()

DotDirDepsPtr DirContext::Private::createDirDepsGraph ( ) const
inlineprivate

在文件 context.cpp3216 行定义.

3217  {
3218  return std::make_shared<DotDirDeps>(m_dirDef);
3219  }

引用了 m_dirDef.

◆ createDirs()

TemplateVariant DirContext::Private::createDirs ( ) const
inlineprivate

在文件 context.cpp3196 行定义.

3197  {
3198  TemplateVariantList list;
3199  list.reserve(m_dirDef->subDirs().size());
3200  for(const auto dd : m_dirDef->subDirs())
3201  {
3202  list.push_back(DirContext::alloc(dd));
3203  }
3204  return TemplateImmutableList::alloc(list);
3205  }

引用了 DirContext::alloc(), TemplateImmutableList::alloc(), m_dirDef , 以及 DirDef::subDirs().

◆ createFiles()

TemplateVariant DirContext::Private::createFiles ( ) const
inlineprivate

在文件 context.cpp3206 行定义.

3207  {
3208  TemplateVariantList list;
3209  list.reserve(m_dirDef->getFiles().size());
3210  for (const auto &fd : m_dirDef->getFiles())
3211  {
3212  list.push_back(FileContext::alloc(fd));
3213  }
3214  return TemplateImmutableList::alloc(list);
3215  }

引用了 FileContext::alloc(), TemplateImmutableList::alloc(), DirDef::getFiles() , 以及 m_dirDef.

◆ dirGraph()

TemplateVariant DirContext::Private::dirGraph ( ) const
inline

在文件 context.cpp3151 行定义.

3152  {
3153  TextStream t;
3154  static bool haveDot = Config_getBool(HAVE_DOT);
3155  static bool dirGraph = Config_getBool(DIRECTORY_GRAPH);
3156  if (haveDot && dirGraph)
3157  {
3158  DotDirDepsPtr graph = getDirDepsGraph();
3159  switch (g_globals.outputFormat)
3160  {
3162  {
3163  graph->writeGraph(t,GOF_BITMAP,
3164  EOF_Html,
3167  relPathAsString(),
3168  TRUE,
3170  FALSE);
3171  }
3172  break;
3174  {
3175  graph->writeGraph(t,GOF_EPS,
3176  EOF_LaTeX,
3179  relPathAsString(),
3180  TRUE,
3182  FALSE);
3183  }
3184  break;
3185  // TODO: support other generators
3186  default:
3187  err("context.cpp: output format not yet supported\n");
3188  break;
3189  }
3191  }
3192  return TemplateVariant(t.str().c_str(),TRUE);
3193  }

引用了 addHtmlExtensionIfMissing(), Config_getBool, ContextOutputFormat_Html, ContextOutputFormat_Latex, ContextGlobals::dynSectionId, EOF_Html, EOF_LaTeX, err(), FALSE, g_globals, getDirDepsGraph(), DirDef::getOutputFileBase(), GOF_BITMAP, GOF_EPS, m_dirDef, ContextGlobals::outputDir, ContextGlobals::outputFormat, Portable::pathSeparator(), DefinitionContext< DirContext::Private >::relPathAsString(), TextStream::str() , 以及 TRUE.

被这些函数引用 hasDirGraph().

◆ dirName()

TemplateVariant DirContext::Private::dirName ( ) const
inline

在文件 context.cpp3131 行定义.

3131 { return TemplateVariant(m_dirDef->shortName()); }

引用了 m_dirDef , 以及 DirDef::shortName().

◆ dirs()

TemplateVariant DirContext::Private::dirs ( ) const
inline

在文件 context.cpp3132 行定义.

3132 { return m_cachable.dirs.get(this); }

引用了 DirContext::Private::Cachable::dirs , 以及 m_cachable.

◆ fields()

StringVector DirContext::Private::fields ( ) const
inline

在文件 context.cpp3125 行定义.

3125 { return s_inst.fields(); }

引用了 PropertyMap< T >::fields() , 以及 s_inst.

◆ files()

TemplateVariant DirContext::Private::files ( ) const
inline

在文件 context.cpp3133 行定义.

3133 { return m_cachable.files.get(this); }

引用了 DirContext::Private::Cachable::files , 以及 m_cachable.

◆ get()

TemplateVariant DirContext::Private::get ( const QCString n) const
inline

在文件 context.cpp3124 行定义.

3124 { return s_inst.get(this,n); }

引用了 PropertyMap< T >::get() , 以及 s_inst.

◆ getDirDepsGraph()

DotDirDepsPtr DirContext::Private::getDirDepsGraph ( ) const
inline

在文件 context.cpp3137 行定义.

3137 { return m_cachable.dirDepsGraph.get(this); }

引用了 DirContext::Private::Cachable::dirDepsGraph , 以及 m_cachable.

被这些函数引用 dirGraph() , 以及 hasDirGraph().

◆ hasDetails()

TemplateVariant DirContext::Private::hasDetails ( ) const
inline

在文件 context.cpp3134 行定义.

3134 { return m_dirDef->hasDetailedDescription(); }

引用了 DirDef::hasDetailedDescription() , 以及 m_dirDef.

◆ hasDirGraph()

TemplateVariant DirContext::Private::hasDirGraph ( ) const
inline

在文件 context.cpp3139 行定义.

3140  {
3141  bool result=FALSE;
3142  static bool haveDot = Config_getBool(HAVE_DOT);
3143  static bool dirGraph = Config_getBool(DIRECTORY_GRAPH);
3144  if (haveDot && dirGraph)
3145  {
3146  DotDirDepsPtr graph = getDirDepsGraph();
3147  result = !graph->isTrivial();
3148  }
3149  return result;
3150  }

引用了 Config_getBool, dirGraph(), FALSE , 以及 getDirDepsGraph().

◆ highlight()

TemplateVariant DirContext::Private::highlight ( ) const
inline

在文件 context.cpp3129 行定义.

3129 { return TemplateVariant("files"); }

◆ relPath()

TemplateVariant DirContext::Private::relPath ( ) const
inline

在文件 context.cpp3136 行定义.

3136 { return ""; }

◆ subHighlight()

TemplateVariant DirContext::Private::subHighlight ( ) const
inline

在文件 context.cpp3130 行定义.

3130 { return TemplateVariant(""); }

◆ title()

TemplateVariant DirContext::Private::title ( ) const
inline

在文件 context.cpp3128 行定义.

3128 { return TemplateVariant(m_dirDef->shortTitle()); }

引用了 m_dirDef , 以及 DirDef::shortTitle().

类成员变量说明

◆ m_cachable

Cachable DirContext::Private::m_cachable
private

在文件 context.cpp3227 行定义.

被这些函数引用 dirs(), files() , 以及 getDirDepsGraph().

◆ m_dirDef

const DirDef* DirContext::Private::m_dirDef
private

在文件 context.cpp3220 行定义.

被这些函数引用 createDirDepsGraph(), createDirs(), createFiles(), dirGraph(), dirName(), hasDetails() , 以及 title().

◆ s_inst

const PropertyMap< DirContext::Private > DirContext::Private::s_inst
staticprivate
初始值:
{
{ "title", &Private::title },
{ "highlight", &Private::highlight },
{ "subhighlight", &Private::subHighlight },
{ "dirName", &Private::dirName },
{ "dirs", &Private::dirs },
{ "files", &Private::files },
{ "hasDetails", &Private::hasDetails },
{ "hasDirGraph", &Private::hasDirGraph },
{ "dirGraph", &Private::dirGraph },
{ "compoundType", &Private::compoundType }
}

在文件 context.cpp3228 行定义.

被这些函数引用 fields() , 以及 get().


该类的文档由以下文件生成:
ContextOutputFormat_Latex
@ ContextOutputFormat_Latex
Definition: context.cpp:79
TemplateVariantList
std::vector< TemplateVariant > TemplateVariantList
Definition: template.h:261
DirContext::Private::Cachable::dirs
CachedItem< TemplateVariant, Private, &Private::createDirs > dirs
Definition: context.cpp:3223
ContextGlobals::outputFormat
ContextOutputFormat outputFormat
Definition: context.cpp:78
Portable::pathSeparator
QCString pathSeparator()
Definition: portable.cpp:347
PropertyMap::get
TemplateVariant get(const T *obj, const QCString &n) const
Definition: context.cpp:126
DirContext::alloc
static TemplateStructIntfPtr alloc(const DirDef *dd)
Definition: context.h:279
DirContext::Private::Cachable::files
CachedItem< TemplateVariant, Private, &Private::createFiles > files
Definition: context.cpp:3224
BASE_PROPERTIES
#define BASE_PROPERTIES
Definition: context.cpp:1570
ContextGlobals::outputDir
QCString outputDir
Definition: context.cpp:77
err
void err(const char *fmt,...)
Definition: message.cpp:203
PropertyMap::fields
StringVector fields() const
Definition: context.cpp:131
TextStream
Text streaming class that buffers data.
Definition: textstream.h:33
DirContext::Private::compoundType
TemplateVariant compoundType() const
Definition: context.cpp:3135
DirContext::Private::hasDetails
TemplateVariant hasDetails() const
Definition: context.cpp:3134
EOF_LaTeX
@ EOF_LaTeX
Definition: dotgraph.h:28
DefinitionContext< DirContext::Private >
DirContext::Private::highlight
TemplateVariant highlight() const
Definition: context.cpp:3129
ContextGlobals::dynSectionId
int dynSectionId
Definition: context.cpp:76
DirDef::getOutputFileBase
virtual QCString getOutputFileBase() const =0
addHtmlExtensionIfMissing
QCString addHtmlExtensionIfMissing(const QCString &fName)
Definition: util.cpp:5275
DirDef::shortName
virtual const QCString shortName() const =0
TemplateVariant
Variant type which can hold one value of a fixed set of types.
Definition: template.h:98
DirContext::Private::title
TemplateVariant title() const
Definition: context.cpp:3128
DirContext::Private::Cachable::dirDepsGraph
CachedItem< DotDirDepsPtr, Private, &Private::createDirDepsGraph > dirDepsGraph
Definition: context.cpp:3225
theTranslator
Translator * theTranslator
Definition: language.cpp:156
DirContext::Private::m_dirDef
const DirDef * m_dirDef
Definition: context.cpp:3220
TRUE
#define TRUE
Definition: qcstring.h:36
DirDef::hasDetailedDescription
virtual bool hasDetailedDescription() const =0
TextStream::str
std::string str() const
Return the contents of the buffer as a std::string object
Definition: textstream.h:208
DirContext::Private::getDirDepsGraph
DotDirDepsPtr getDirDepsGraph() const
Definition: context.cpp:3137
g_globals
struct ContextGlobals g_globals
DirContext::Private::dirName
TemplateVariant dirName() const
Definition: context.cpp:3131
DirDef::shortTitle
virtual QCString shortTitle() const =0
GOF_BITMAP
@ GOF_BITMAP
Definition: dotgraph.h:27
DirContext::Private::s_inst
static const PropertyMap< DirContext::Private > s_inst
Definition: context.cpp:3228
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
TemplateImmutableList::alloc
static TemplateListIntfPtr alloc(std::initializer_list< TemplateVariant > elements)
Creates an instance and returns a shared pointer to it
Definition: template.cpp:543
DotDirDepsPtr
std::shared_ptr< DotDirDeps > DotDirDepsPtr
Definition: dotdirdeps.h:53
ContextOutputFormat_Html
@ ContextOutputFormat_Html
Definition: context.cpp:78
DirContext::Private::dirGraph
TemplateVariant dirGraph() const
Definition: context.cpp:3151
DirContext::Private::dirs
TemplateVariant dirs() const
Definition: context.cpp:3132
DirDef::getFiles
virtual const FileList & getFiles() const =0
DirContext::Private::hasDirGraph
TemplateVariant hasDirGraph() const
Definition: context.cpp:3139
EOF_Html
@ EOF_Html
Definition: dotgraph.h:28
GOF_EPS
@ GOF_EPS
Definition: dotgraph.h:27
DirDef::subDirs
virtual const DirList & subDirs() const =0
DirContext::Private::files
TemplateVariant files() const
Definition: context.cpp:3133
Translator::trDir
virtual QCString trDir(bool first_capital, bool singular)=0
DirContext::Private::m_cachable
Cachable m_cachable
Definition: context.cpp:3227
DirContext::Private::subHighlight
TemplateVariant subHighlight() const
Definition: context.cpp:3130
DefinitionContext< DirContext::Private >::relPathAsString
QCString relPathAsString() const
Definition: context.cpp:1473
FileContext::alloc
static TemplateStructIntfPtr alloc(const FileDef *fd)
Definition: context.h:260
FALSE
#define FALSE
Definition: qcstring.h:33