~jesterking/blender/win32libs

« back to all changes in this revision

Viewing changes to openimageio/include/OpenImageIO/paramlist.h

  • Committer: dingto
  • Date: 2013-12-06 17:01:28 UTC
  • Revision ID: svn-v4:954f8c5b-7b00-dc11-b283-0030488c597c:trunk/lib/windows:61249
MSVC 2008 x86
* Update OSL to 1.4.0 and OIIO to 1.3.9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
    int nvalues () const { return m_nvalues; }
114
114
    const void *data () const { return m_nonlocal ? m_data.ptr : &m_data; }
115
115
    int datasize () const { return m_nvalues * static_cast<int>(m_type.size()); }
 
116
    Interp interp () const { return (Interp)m_interp; }
 
117
    void interp (Interp i) { m_interp = (unsigned char )i; }
116
118
 
117
119
    friend void swap (ParamValue &a, ParamValue &b) {
118
120
        std::swap (a.m_name,     b.m_name);
127
129
    ustring m_name;           ///< data name
128
130
    TypeDesc m_type;          ///< data type, which may itself be an array
129
131
    int m_nvalues;            ///< number of values of the given type
 
132
    unsigned char m_interp;   ///< Interpolation type
 
133
    bool m_copy, m_nonlocal;
130
134
    union {
131
135
        ptrdiff_t localval;
132
136
        const void *ptr;
133
137
    } m_data;             ///< Our data, either a pointer or small local value
134
 
    unsigned char m_interp;   ///< Interpolation type
135
 
    bool m_copy, m_nonlocal;
136
138
 
137
139
    void init_noclear (ustring _name, TypeDesc _type,
138
140
                       int _nvalues, const void *_value, bool _copy=true);
183
185
 
184
186
    /// Add a ParamValue to the end of the list.
185
187
    ///
186
 
    void push_back (ParamValue &p) { m_vals.push_back (p); }
 
188
    void push_back (const ParamValue &p) { m_vals.push_back (p); }
187
189
    
188
190
    /// Removes from the ParamValueList container a single element.
189
191
    ///