Esempio n. 1
0
        //# }

        #endregion

        #region Tensors

        //# foreach (var t in geometryTypes) structTypes.Add(t);
        //# var simpleTypes = directlyCodeableTypes.Concat(specialSimpleTypes).Concat(geometryTypes);
        //# var genericTensorTypes = new[] { "Vector", "Matrix", "Volume", "Tensor" };
        //# var genericTensorSizes = new[] { "long", "V2l", "V3l", "long[]" };
        //# genericTensorTypes.ForEach((tt, ti) => {
        //#     var ts = genericTensorSizes[ti]; var tsn = Meta.GetXmlTypeName(ts);
        //#     simpleTypes.ForEach((t, i) => {
        //#         var type = tt + "<" + t + ">";
        //#         structTypes.Add(type);
        //# var dname = Meta.GetXmlTypeName(t + "[]");
        //# var name = Meta.GetXmlTypeName(type);
        public void Code__name__(ref __type__ value)
        {
            __t__[] data   = null; Code__dname__(ref data);
            long    origin = 0L; CodeLong(ref origin);
            __ts__  size   = default(__ts__); Code__tsn__(ref size);
            __ts__  delta  = default(__ts__); Code__tsn__(ref delta);

            value = new __type__(data, origin, size, delta);
        }
Esempio n. 2
0
        //# }

        #endregion

        #region Tensors

        //# foreach (var t in geometryTypes) structTypes.Add(t);
        //# var simpleTypes = directlyCodeableTypes.Concat(specialSimpleTypes).Concat(geometryTypes);
        //# var genericTensorTypes = new[] { "Vector", "Matrix", "Volume", "Tensor" };
        //# var genericTensorSizes = new[] { "long", "V2l", "V3l", "long[]" };
        //# genericTensorTypes.ForEach((tt, ti) => {
        //#     var ts = genericTensorSizes[ti]; var tsn = Meta.GetXmlTypeName(ts);
        //#     simpleTypes.ForEach((t, i) => {
        //#         var type = tt + "<" + t + ">";
        //#         tensorTypes.Add(type);
        //# var dname = Meta.GetXmlTypeName(t + "[]");
        //# var name = Meta.GetXmlTypeName(type);
        public void Code__name__(ref __type__ value)
        {
            m_stateStack.Push(m_state);
            m_state.Enumerator = m_state.Element.Elements().GetEnumerator();
            m_state.Element    = m_state.Enumerator.Current;
            m_stateStack.Push(m_state);
            m_state.Enumerator = m_state.Element.Elements().GetEnumerator();
            m_state.Element    = m_state.Enumerator.Current;

            __t__[] data = null; Code__dname__(ref data);

            m_state = m_stateStack.Pop();
            m_state.Advance();
            m_stateStack.Push(m_state);
            m_state.Enumerator = m_state.Element.Elements().GetEnumerator();
            m_state.Element    = m_state.Enumerator.Current;

            long origin = 0L; CodeLong(ref origin);

            m_state = m_stateStack.Pop();
            m_state.Advance();
            m_stateStack.Push(m_state);
            m_state.Enumerator = m_state.Element.Elements().GetEnumerator();
            m_state.Element    = m_state.Enumerator.Current;

            __ts__ size = default(__ts__); Code__tsn__(ref size);

            m_state = m_stateStack.Pop();
            m_state.Advance();
            m_stateStack.Push(m_state);
            m_state.Enumerator = m_state.Element.Elements().GetEnumerator();
            m_state.Element    = m_state.Enumerator.Current;

            __ts__ delta = default(__ts__); Code__tsn__(ref delta);

            m_state = m_stateStack.Pop();
            m_state = m_stateStack.Pop();

            value = new __type__(data, origin, size, delta);
        }