#ifndef ALL_ATOMS_H
#define ALL_ATOMS_H

#ifndef ATOM_GROUP_H
#include "Atom_group.h"
#endif

#ifndef ARRAY_OF_REF_H
#include "Array_of_ref.h"
#endif

#ifndef ATOM_H
#include "Atom.h"
#endif

namespace MM
{

class All_atoms : public Atom_group     //fix to Atom_group_template
{
    Array_of_ref <Atom>   group_;

public:
    explicit All_atoms (Atom_group & group);

    int             atom_count () const {return group_.size();}
    Atom &          atom (int i)        {return group_[i];}
    const Atom &    atom (int i) const  {return group_[i];}
};

}//MM

#endif //ALL_ATOMS_H
