CPSC 421 OOP Singleton Design Pattern

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