make friends for access to instance_me member

This commit is contained in:
Axel Kohlmeyer
2022-03-02 19:06:08 -05:00
parent 798975b809
commit f7514ce358
3 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,8 @@
namespace LAMMPS_NS {
class Compute : protected Pointers {
friend class Neighbor;
public:
// clang-format off
enum {

View File

@ -19,6 +19,8 @@
namespace LAMMPS_NS {
class Fix : protected Pointers {
friend class Neighbor;
public:
static int instance_total; // # of Fix classes ever instantiated

View File

@ -33,6 +33,7 @@ class Pair : protected Pointers {
friend class PairHybridScaled;
friend class ThrOMP;
friend class Info;
friend class Neighbor;
public:
static int instance_total; // # of Pair classes ever instantiated