attributesMembers | Descriptions
——————————–|———————————————
class c74::min::attribute_base |
class c74::min::attribute_threadsafe_helper |
class c74::min::attribute |
class c74::min::attribute_threadsafe_helper< T, threadsafe::yes > |
class c74::min::attribute_threadsafe_helper< T, threadsafe::no > |
c74::min::attribute_base| Members | Descriptions |
|---|---|
public inline attribute_base(object_base & an_owner,std::string a_name) |
|
public attribute_base & operator=(atoms args) |
set the value of the attribute |
public void set(const atoms & args,bool notify,bool override_readonly) |
set the value of the attribute |
public operator atoms() const |
get the value of the attribute |
public inline symbol datatype() const |
fetch the name of the datatype |
public inline symbol name() const |
|
public inline bool writable() const |
|
public inline const char * label_string() |
fetch the title/label as a string |
public inline std::string description_string() const |
|
public inline style editor_style() const |
|
public inline symbol editor_category() const |
|
public inline long editor_order() const |
|
public std::string range_string() |
fetch the range in string format, values separated by spaces |
public void create(max::t_class * c,max::method getter,max::method setter,bool isjitclass) |
Create the Max attribute and add it to the Max class. |
public inline size_t size_offset() |
calculate the offset of the size member as required for array/vector attributes |
public inline void touch() |
|
protected object_base & m_owner |
|
protected symbol m_name |
|
protected symbol m_title |
|
protected symbol m_datatype |
|
protected setter m_setter |
|
protected getter m_getter |
|
protected bool m_readonly |
|
protected size_t m_size |
|
protected description m_description |
size of array/vector if attr is array/vector |
protected style m_style |
|
protected symbol m_category |
|
protected long m_order |
|
protected inline long flags(bool isjitclass) |
public inline attribute_base(object_base & an_owner,std::string a_name)public attribute_base & operator=(atoms args)set the value of the attribute
public void set(const atoms & args,bool notify,bool override_readonly)set the value of the attribute
public operator atoms() constget the value of the attribute
public inline symbol datatype() constfetch the name of the datatype
public inline symbol name() constpublic inline bool writable() constpublic inline const char * label_string()fetch the title/label as a string
public inline std::string description_string() constpublic inline style editor_style() constpublic inline symbol editor_category() constpublic inline long editor_order() constpublic std::string range_string()fetch the range in string format, values separated by spaces
public void create(max::t_class * c,max::method getter,max::method setter,bool isjitclass)Create the Max attribute and add it to the Max class.
public inline size_t size_offset()calculate the offset of the size member as required for array/vector attributes
public inline void touch()protected object_base & m_ownerprotected symbol m_nameprotected symbol m_titleprotected symbol m_datatypeprotected setter m_setterprotected getter m_getterprotected bool m_readonlyprotected size_t m_sizeprotected description m_descriptionsize of array/vector if attr is array/vector
protected style m_styleprotected symbol m_categoryprotected long m_orderprotected inline long flags(bool isjitclass)c74::min::attribute_threadsafe_helperMembers | Descriptions
——————————–|———————————————
c74::min::attributeclass c74::min::attribute
: public c74::min::attribute_base
default is threadsafe::no
| Members | Descriptions |
|---|---|
public template<typename... ARGS> attribute(object_base * an_owner,std::string a_name,T a_default_value,ARGS... args) |
|
public inline attribute & operator=(const T arg) |
Set the attribute value using the native type of the attribute. |
public inline attribute & operator=(atoms args) |
Set the attribute value using atoms. |
public template<class U,typename enable_if< is_enum< U >::value, int >::type> inline attribute & operator=(symbol arg) |
|
public template<class U,typename enable_if< is_enum< U >::value, int >::type> inline void assign(const atoms & args) |
|
public inline void set(const atoms & args,bool notify,bool override_readonly) |
Set the attribute value. |
public T range_apply(const T & value) |
|
public void create(max::t_class * c,max::method getter,max::method setter,bool isjitclass) |
Create the Max attribute and add it to the Max class. |
public inline operator atoms() const |
|
public inline operator const T &() const |
|
public inline operator T &() |
|
public template<class U,typename enable_if< is_same< U, time_value >::value, int >::type> inline operator double() const |
|
public std::string range_string() |
|
public inline enum_map get_enum_map() |
|
public inline atoms get_range_args() |
|
public inline std::vector< T > & range_ref() |
|
public inline bool disabled() const |
|
public inline void disable(bool value) |
|
public template<> attribute(object_base * an_owner,std::string a_name,time_value a_default_value,ARGS... args) |
|
public template<> void create(max::t_class * c,max::method getter,max::method setter,bool isjitclass) |
|
public template<> std::string range_string() |
public template<typename... ARGS> attribute(object_base * an_owner,std::string a_name,T a_default_value,ARGS... args)Constructor
an_owner The instance pointer for the owning C++ class, typically you will pass ‘this’
a_name A string specifying the name of the attribute when dynamically addressed or inspected.
a_default_value The default value of the attribute, which will be set when the instance is created.
...args N arguments specifying optional properties of an attribute such as setter, label, style, etc.
public inline attribute & operator=(const T arg)Set the attribute value using the native type of the attribute.
public inline attribute & operator=(atoms args)Set the attribute value using atoms.
public template<class U,typename enable_if< is_enum< U >::value, int >::type> inline attribute & operator=(symbol arg)public template<class U,typename enable_if< is_enum< U >::value, int >::type> inline void assign(const atoms & args)public inline void set(const atoms & args,bool notify,bool override_readonly)Set the attribute value.
public T range_apply(const T & value)public void create(max::t_class * c,max::method getter,max::method setter,bool isjitclass)Create the Max attribute and add it to the Max class.
public inline operator atoms() constpublic inline operator const T &() constpublic inline operator T &()public template<class U,typename enable_if< is_same< U, time_value >::value, int >::type> inline operator double() constpublic std::string range_string()public inline enum_map get_enum_map()public inline atoms get_range_args()public inline std::vector< T > & range_ref()public inline bool disabled() constpublic inline void disable(bool value)public template<> attribute(object_base * an_owner,std::string a_name,time_value a_default_value,ARGS... args)public template<> void create(max::t_class * c,max::method getter,max::method setter,bool isjitclass)public template<> std::string range_string()c74::min::attribute_threadsafe_helper< T, threadsafe::yes >| Members | Descriptions |
|---|---|
public inline explicit attribute_threadsafe_helper(attribute< T, threadsafe::yes > * an_attribute) |
|
public inline void set(const atoms & args) |
public inline explicit attribute_threadsafe_helper(attribute< T, threadsafe::yes > * an_attribute)public inline void set(const atoms & args)c74::min::attribute_threadsafe_helper< T, threadsafe::no >| Members | Descriptions |
|---|---|
public inline explicit attribute_threadsafe_helper(attribute< T, threadsafe::no > * an_attribute) |
|
public inline ~attribute_threadsafe_helper() |
|
public inline void set(const atoms & args) |
public inline explicit attribute_threadsafe_helper(attribute< T, threadsafe::no > * an_attribute)public inline ~attribute_threadsafe_helper()public inline void set(const atoms & args)