| Version 2 (modified by osg, 5 years ago) |
|---|
Functor
TracNav
- About
- Screenshots
- News
- Developer Blog
- Mailing Lists
- Forum
Documentation
- Getting Started
- Platform Specifics
- Tutorials
- Examples
- User Guides
- Programming Guides
- Reference Guides
- LatestDevelopments
- Porting
- CMake
- CDash
- CPack
- FAQ
- Tips And Tricks
- Maths
- Knowledge Base
- Trac Usage Examples
- TracGuide Documentation
- Software Patents
- Software Patents Europe
- Downloads
- Community
- Links
A Functor is a class (in OSG a C++ class of course) which has a definition of the operator (). That means a functor is any class which could be used as a function.
Of course, the functor can then access or use any member variables of the class. A (non-const) functor could modify the values of member variables, but this is deprecated as the source of modification of the value is not obvious to the developer.
