Comments (5)
helper/map.h is implemented that way, and it works.
We should do the same for set, list, pair, deque, stable_vector.
And we should add the new operators to helper::vector and helper::SVector.
from sofa.
started in https://github.com/anatoscope/sofa/tree/containers
from sofa.
Wouldn't it make sense to alias the std container to sofa::helper ?
So that the general guideline could be to always use sofa::helper::* and not "if your are using a list then use std::list, if it is a vector then use a sofa::helper::vector, ...".
More generally
- it would make the source code more consistent
- it would ease newcommer's life to get into sofa.
from sofa.
Also we could just define the stream operators << >> directly on std::vector (with the actual helper::vector implementations). So std::vector could be used in Data and helper::vector would be useful only for advanced users (like cuda-vector, stuff that is not necessary for regular Data).
from sofa.
There is a PR that resulted from this discussion and it was merged.
I close the Issue, do not hesitate to reopen in case it is too early.
from sofa.
Related Issues (20)
- support jpeg-xl in sofa
- Confirm choices of selected plugins
- Problem including SofaCUDA plugin - compilation errors HOT 2
- Divergent behavior of FastTetrahedralCorotationalForceField
- HexahedronCompositeFEMForceFieldAndMass Solver HOT 3
- Update fetch mechanism for plugins using cmake 3.24
- Inconsistency in the tests on hyperelastic materials HOT 1
- Enhancing Collision Physics in Unity with Sofa Framework Integration
- CMake Error Metis
- How to add new plugin in windows?
- How to make a beam collide with other objects
- Documentation for reference to find all information
- Sofa compilation in provided docker HOT 4
- Delete useless repository
- Refactor performer API
- LCPForceFeedback test
- SOFA is compatible with only x86_64, not arm64. HOT 2
- How to reset the simulation
- Multimaterial hyperelasticity using sub-topologies HOT 6
- How to change the local coordinate system of an object?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sofa.