globjects  2.0.0.4363356ae2ef
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
globjects::CompositeStringSource Class Reference

#include <globjects/include/globjects/base/CompositeStringSource.h>

Inheritance diagram for globjects::CompositeStringSource:
globjects::AbstractStringSource globjects::Instantiator< CompositeStringSource >

Public Member Functions

 CompositeStringSource ()
 
 CompositeStringSource (const std::vector< AbstractStringSource * > &sources)
 
virtual ~CompositeStringSource ()
 
void appendSource (AbstractStringSource *source)
 
virtual std::string string () const override
 
virtual std::vector< std::string > strings () const override
 
virtual void flattenInto (std::vector< const AbstractStringSource * > &vector) const override
 
void addSubject (AbstractStringSource *subject)
 
void removeSubject (AbstractStringSource *subject)
 
virtual std::string shortInfo () const override
 
- Public Member Functions inherited from globjects::AbstractStringSource
 AbstractStringSource ()
 
virtual ~AbstractStringSource ()
 
virtual std::string string () const =0
 
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

virtual void notifyChanged (const AbstractStringSource *changeable) override
 
void update () const
 
virtual void notifyChanged (const AbstractStringSource *sender)
 

Protected Attributes

std::vector< AbstractStringSource * > m_sources
 
bool m_dirty
 
std::vector< std::string > m_strings
 
- 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< CompositeStringSource >
static std::unique_ptr< CompositeStringSourcecreate (Args &&... args)
 
static std::unique_ptr< CompositeStringSourcefromId (gl::GLuint id, Args &&... args)
 

Constructor & Destructor Documentation

◆ CompositeStringSource() [1/2]

globjects::CompositeStringSource::CompositeStringSource ( )

◆ CompositeStringSource() [2/2]

globjects::CompositeStringSource::CompositeStringSource ( const std::vector< AbstractStringSource * > &  sources)

◆ ~CompositeStringSource()

virtual globjects::CompositeStringSource::~CompositeStringSource ( )
virtual

Member Function Documentation

◆ appendSource()

void globjects::CompositeStringSource::appendSource ( AbstractStringSource source)

◆ string()

virtual std::string globjects::CompositeStringSource::string ( ) const
overridevirtual

◆ strings()

virtual std::vector< std::string > globjects::CompositeStringSource::strings ( ) const
overridevirtual

Reimplemented from globjects::AbstractStringSource.

◆ flattenInto()

virtual void globjects::CompositeStringSource::flattenInto ( std::vector< const AbstractStringSource * > &  vector) const
overridevirtual

Reimplemented from globjects::AbstractStringSource.

◆ addSubject()

void globjects::CompositeStringSource::addSubject ( AbstractStringSource subject)

◆ removeSubject()

void globjects::CompositeStringSource::removeSubject ( AbstractStringSource subject)

◆ shortInfo()

virtual std::string globjects::CompositeStringSource::shortInfo ( ) const
overridevirtual

Reimplemented from globjects::AbstractStringSource.

◆ notifyChanged()

virtual void globjects::CompositeStringSource::notifyChanged ( const AbstractStringSource changeable)
overrideprotectedvirtual

Reimplemented from globjects::AbstractStringSource.

◆ update()

void globjects::CompositeStringSource::update ( ) const
protected

Member Data Documentation

◆ m_sources

std::vector<AbstractStringSource *> globjects::CompositeStringSource::m_sources
protected

◆ m_dirty

bool globjects::CompositeStringSource::m_dirty
mutableprotected

◆ m_strings

std::vector<std::string> globjects::CompositeStringSource::m_strings
mutableprotected

The documentation for this class was generated from the following file: