Ninja
Public Member Functions | Public Attributes
FileStat Struct Reference

Information about a single on-disk file: path, mtime. More...

#include <graph.h>

List of all members.

Public Member Functions

bool exists () const
 FileStat (const string &path)
bool Stat (DiskInterface *disk_interface)
 Return true if the file exists (mtime_ got a value).
bool StatIfNecessary (DiskInterface *disk_interface)
 Return true if we needed to stat.
bool status_known () const

Public Attributes

time_t mtime_
Nodenode_
string path_

Detailed Description

Information about a single on-disk file: path, mtime.

Definition at line 29 of file graph.h.


Constructor & Destructor Documentation

FileStat::FileStat ( const string &  path) [inline]

Definition at line 30 of file graph.h.


Member Function Documentation

bool FileStat::exists ( ) const [inline]

Definition at line 43 of file graph.h.

Referenced by Edge::RecomputeOutputDirty().

bool FileStat::Stat ( DiskInterface disk_interface)

Return true if the file exists (mtime_ got a value).

Definition at line 26 of file graph.cc.

References mtime_, path_, and DiskInterface::Stat().

bool FileStat::StatIfNecessary ( DiskInterface disk_interface) [inline]

Return true if we needed to stat.

Definition at line 36 of file graph.h.

Referenced by Builder::AddTarget().

bool FileStat::status_known ( ) const [inline]

Definition at line 47 of file graph.h.

Referenced by StatCache::Dump().


Member Data Documentation

Definition at line 56 of file graph.h.

Referenced by BuildTest::Dirty(), Edge::RecomputeOutputDirty(), and Stat().

Definition at line 57 of file graph.h.

Referenced by StatCache::Dump(), State::GetNode(), and State::LookupNode().


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