コード例 #1
0
 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
ファイル: value.hpp プロジェクト: Tri-o-copter/Brainware
    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
ファイル: value.hpp プロジェクト: Tri-o-copter/Brainware
 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);
 }