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.
18 #pragma implementation
21 #include "math_atom.h"
22 #include "math_inset.h"
23 #include "support/LAssert.h"
36 MathAtom::MathAtom(MathInset * p)
41 MathAtom::MathAtom(MathAtom const & p)
42 : nucleus_(p.nucleus_ ? p.nucleus_->clone() : 0)
46 void MathAtom::operator=(MathAtom const & p)
51 swap(tmp.nucleus_, nucleus_);
61 void MathAtom::reset(MathInset * p)
70 MathInset * MathAtom::nucleus() const
72 lyx::Assert(nucleus_);
77 MathInset * MathAtom::operator->() const