Changes between Version 1 and Version 2 of Support/KnowledgeBase/Functor
 Timestamp:
 06/07/08 18:19:44 (9 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Support/KnowledgeBase/Functor
v1 v2 3 3 4 4 A Functor is a class (in OSG a C++ class of course) which has a definition of the 5 operator (). That is a functor is any class which could be used as a function.5 operator (). That means a functor is any class which could be used as a function. 6 6 7 Of course the functor can then access or use any member variables of the class. A (nonconst) 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 8 developer. 7 Of course, the functor can then access or use any member variables of the class. A (nonconst) 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.