3 * Purpose: Wrapper for MathInset *
7 * Copyright: 2001 The LyX team
11 * You are free to use and modify this code under the terms of
12 * the GNU General Public Licence version 2 or later.
16 #pragma implementation
19 #include "math_atom.h"
20 #include "math_inset.h"
21 #include "support/LAssert.h"
30 MathAtom::MathAtom(MathInset * p)
35 MathAtom::MathAtom(MathAtom const & p)
36 : nucleus_(p.nucleus_ ? p.nucleus_->clone() : 0)
40 void MathAtom::operator=(MathAtom const & p)
45 std::swap(tmp.nucleus_, nucleus_);
55 void MathAtom::reset(MathInset * p)
64 MathInset * MathAtom::nucleus() const
66 lyx::Assert(nucleus_);
71 MathInset * MathAtom::operator->() const