Glossary

10.5 C++ Glossary

Some C++ vocabulary that is used within FIMS that will be helpful for novice C++ programmers to understand.

10.5.1 singleton

Defines a class that is only used to create an object one time. This is a design pattern.

See more information

10.5.2 class

Provides the “recipe” for the structure of an object, including the data members and functions. Like data structures (structs), but also includes functions.

See more information.

10.5.3 functor

A functor is a class that acts like a function.

See more details about functors. ### constructor

A special method that is called when a new object is created and usually initializes data members of the object.

See the definition of constructor.

10.5.4 destructor

The last method of an object called automatically before an object is destroyed.

See the definition of destructor.

10.5.5 header guards

Makes sure that there are not multiple copies of a header in a file.

Details are available.

10.5.6 preprocessing macro/derectives

Begin with a # in the code, these tell the preproccessor (not the compiler) what to do. These directives are complete before compiling.

See more info on preprocessing

10.5.7 struct

Similar to a class, but only contains data members and not functions. All members are public. Comes from C.

See details on struct