/*
    Copyright (C) 2012 Bartosz Broda, Jacek Bochenek, Łukasz Biłeńkij, 
    Damian Jaworski, Wojciech Mazur, Dominik Piasecki, Maciej Piasecki, 
    Radosław Ramocki
    
    This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option)
any later version.

    This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. 

    See the LICENSE and COPYING files for more details.
*/

#ifndef ARCHITECT_DOC_TERM_ARCHITECT_H
#define ARCHITECT_DOC_TERM_ARCHITECT_H

#include "matrices_all.h"
#include <boost/thread/mutex.hpp>

namespace doc_term_architect
{
	class DocTermArchitect
	{
	public:
		DocTermArchitect();
		void Start();
	private:

	};

	class DocTermMatrixBuilder
	{
	public:
		//
		DocTermMatrixBuilder(std::vector<size_t> documents, Matrices::CRSMatrixPtr pMatrix);
		void operator() ();
		size_t GetTokenCount();
	private:
		Matrices::CRSMatrixPtr m_pMatrix;
		std::vector<size_t> m_vMyDocuments;
		int m_iThreadNo;
		static int thread_counter;
		size_t m_stTokenCount;
		static boost::mutex cout_mutex;

	};
}//namespace doc_term_architect

#endif //ARCHITECT_DOC_TERM_ARCHITECT_H

