Git Product home page Git Product logo

Comments (4)

arkinj avatar arkinj commented on August 28, 2024

The feature template 'feature_matches_child.ipp' has a constructor definition that accepts an xmlNodePtr as the function argument; this simply calls the from_xml() function.

The templated from_xml() function looks for the xml node ID by comparing against the string "feature_matches_child_ + templated class name". For example, if the feature was constructed with the Object class, the xml node should have an ID of "feature_matches_child_object", where 'object' is the output of the T::class_name() function (this is defined in the object header file). So, while the specific features are gone, the feature template looks for the same information in xml.

from h2sl.

rohanpaul avatar rohanpaul commented on August 28, 2024

Thanks Jake, this is a unique way to load the features, I had clearly overlooked this part. So, this will make the other match features easier:
feature_matches_child_
index
number
container
region_container etc.

from h2sl.

rohanpaul avatar rohanpaul commented on August 28, 2024

So derya already transferred the required match features. We can use the templated ones later and use the template ones for the new match features that we may write.

from h2sl.

arkinj avatar arkinj commented on August 28, 2024

We just need to be careful we are not double-dipping for certain features. Right, I think those will be handled in the same way. So, each symbol class needs to have the ::class_name() function defined.

from h2sl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.