Dependency record for a single build unit.
More...
#include <depsearch.h>
Dependency record for a single build unit.
Contains a list of units (pointers to other CDependencyRecord objects) that this unit depends on and a list of cross-references to this unit. This class is used by CDependencyInfo to store information about every single build unit.
◆ CDependencyRecord()
CDependencyRecord::CDependencyRecord |
( |
void |
| ) |
|
Creates dependency record.
◆ ~CDependencyRecord()
CDependencyRecord::~CDependencyRecord |
( |
void |
| ) |
|
Destroys dependency record.
◆ AddCrossReference()
Adds new cross reference for this build unit.
- Parameters
-
Record | dependency record of another build unit. |
Adding a cross reference means telling that another build unit depends on this build unit.
◆ AddDependency()
Adds new dependency for this build unit.
- Parameters
-
Record | dependency record of another build unit. |
Adding a dependency means telling that this build unit depends on another build unit.
◆ Clear()
CDependencyRecord::Clear |
( |
void |
| ) |
|
Resets a dependency record to the initial state.
◆ CrossReference()
CDependencyRecord::CrossReference |
( |
const size_t |
Index | ) |
const |
Returns cross reference with number Index.
- Parameters
-
Index | number of a cross reference. |
- Returns
- cross reference.
◆ CrossReferencesComplete()
CDependencyRecord::CrossReferencesComplete |
( |
void |
| ) |
|
|
inline |
◆ CrossReferencesCount()
CDependencyRecord::CrossReferencesCount |
( |
void |
| ) |
const |
Returns the number of cross references to this unit.
- Returns
- cross references count.
◆ DependenciesComplete()
CDependencyRecord::DependenciesComplete |
( |
void |
| ) |
|
|
inline |
◆ DependenciesCount()
CDependencyRecord::DependenciesCount |
( |
void |
| ) |
const |
Returns the number of unit denpendencies.
- Returns
- denpendencies count.
◆ Dependency()
CDependencyRecord::Dependency |
( |
const size_t |
Index | ) |
const |
Returns dependency record with number Index.
- Parameters
-
Index | number of a dependency. |
- Returns
- dependency record.
◆ GetName()
CDependencyRecord::GetName |
( |
void |
| ) |
const |
|
inline |
Returns the file name of the build unit.
- Returns
- name of the build unit.
◆ Hash()
CDependencyRecord::Hash |
( |
void |
| ) |
const |
|
inline |
Returns string hash for the file name.
◆ Marker()
CDependencyRecord::Marker |
( |
void |
| ) |
|
|
inline |
Indicates that this unit was already walked through by a dependency unwinding process to avoid infinite loops.
- Returns
- reference to CDependencyRecord::m_Marker.
◆ SetName()
CDependencyRecord::SetName |
( |
const CString & |
Name | ) |
|
Changes the file name of the build unit.
◆ Show()
CDependencyRecord::Show |
( |
void |
| ) |
|
Prints the build unit dependecy record contents to the standard output.
◆ m_CrossReferences
CDependencyRecord::m_CrossReferences |
|
private |
List of units that depend on this unit.
◆ m_CrossReferencesComplete
CDependencyRecord::m_CrossReferencesComplete |
|
private |
Indicates that the list of cross-references is fully gathered.
◆ m_Dependencies
CDependencyRecord::m_Dependencies |
|
private |
List of units that this unit depends on.
◆ m_DependenciesComplete
CDependencyRecord::m_DependenciesComplete |
|
private |
Indicates that the list of dependencies is fully gathered.
◆ m_Hash
CDependencyRecord::m_Hash |
|
private |
◆ m_Marker
CDependencyRecord::m_Marker |
|
private |
Indicates that this unit was already walked through by a dependency unwinding process to avoid infinite loops.
◆ m_Name
CDependencyRecord::m_Name |
|
private |
File name of the build unit.
The documentation for this class was generated from the following files: