SpectMorph
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SpectMorph::MorphPlan Class Reference
Inheritance diagram for SpectMorph::MorphPlan:
SpectMorph::Object SpectMorph::SignalReceiver

Classes

class  ExtraParameters
 

Public Types

enum  AddPos { ADD_POS_AUTO, ADD_POS_END }
 

Public Member Functions

bool load_index (const std::string &filename)
 
const Indexindex ()
 
void add_operator (MorphOperator *op, AddPos=ADD_POS_END, const std::string &name="", const std::string &id="", bool load_folded=false)
 
const std::vector< MorphOperator * > & operators ()
 
void remove (MorphOperator *op)
 
void move (MorphOperator *op, MorphOperator *op_next)
 
void set_plan_str (const std::string &plan_str)
 
void emit_plan_changed ()
 
void emit_index_changed ()
 
Error save (GenericOut *file, ExtraParameters *params=nullptr) const
 
Error load (GenericIn *in, ExtraParameters *params=nullptr)
 
void load_default ()
 
MorphPlanclone () const
 
- Public Member Functions inherited from SpectMorph::Object
void ref ()
 
void unref ()
 
- Public Member Functions inherited from SpectMorph::SignalReceiver
template<class... Args, class CbFunction >
uint64 connect (Signal< Args... > &signal, const CbFunction &callback)
 
template<class... Args, class Instance , class Method >
uint64 connect (Signal< Args... > &signal, Instance *instance, const Method &method)
 
void disconnect (uint64 id)
 
void dead_signal (uint64 id)
 

Static Public Member Functions

static std::string id_chars ()
 
static std::string generate_id ()
 

Public Attributes

Signal signal_plan_changed
 
Signal signal_index_changed
 
Signal signal_need_view_rebuild
 
Signal< MorphOperator * > signal_operator_removed
 

Protected Member Functions

void clear ()
 
Error load_internal (GenericIn *in, ExtraParameters *params=nullptr)
 

Protected Attributes

Index m_index
 
std::vector< MorphOperator * > m_operators
 
std::string index_filename
 
bool in_restore
 

Member Function Documentation

void MorphPlan::clear ( )
protected

Clears MorphPlan, deletes all operators and resets all variables to return to a state that is completely empty (like after creation).

Error MorphPlan::load ( GenericIn in,
ExtraParameters params = nullptr 
)

Loads MorphPlan from input stream.

Returns
Error::NONE if everything worked, an error otherwise
bool MorphPlan::load_index ( const std::string &  filename)

Sets and loads instrument index to be used.

Returns
true if the instrument index was loaded successfully, false otherwise
const vector< MorphOperator * > & MorphPlan::operators ( )

Get MorphPlan operators.

Returns
a read-only reference to the vector containing the operators.

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