stlab.adobe.com Adobe Systems Incorporated

sequence_model_multiplexer< T > Struct Template Reference

#include <sequence_mvc_muldex.hpp>

List of all members.

Public Types

typedef adobe::sequence_key< T > key_type
typedef dictionary_t model_type
typedef boost::function< void(const
model_type &)> 
proc_type
typedef T value_type

Public Member Functions

void clear ()
void enable (bool)
void erase (const vector< key_type > &key_set)
void insert (key_type before, const value_type &value)
void insert_set (key_type before, const vector< value_type > &value_set)
void monitor (const proc_type &proc)
void push_back (const value_type &value)
template<typename SequenceController >
 sequence_model_multiplexer (SequenceController &controller)
void set (key_type key, const value_type &value)

Detailed Description

template<typename T>
struct adobe::sequence_model_multiplexer< T >

my_sequence_controller -> **sequence_model_multiplexer** -> property_model

This structure is the glue between the client's sequence controller and the property model. It models a sequence controller and will receive command as such, at which point it bundles up (multiplexes, hence the name) all the parameters it gets into a dictionary. The dictionary is then piped out to the attached property model, of which this structure is a controller to a particular cell. The monitor callback routine will (under the hood) invoke an update of the property model, causing the recently-pushed dictionary to be propagated 'down the line' to the acutal sequence model waiting for it on the other side (see the sequence_model_demultiplexer below.)

Definition at line 526 of file sequence_mvc_muldex.hpp.


Member Typedef Documentation

Definition at line 529 of file sequence_mvc_muldex.hpp.

Definition at line 530 of file sequence_mvc_muldex.hpp.

typedef boost::function<void (const model_type&)> proc_type

Definition at line 531 of file sequence_mvc_muldex.hpp.

typedef T value_type

Definition at line 528 of file sequence_mvc_muldex.hpp.


Constructor & Destructor Documentation

sequence_model_multiplexer ( SequenceController &  controller )

Definition at line 534 of file sequence_mvc_muldex.hpp.


Member Function Documentation

void clear (  )

Definition at line 615 of file sequence_mvc_muldex.hpp.

void enable ( bool   )

Definition at line 634 of file sequence_mvc_muldex.hpp.

void erase ( const vector< key_type > &  key_set )

Definition at line 602 of file sequence_mvc_muldex.hpp.

void insert ( key_type  before,
const value_type value 
)

Definition at line 574 of file sequence_mvc_muldex.hpp.

void insert_set ( key_type  before,
const vector< value_type > &  value_set 
)

Definition at line 588 of file sequence_mvc_muldex.hpp.

void monitor ( const proc_type proc )

Definition at line 631 of file sequence_mvc_muldex.hpp.

void push_back ( const value_type value )

Definition at line 547 of file sequence_mvc_muldex.hpp.

void set ( key_type  key,
const value_type value 
)

Definition at line 560 of file sequence_mvc_muldex.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google