mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
b032e2dfaf
shared_ptrs now only require the <memory> header.
43 lines
824 B
C++
43 lines
824 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file Toc.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jean-Marc Lasgouttes
|
|
* \author Angus Leeming
|
|
* \author Abdelrazak Younes
|
|
* \author Guillaume Munch
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef TOC_H
|
|
#define TOC_H
|
|
|
|
#include <map>
|
|
#include <memory>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
|
|
namespace lyx {
|
|
|
|
// TocItem is defined in TocBackend.h
|
|
class TocItem;
|
|
|
|
typedef std::vector<TocItem> Toc;
|
|
|
|
class TocList : public std::map<std::string, std::shared_ptr<Toc>>
|
|
{
|
|
private:
|
|
// TocList should never map to null pointers.
|
|
// We hide the following methods which create null pointers.
|
|
using std::map<std::string, std::shared_ptr<Toc>>::operator[];
|
|
};
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // TOC_H
|