aboutsummaryrefslogtreecommitdiff
path: root/src/include/fst/cache.h
diff options
context:
space:
mode:
authorAlexander Gutkin <agutkin@google.com>2012-09-12 18:11:43 +0100
committerAlexander Gutkin <agutkin@google.com>2012-09-12 18:11:43 +0100
commitdfd8b8327b93660601d016cdc6f29f433b45a8d8 (patch)
tree968ec84b8e32ad73ec18d74334930f36b7471906 /src/include/fst/cache.h
parentf4c12fce1ee58e670f9c3fce46c40296ba9ee8a2 (diff)
downloadopenfst-dfd8b8327b93660601d016cdc6f29f433b45a8d8.tar.gz
Updated OpenFST version to openfst-1.3.2-CL32004048 from Greco3.
Change-Id: I19b0db718256b35c0e3e5a7315f1ed6335e6dcac
Diffstat (limited to 'src/include/fst/cache.h')
-rw-r--r--src/include/fst/cache.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/include/fst/cache.h b/src/include/fst/cache.h
index a6a92d4..0177396 100644
--- a/src/include/fst/cache.h
+++ b/src/include/fst/cache.h
@@ -292,13 +292,13 @@ class CacheBaseImpl : public VectorFstBaseImpl<S> {
void DeleteArcs(StateId s, size_t n) {
S *state = ExtendState(s);
- const vector<Arc> &arcs = GetState(s)->arcs;
+ const vector<Arc> &arcs = state->arcs;
for (size_t i = 0; i < n; ++i) {
size_t j = arcs.size() - i - 1;
if (arcs[j].ilabel == 0)
- --GetState(s)->niepsilons;
+ --state->niepsilons;
if (arcs[j].olabel == 0)
- --GetState(s)->noepsilons;
+ --state->noepsilons;
}
state->arcs.resize(arcs.size() - n);
SetProperties(DeleteArcsProperties(Properties()));
@@ -503,9 +503,6 @@ struct CacheState {
size_t noepsilons; // # of output epsilons
mutable uint32 flags;
mutable int ref_count;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(CacheState);
};
// A CacheBaseImpl with a commonly used CacheState.