Ardour  9.0-pre0-350-gf17a656217
SimpleMementoCommandBinder< obj_T > Class Template Reference

#include <memento_command.h>

Inheritance diagram for SimpleMementoCommandBinder< obj_T >:
[legend]

Public Member Functions

 SimpleMementoCommandBinder (obj_T &o)
 
void set_state (XMLNode const &node, int version) const
 
XMLNodeget_state () const
 
std::string type_name () const
 
void add_state (XMLNode *node)
 
void object_died ()
 
- Public Member Functions inherited from PBD::Destructible
virtual ~Destructible ()
 
virtual void drop_references ()
 

Private Attributes

obj_T & _object
 
PBD::ScopedConnection _object_death_connection
 

Additional Inherited Members

- Public Attributes inherited from PBD::Destructible
PBD::Signal< void()> Destroyed
 
PBD::Signal< void()> DropReferences
 

Detailed Description

template<class obj_T>
class SimpleMementoCommandBinder< obj_T >

A simple MementoCommandBinder which binds directly to an object

Definition at line 69 of file memento_command.h.

Constructor & Destructor Documentation

◆ SimpleMementoCommandBinder()

template<class obj_T >
SimpleMementoCommandBinder< obj_T >::SimpleMementoCommandBinder ( obj_T &  o)
inline

Definition at line 72 of file memento_command.h.

Member Function Documentation

◆ add_state()

template<class obj_T >
void SimpleMementoCommandBinder< obj_T >::add_state ( XMLNode )
inlinevirtual

Add our own state to an XMLNode

Implements MementoCommandBinder< obj_T >.

Definition at line 84 of file memento_command.h.

◆ get_state()

template<class obj_T >
XMLNode& SimpleMementoCommandBinder< obj_T >::get_state ( ) const
inlinevirtual

Implements MementoCommandBinder< obj_T >.

Definition at line 79 of file memento_command.h.

◆ object_died()

template<class obj_T >
void SimpleMementoCommandBinder< obj_T >::object_died ( )
inline

Definition at line 88 of file memento_command.h.

◆ set_state()

template<class obj_T >
void SimpleMementoCommandBinder< obj_T >::set_state ( XMLNode const &  node,
int  version 
) const
inlinevirtual

Implements MementoCommandBinder< obj_T >.

Definition at line 78 of file memento_command.h.

◆ type_name()

template<class obj_T >
std::string SimpleMementoCommandBinder< obj_T >::type_name ( ) const
inlinevirtual
Returns
Name of our type

Implements MementoCommandBinder< obj_T >.

Definition at line 80 of file memento_command.h.

Member Data Documentation

◆ _object

template<class obj_T >
obj_T& SimpleMementoCommandBinder< obj_T >::_object
private

Definition at line 94 of file memento_command.h.

◆ _object_death_connection

template<class obj_T >
PBD::ScopedConnection SimpleMementoCommandBinder< obj_T >::_object_death_connection
private

Definition at line 95 of file memento_command.h.


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