aboutsummaryrefslogtreecommitdiff
path: root/build2/depdb.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/depdb.hxx')
-rw-r--r--build2/depdb.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/build2/depdb.hxx b/build2/depdb.hxx
index 9dffa28..b747096 100644
--- a/build2/depdb.hxx
+++ b/build2/depdb.hxx
@@ -106,13 +106,16 @@ namespace build2
// won't be because of eof.
//
bool
- more () {return state_ == state::read;}
+ more () const {return state_ == state::read;}
bool
- reading () {return state_ != state::write;}
+ reading () const {return state_ != state::write;}
bool
- writing () {return state_ == state::write;}
+ writing () const {return state_ == state::write;}
+
+ bool
+ touched () const {return touch_;}
// Write the next line. Note that this switches the database into the
// write mode and no further reading will be possible.