Autowiring  1.0.3
A C++ Inversion of Control Framework
Bolt< Sigil > Class Template Reference

More...

#include <Bolt.h>

Inheritance diagram for Bolt< Sigil >:
BoltBase

Public Member Functions

const auto_id * GetContextSigils (void) const override
 Returns a null-terminated list of one (or more) sigil types that this bolt cares about More...
 
bool Matches (auto_id id) const override
 
- Public Member Functions inherited from BoltBase
virtual void ContextCreated (void)=0
 A notification broadcast when a context of the desired name has been created More...
 

Detailed Description

template<typename... Sigil>
class Bolt< Sigil >

Parameters
SigilThe sigils of the contexts whose creation we want to listen for

A bolt is a way to augment the creation of a new context in a declarative, by-name manner. By inheriting from Bolt, the object will recieve ContextCreated() calls. To create a class that will have a new instance inserted into each instance of a context with a given sigil, use Boltable.

Member Function Documentation

template<typename... Sigil>
const auto_id* Bolt< Sigil >::GetContextSigils ( void  ) const
inlineoverridevirtual

Returns a null-terminated list of one (or more) sigil types that this bolt cares about

Implements BoltBase.

template<typename... Sigil>
bool Bolt< Sigil >::Matches ( auto_id  id) const
inlineoverridevirtual
Returns
True if the specified sigil type matches the types interesting to this bolt

Implements BoltBase.


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