GiNaC 1.8.7
lst.h
Go to the documentation of this file.
1
5/*
6 * GiNaC Copyright (C) 1999-2023 Johannes Gutenberg University Mainz, Germany
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#ifndef GINAC_LST_H
24#define GINAC_LST_H
25
26#include "container.h"
27
28#include <list>
29
30namespace GiNaC {
31
33
35#ifndef _MSC_VER // workaround error C2766: explicit specialization; 'reg_info' has already been defined
36template<> registered_class_info lst::reg_info;
37#endif
38
40template<> inline unsigned lst::get_default_flags() { return status_flags::not_shareable; }
41
43template<> inline char lst::get_open_delim() { return '{'; }
44
46template<> inline char lst::get_close_delim() { return '}'; }
47
48// defined in lst.cpp
49template<> bool lst::info(unsigned inf) const;
50extern template bool container<std::list>::info(unsigned) const;
52
53} // namespace GiNaC
54
55#endif // ndef GINAC_LST_H
Wrapper template for making GiNaC classes out of STL containers.
Definition: container.h:73
static unsigned get_default_flags()
Specialization of container::get_default_flags() for lst.
Definition: container.h:84
bool info(unsigned inf) const override
Information about the object.
Definition: container.h:116
static char get_close_delim()
Specialization of container::get_close_delim() for lst.
Definition: container.h:86
static char get_open_delim()
Specialization of container::get_open_delim() for lst.
Definition: container.h:85
@ not_shareable
don't share instances of this object between different expressions unless explicitly asked to (used b...
Definition: flags.h:206
Wrapper template for making GiNaC classes out of STL containers.
Definition: add.cpp:38
container< std::list > lst
Definition: lst.h:32
GINAC_DECLARE_UNARCHIVER(add)

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.