stlab.adobe.com Adobe Systems Incorporated

widget_factory_t Class Reference

#include <widget_factory_registry.hpp>

List of all members.

Classes

struct  noconst
struct  nothrow

Public Types

typedef boost::tuple
< widget_factory_method_t,
bool, layout_attributes_t
data_type
typedef name_t key_type
typedef std::map< key_type,
data_type
map_type
typedef map_type::value_type value_type
typedef boost::function
< widget_node_t(const
dictionary_t &parameters,
const widget_node_t &parent,
const factory_token_t &token,
const widget_factory_t
&factory)> 
widget_factory_method_t

Public Member Functions

map_type::const_iterator find (name_t name) const
bool is_container (name_t name) const
bool is_reg (name_t name) const
const layout_attributes_tlayout_attributes (name_t name) const
const widget_factory_method_tmethod (name_t name) const
void reg (name_t name, widget_factory_method_t method, bool is_container=false, const layout_attributes_t &layout_attributes=layout_attributes_t())
void reg (name_t name, const data_type &data)
void unreg (name_t name)

Detailed Description

Definition at line 34 of file widget_factory_registry.hpp.


Member Typedef Documentation

Definition at line 43 of file widget_factory_registry.hpp.

typedef name_t key_type

Definition at line 44 of file widget_factory_registry.hpp.

typedef std::map<key_type, data_type> map_type

Definition at line 45 of file widget_factory_registry.hpp.

typedef map_type::value_type value_type

Definition at line 46 of file widget_factory_registry.hpp.

typedef boost::function<widget_node_t(const dictionary_t& parameters, const widget_node_t& parent, const factory_token_t& token, const widget_factory_t& factory)> widget_factory_method_t

Definition at line 40 of file widget_factory_registry.hpp.


Member Function Documentation

map_type::const_iterator find ( name_t  name ) const

This throws if name is not a registered widget

Definition at line 76 of file widget_factory_registry.hpp.

bool is_container ( name_t  name ) const

Definition at line 67 of file widget_factory_registry.hpp.

bool is_reg ( name_t  name ) const

Definition at line 58 of file widget_factory_registry.hpp.

const layout_attributes_t& layout_attributes ( name_t  name ) const

Definition at line 70 of file widget_factory_registry.hpp.

const widget_factory_method_t& method ( name_t  name ) const

Definition at line 64 of file widget_factory_registry.hpp.

void reg ( name_t  name,
widget_factory_method_t  method,
bool  is_container = false,
const layout_attributes_t layout_attributes = layout_attributes_t() 
)

Definition at line 52 of file widget_factory_registry.hpp.

void reg ( name_t  name,
const data_type data 
)

Definition at line 48 of file widget_factory_registry.hpp.

void unreg ( name_t  name )

Definition at line 61 of file widget_factory_registry.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