inline Reference Reference::operator[](const Constant& index) const
 {
     SFun_Reference_Impl* pResult = SFun_Reference_op_subscript_C(
         fpImpl,
         index.getImpl());
     return Reference(pResult);
 }
Пример #2
0
    inline Value Value::operator[](const Constant& index) const
    {
        const SFun_Value_Impl* pThis = getImpl();
        const SFun_Constant_Impl* index_impl = index.getImpl();

        SFun_Value_Impl* pResult = SFun_Value_op_subscript_C(pThis, index_impl);
        return Value(pResult);
    }
Пример #3
0
 inline Value::Value(const Type& aType, const Constant& val,    const char* name)
     : fpImpl( SFun_Value_ctor_T_C_d_c(aType.getImpl(), val.getImpl(), name) )
 {
     verify(fpImpl);
 }