GiNaC 1.8.10
lst.h
Go to the documentation of this file.
1
5/*
6 * GiNaC Copyright (C) 1999-2026 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, see <https://www.gnu.org/licenses/>.
20 */
21
22#ifndef GINAC_LST_H
23#define GINAC_LST_H
24
25#include "container.h"
26
27#include <list>
28
29namespace GiNaC {
30
32
34#ifndef _MSC_VER // workaround error C2766: explicit specialization; 'reg_info' has already been defined
35template<> registered_class_info lst::reg_info;
36#endif
37
39template<> inline unsigned lst::get_default_flags() { return status_flags::not_shareable; }
40
42template<> inline char lst::get_open_delim() { return '{'; }
43
45template<> inline char lst::get_close_delim() { return '}'; }
46
47// defined in lst.cpp
48template<> bool lst::info(unsigned inf) const;
49extern template bool container<std::list>::info(unsigned) const;
51
52} // namespace GiNaC
53
54#endif // ndef GINAC_LST_H
#define GINAC_DECLARE_UNARCHIVER(classname)
Helper macros to register a class with (un)archiving (a.k.a.
Definition archive.h:218
Wrapper template for making GiNaC classes out of STL containers.
Definition container.h:72
static unsigned get_default_flags()
Specialization of container::get_default_flags() for lst.
Definition container.h:83
bool info(unsigned inf) const override
Information about the object.
Definition container.h:115
static char get_close_delim()
Specialization of container::get_close_delim() for lst.
Definition container.h:85
static char get_open_delim()
Specialization of container::get_open_delim() for lst.
Definition container.h:84
@ not_shareable
don't share instances of this object between different expressions unless explicitly asked to (used b...
Definition flags.h:205
Wrapper template for making GiNaC classes out of STL containers.
Definition add.cpp:35
container< std::list > lst
Definition lst.h:31

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