![]() |
globjects
2.0.0.630135941c42
Strict OpenGL objects wrapper.
|
#include <globjects/include/globjects/base/StringTemplate.h>
Public Member Functions | |
| StringTemplate (AbstractStringSource *source) | |
| virtual | ~StringTemplate () |
| virtual std::string | string () const override |
| void | replace (const std::string &original, const std::string &str) |
| void | replace (const std::string &original, int i) |
| void | clearReplacements () |
Public Member Functions inherited from globjects::AbstractStringSource | |
| AbstractStringSource () | |
| virtual | ~AbstractStringSource () |
| virtual std::vector< std::string > | strings () const |
| std::vector< const AbstractStringSource * > | flatten () const |
| virtual void | flattenInto (std::vector< const AbstractStringSource * > &vector) const |
| virtual std::string | shortInfo () const |
| void | changed () const |
| void | registerListener (AbstractStringSource *listener) |
| void | deregisterListener (AbstractStringSource *listener) |
| void | registerListener (Shader *listener) |
| void | deregisterListener (Shader *listener) |
| void | registerListener (NamedString *listener) |
| void | deregisterListener (NamedString *listener) |
| void | addSubject (AbstractStringSource *subject) |
| void | removeSubject (AbstractStringSource *subject) |
Protected Member Functions | |
| void | invalidate () |
| std::string | modifiedSource () const |
| virtual void | notifyChanged (const AbstractStringSource *changeable) override |
Protected Attributes | |
| std::string | m_modifiedSource |
| bool | m_modifiedSourceValid |
| std::map< std::string, std::string > | m_replacements |
Protected Attributes inherited from globjects::AbstractStringSource | |
| std::set< AbstractStringSource * > | m_sourceListener |
| std::set< Shader * > | m_shaderListener |
| std::set< NamedString * > | m_namedStringListener |
| std::set< AbstractStringSource * > | m_subjects |
Additional Inherited Members | |
Static Public Member Functions inherited from globjects::Instantiator< StringTemplate > | |
| static std::unique_ptr< StringTemplate > | create (Args &&... args) |
| static std::unique_ptr< StringTemplate > | fromId (gl::GLuint id, Args &&... args) |
| globjects::StringTemplate::StringTemplate | ( | AbstractStringSource * | source | ) |
|
virtual |
|
overridevirtual |
Implements globjects::AbstractStringSource.
| void globjects::StringTemplate::replace | ( | const std::string & | original, |
| const std::string & | str ) |
| void globjects::StringTemplate::replace | ( | const std::string & | original, |
| int | i ) |
| void globjects::StringTemplate::clearReplacements | ( | ) |
|
protected |
|
protected |
|
overrideprotectedvirtual |
Reimplemented from globjects::AbstractStringSource.
|
mutableprotected |
|
mutableprotected |
|
protected |
1.10.0