Ninja
Public Member Functions | Public Attributes | List of all members
RealCommandRunner Struct Reference
Inheritance diagram for RealCommandRunner:
Inheritance graph
[legend]

Public Member Functions

virtual void Abort ()
 
virtual bool CanRunMore ()
 
virtual vector< Edge * > GetActiveEdges ()
 
 RealCommandRunner (const BuildConfig &config)
 
virtual bool StartCommand (Edge *edge)
 
virtual bool WaitForCommand (Result *result)
 Wait for a command to complete, or return false if interrupted. More...
 
virtual ~RealCommandRunner ()
 

Public Attributes

const BuildConfigconfig_
 
map< Subprocess *, Edge * > subproc_to_edge_
 
SubprocessSet subprocs_
 

Detailed Description

Definition at line 462 of file build.cc.

Constructor & Destructor Documentation

RealCommandRunner::RealCommandRunner ( const BuildConfig config)
inlineexplicit

Definition at line 463 of file build.cc.

virtual RealCommandRunner::~RealCommandRunner ( )
inlinevirtual

Definition at line 464 of file build.cc.

Member Function Documentation

void RealCommandRunner::Abort ( )
virtual

Reimplemented from CommandRunner.

Definition at line 484 of file build.cc.

References SubprocessSet::Clear(), and subprocs_.

bool RealCommandRunner::CanRunMore ( )
virtual
vector< Edge * > RealCommandRunner::GetActiveEdges ( )
virtual

Reimplemented from CommandRunner.

Definition at line 476 of file build.cc.

References subproc_to_edge_.

bool RealCommandRunner::StartCommand ( Edge edge)
virtual

Implements CommandRunner.

Definition at line 494 of file build.cc.

References SubprocessSet::Add(), Edge::EvaluateCommand(), subproc_to_edge_, and subprocs_.

bool RealCommandRunner::WaitForCommand ( Result result)
virtual

Member Data Documentation

const BuildConfig& RealCommandRunner::config_

Definition at line 471 of file build.cc.

Referenced by CanRunMore().

map<Subprocess*, Edge*> RealCommandRunner::subproc_to_edge_

Definition at line 473 of file build.cc.

Referenced by GetActiveEdges(), StartCommand(), and WaitForCommand().

SubprocessSet RealCommandRunner::subprocs_

Definition at line 472 of file build.cc.

Referenced by Abort(), CanRunMore(), StartCommand(), and WaitForCommand().


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