cheshirekow  v0.1.0
mpblocks::gtk::ObjectMapBase< Object_t > Class Template Reference

base class for a map of string names -> object RefPtrs More...

#include <mpblocks/gtk/LayoutMap.h>

Public Types

typedef std::map< std::string,
Glib::RefPtr< Object_t > > 
Map_t
 the map type stored by this base class More...
 

Public Member Functions

void init (std::string key)
 adds a key to the map with an empty reference More...
 
void load (const Glib::RefPtr< Gtk::Builder > &builder)
 retrieves RefPtrs for all the objects whose keys have been entered More...
 
void read (YAML::Node &)
 read in values for any of the objects in our map More...
 
void write (YAML::Emitter &)
 write out the values for all of the objects in our map More...
 

Protected Attributes

Map_t m_map
 the actual map More...
 

Detailed Description

template<class Object_t>
class mpblocks::gtk::ObjectMapBase< Object_t >

base class for a map of string names -> object RefPtrs

Definition at line 65 of file LayoutMap.h.

Member Typedef Documentation

template<class Object_t>
typedef std::map<std::string, Glib::RefPtr<Object_t> > mpblocks::gtk::ObjectMapBase< Object_t >::Map_t

the map type stored by this base class

Definition at line 68 of file LayoutMap.h.

Member Function Documentation

template<class Object_t>
void mpblocks::gtk::ObjectMapBase< Object_t >::init ( std::string  key)

adds a key to the map with an empty reference

template<class Object_t>
void mpblocks::gtk::ObjectMapBase< Object_t >::load ( const Glib::RefPtr< Gtk::Builder > &  builder)

retrieves RefPtrs for all the objects whose keys have been entered

template<class Object_t>
void mpblocks::gtk::ObjectMapBase< Object_t >::read ( YAML::Node &  )

read in values for any of the objects in our map

template<class Object_t>
void mpblocks::gtk::ObjectMapBase< Object_t >::write ( YAML::Emitter &  )

write out the values for all of the objects in our map

Member Data Documentation

template<class Object_t>
Map_t mpblocks::gtk::ObjectMapBase< Object_t >::m_map
protected

the actual map

Definition at line 72 of file LayoutMap.h.


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