neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::mvc::model< AbstractModel > Class Template Reference

#include <model.hpp>

Inheritance diagram for neogfx::mvc::model< AbstractModel >:
neogfx::mvc::i_model

Public Types

typedef base_type abstract_type
 

Public Member Functions

 define_declared_event (Modified, modified) define_declared_event(ControllerAdded
 
i_controllerdefine_declared_event (ControllerRemoved, controller_removed, i_controller &) public
 
bool dirty () const override
 
void set_dirty () override
 
void set_clean () override
 
void add_controller (i_controller &aController) override
 
void remove_controller (i_controller &aController) override
 
- Public Member Functions inherited from neogfx::mvc::i_model
 declare_event (modified) declare_event(controller_added
 

Public Attributes

 controller_added
 

Detailed Description

template<typename AbstractModel = i_model>
class neogfx::mvc::model< AbstractModel >

Definition at line 29 of file model.hpp.

Member Typedef Documentation

◆ abstract_type

template<typename AbstractModel = i_model>
typedef base_type neogfx::mvc::model< AbstractModel >::abstract_type

Definition at line 33 of file model.hpp.

Member Function Documentation

◆ add_controller()

template<typename AbstractModel = i_model>
void neogfx::mvc::model< AbstractModel >::add_controller ( i_controller aController)
inlineoverridevirtual

Implements neogfx::mvc::i_model.

Definition at line 61 of file model.hpp.

◆ define_declared_event() [1/2]

template<typename AbstractModel = i_model>
i_controller & neogfx::mvc::model< AbstractModel >::define_declared_event ( ControllerRemoved  ,
controller_removed  ,
i_controller  
)
inline

Definition at line 37 of file model.hpp.

◆ define_declared_event() [2/2]

template<typename AbstractModel = i_model>
neogfx::mvc::model< AbstractModel >::define_declared_event ( Modified  ,
modified   
)

◆ dirty()

template<typename AbstractModel = i_model>
bool neogfx::mvc::model< AbstractModel >::dirty ( ) const
inlineoverridevirtual

Implements neogfx::mvc::i_model.

Definition at line 44 of file model.hpp.

◆ remove_controller()

template<typename AbstractModel = i_model>
void neogfx::mvc::model< AbstractModel >::remove_controller ( i_controller aController)
inlineoverridevirtual

Implements neogfx::mvc::i_model.

Definition at line 66 of file model.hpp.

◆ set_clean()

template<typename AbstractModel = i_model>
void neogfx::mvc::model< AbstractModel >::set_clean ( )
inlineoverridevirtual

Implements neogfx::mvc::i_model.

Definition at line 56 of file model.hpp.

◆ set_dirty()

template<typename AbstractModel = i_model>
void neogfx::mvc::model< AbstractModel >::set_dirty ( )
inlineoverridevirtual

Implements neogfx::mvc::i_model.

Definition at line 48 of file model.hpp.

Member Data Documentation

◆ controller_added

template<typename AbstractModel = i_model>
neogfx::mvc::model< AbstractModel >::controller_added

Definition at line 36 of file model.hpp.


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