From 46e8884629e405e63d69d24dcbfa14eb3ecb4010 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Mon, 4 Apr 2011 15:58:31 +0200
Subject: [PATCH] add SentenceContext::get_sentence_ptr to allow acces to the
 senetnce shared_ptr that's already there anyway

---
 libwccl/sentencecontext.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libwccl/sentencecontext.h b/libwccl/sentencecontext.h
index 0f61c0f..3f2e99f 100644
--- a/libwccl/sentencecontext.h
+++ b/libwccl/sentencecontext.h
@@ -37,6 +37,11 @@ public:
 		return *sentence_;
 	}
 
+	/// Underlying sentence shared pointer accesor
+	const boost::shared_ptr<Corpus2::Sentence>& get_sentence_ptr() const {
+		return sentence_;
+	}
+
 	/// Shorthand to get_sentence().size()
 	int size() const {
 		return sentence_->size();
-- 
GitLab