JeVois Smart Embedded Machine Vision Toolkit
A generic singleton class to enforce a single instance of an object.
The Singleton class should be inherited by any class which needs:
This particular implementation is from: http://stackoverflow.com/questions/1008019/c-singleton-design-pattern
The following is an example use of the Singleton:
|T||The class that is being made the singleton.|
This class was first designed by Rand Voorhies in the Neuromorphic Robotics Toolkit.
|static T &||instance ()|
|Get the global, unique instance of the class T. More...|
|Only classes that inherit from Singleton can construct it via its protected default constructor. More...|