/** @file symbol.cpp
*
- * Implementation of GiNaC's symbolic objects.
- *
+ * Implementation of GiNaC's symbolic objects. */
+
+/*
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#include <string>
#include <stdexcept>
-#include "ginac.h"
+#include "symbol.h"
+#include "lst.h"
#include "utils.h"
+#include "idx.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
//////////
// default constructor, destructor, copy constructor assignment operator and helpers
//////////
-symbol::symbol() : basic(TINFO_SYMBOL)
+symbol::symbol() : basic(TINFO_symbol)
{
debugmsg("symbol default constructor",LOGLEVEL_CONSTRUCT);
serial=next_serial++;
// public
-symbol::symbol(string const & initname) : basic(TINFO_SYMBOL)
+symbol::symbol(string const & initname) : basic(TINFO_symbol)
{
debugmsg("symbol constructor from string",LOGLEVEL_CONSTRUCT);
name=initname;
symbol::assigned_ex_info::assigned_ex_info(void) : is_assigned(0), refcount(1)
{
}
+
+} // namespace GiNaC