Chrysalis - Pattern
Loading...
Searching...
No Matches
Chrysalis::NamedElementsContainer< T > Class Template Reference

#include <NamedElementsContainer.h>

Inheritance diagram for Chrysalis::NamedElementsContainer< T >:
[legend]
Collaboration diagram for Chrysalis::NamedElementsContainer< T >:
[legend]

Public Member Functions

virtual bool has (const std::string &name) const
void add (T *item) override
virtual T * get (const std::string &name) const
Public Member Functions inherited from Chrysalis::CompositiveContainer< T >
 CompositiveContainer ()=default
 CompositiveContainer (const std::initializer_list< T * > &items)
 ~CompositiveContainer () override
Public Member Functions inherited from Chrysalis::AssociativeContainer< T >
 AssociativeContainer ()=default
 AssociativeContainer (std::initializer_list< T * > items)
virtual ~AssociativeContainer ()=default
size_t count () const
std::vector< T * >::const_iterator begin () const
std::vector< T * >::const_iterator end () const
T * operator[] (size_t index) const

Member Function Documentation

◆ add()

template<typename T>
void Chrysalis::NamedElementsContainer< T >::add ( T * item)
inlineoverridevirtual

◆ get()

template<typename T>
virtual T * Chrysalis::NamedElementsContainer< T >::get ( const std::string & name) const
inlinevirtual

Reimplemented in Chrysalis::ScopedNamedElementsContainer< T >, Chrysalis::ScopedNamedElementsContainer< Expression >, and Chrysalis::ScopedNamedElementsContainer< Option >.

Here is the caller graph for this function:

◆ has()

template<typename T>
virtual bool Chrysalis::NamedElementsContainer< T >::has ( const std::string & name) const
inlinenodiscardvirtual

Reimplemented in Chrysalis::ScopedNamedElementsContainer< T >, Chrysalis::ScopedNamedElementsContainer< Expression >, and Chrysalis::ScopedNamedElementsContainer< Option >.

Here is the caller graph for this function:

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