Role of pointers class
The pointers.h
file facilitated information transfer between classes by creating pointers to all important quantities listed in lammps.h
. All classes inherit from pointers.h
and are able to access these variables. The following screenshot illustrates the pointers created:
The pointers to different classes are created, as well as pointers to pointers listed in lammps.h
, indicated by *&
at the front. This way, variables from lammps.h
can be accessed from other classes directly by declaring proper pointers, as will be explained in later chapters.
In the next section of this chapter, we will describe how input script commands are parsed using a pre-defined list of permitted commands in input.cpp
.