My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
UsedDir Class Reference

#include <dirdef.h>

Public Member Functions

 UsedDir (DirDef *dir, bool inherited)
 
virtual ~UsedDir ()
 
void addFileDep (FileDef *srcFd, FileDef *dstFd)
 
FilePairfindFilePair (const char *name)
 
const FilePairDictfilePairs () const
 
const DirDefdir () const
 
bool inherited () const
 
void sort ()
 

Private Attributes

DirDefm_dir
 
FilePairDict m_filePairs
 
bool m_inherited
 

Detailed Description

Usage information of a directory.

Definition at line 132 of file dirdef.h.

Constructor & Destructor Documentation

UsedDir::UsedDir ( DirDef dir,
bool  inherited 
)

Definition at line 669 of file dirdef.cpp.

References m_filePairs, and SDict< T >::setAutoDelete().

UsedDir::~UsedDir ( )
virtual

Definition at line 675 of file dirdef.cpp.

{
}

Member Function Documentation

void UsedDir::addFileDep ( FileDef srcFd,
FileDef dstFd 
)

Definition at line 680 of file dirdef.cpp.

References SDict< T >::append(), FileDef::getOutputFileBase(), and m_filePairs.

Referenced by DirDef::addUsesDependency().

{
new FilePair(srcFd,dstFd));
}
const DirDef* UsedDir::dir ( ) const
inline

Definition at line 140 of file dirdef.h.

References m_dir.

Referenced by DirRelation::writeDocumentation().

{ return m_dir; }
const FilePairDict& UsedDir::filePairs ( ) const
inline

Definition at line 139 of file dirdef.h.

References m_filePairs.

Referenced by DirRelation::writeDocumentation().

{ return m_filePairs; }
FilePair * UsedDir::findFilePair ( const char *  name)

Definition at line 691 of file dirdef.cpp.

References SDict< T >::find(), and m_filePairs.

Referenced by DirDef::addUsesDependency().

{
QCString n=name;
return n.isEmpty() ? 0 : m_filePairs.find(n);
}
bool UsedDir::inherited ( ) const
inline

Definition at line 141 of file dirdef.h.

References m_inherited.

{ return m_inherited; }
void UsedDir::sort ( )

Definition at line 686 of file dirdef.cpp.

References m_filePairs, and SDict< T >::sort().

Referenced by DirDef::computeDependencies().

Member Data Documentation

DirDef* UsedDir::m_dir
private

Definition at line 145 of file dirdef.h.

Referenced by dir().

FilePairDict UsedDir::m_filePairs
private

Definition at line 146 of file dirdef.h.

Referenced by addFileDep(), filePairs(), findFilePair(), sort(), and UsedDir().

bool UsedDir::m_inherited
private

Definition at line 147 of file dirdef.h.

Referenced by inherited().


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