CPSC 421 OOP Singleton Design Pattern
Across
- 1. The Singleton is more flexible than static member functions, which are not _____
- 2. One point against the Singleton Pattern is that the Singleton may be used to get around a _____ design
- 3. There are some strong opinions against the _____ of using the Singleton pattern
- 7. Note that the implementations of many standard data structures are not entirely _____ _____
- 9. Use the Singleton pattern when there must be exactly one instance of a class, and it must be _____ to clients from a well-known access point
- 12. Singleton is a _____ Pattern
- 15. The related pattern _____ can be implemented using the Singleton pattern
- 17. The thread-safe implementation used std::_____<MazeFactory*>
- 18. In the Motivation, sometimes a class must have exactly one _____
- 21. In the implementation example, the class _____ is the Singleton class.
- 22. Use the Singleton pattern when the sole instance should be _____ by subclassing
- 23. One consequence of the Singleton is that the Singleton class can be _____
- 24. The Single controls _____ to the sole instance
- 25. The thread-safe implementation used std::_____ to form a lock around the creation of the MazeFactory
Down
- 1. The related pattern _____ can be implemented using the Singleton pattern
- 4. The _____ Pattern ensures a class only has one instance and provides a global point of access
- 5. In the implementation example, to create a MazeFactory, you call the static method _____()
- 6. The Singleton is used in place of global variables and avoids _____ the global namespace
- 8. The Singleton class defines an instance operation that lets clients access a _____ instance
- 10. DCL is short for _____-_____ Locking
- 11. A _____ _____ makes an object accessible, but it doesn’t keep you from instantiating multiple objects.
- 13. A better solution is to make the class itself _____ for keeping track of its sole instance
- 14. The Singleton instance (in C++) is a _____ _____ function
- 16. The related pattern _____ _____ can be implemented using the Singleton pattern
- 19. Once in place, you can change your mind and allow more than _____ instance
- 20. The Singleton class may be _____ for creating a unique instance