Loading...
Searching...
No Matches
Public Member Functions |
Static Public Member Functions |
Static Protected Attributes |
List of all members
score::ApplicationInterface Class Referenceabstract
The ApplicationInterface class. More...
Inheritance diagram for score::ApplicationInterface:
Detailed Description
The ApplicationInterface class.
This class provides an interface that should be implemented and instantiated exactly once. In the main score application, this is the Application class.
This class SHALL set the ApplicationInterface::m_instance member.
Public Member Functions | |
| virtual const ApplicationContext & | context () const =0 |
| virtual const ApplicationComponents & | components () const =0 |
Static Public Member Functions | |
| static ApplicationInterface & | instance () |
| static bool | hasInstance () noexcept |
| Whether instance() has anything to return. | |
Static Protected Attributes | |
| static ApplicationInterface * | m_instance |
Member Function Documentation
◆ hasInstance()
|
inlinestaticnoexcept |
Whether instance() has anything to return.
instance() dereferences m_instance unconditionally, so calling it with no application built binds a reference to null. Code that can legitimately run outside an application – the gfx graph is driven standalone by the PipeWire round-trip harness and by the corpus renderer – must ask first.
The documentation for this class was generated from the following files:
- ApplicationInterface.hpp
- ApplicationInterface.cpp