Module attributes

Summary

Members | 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 > |

class c74::min::attribute_base

Summary

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)  

Members

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)

class c74::min::attribute_threadsafe_helper

Summary

Members | Descriptions
——————————–|———————————————

Members

class c74::min::attribute

class c74::min::attribute
  : public c74::min::attribute_base

default is threadsafe::no

Summary

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()
 

Members

public template<typename... ARGS>
attribute(object_base * an_owner,std::string a_name,T a_default_value,ARGS... args)

Constructor

Parameters

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()

class c74::min::attribute_threadsafe_helper< T, threadsafe::yes >

Summary

Members Descriptions
public inline explicit attribute_threadsafe_helper(attribute< T, threadsafe::yes > * an_attribute)  
public inline void set(const atoms & args)  

Members

public inline explicit attribute_threadsafe_helper(attribute< T, threadsafe::yes > * an_attribute)

public inline void set(const atoms & args)

class c74::min::attribute_threadsafe_helper< T, threadsafe::no >

Summary

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)  

Members

public inline explicit attribute_threadsafe_helper(attribute< T, threadsafe::no > * an_attribute)

public inline ~attribute_threadsafe_helper()

public inline void set(const atoms & args)