Changeset 7352 for code/branches/doc/src/libraries/util
- Timestamp:
- Sep 4, 2010, 11:33:02 PM (14 years ago)
- Location:
- code/branches/doc/src/libraries/util
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/util/Debug.h
r7323 r7352 35 35 /** 36 36 @file 37 @ingroup UtilCOUT37 @ingroup COUT 38 38 @brief 39 39 Handles different output-levels of errors, warnings, infos, and debug information. -
code/branches/doc/src/libraries/util/Math.h
r7323 r7352 34 34 /** 35 35 @file 36 @ingroup UtilMath36 @ingroup Math 37 37 @brief Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the orxonox namespace. 38 38 */ -
code/branches/doc/src/libraries/util/MultiType.h
r7323 r7352 34 34 /** 35 35 @file 36 @ingroup UtilMultiType36 @ingroup MultiType 37 37 @brief Declaration of the MultiType and some helper constructs. 38 38 -
code/branches/doc/src/libraries/util/MultiTypeValue.h
r7323 r7352 29 29 /** 30 30 @file 31 @ingroup UtilMultiType31 @ingroup MultiType 32 32 @brief Declaration and Implementation of the MT_Value<T> class. 33 33 -
code/branches/doc/src/libraries/util/Scope.h
r7323 r7352 29 29 /** 30 30 @file 31 @ingroup UtilSingletonScope31 @ingroup SingletonScope 32 32 @brief Declaration of the classes that are needed to use Scopes: 33 33 orxonox::Scope, orxonox::ScopeListener, and orxonox::ScopeManager. -
code/branches/doc/src/libraries/util/ScopedSingletonManager.h
r7323 r7352 29 29 /** 30 30 @file 31 @ingroup UtilSingletonScope31 @ingroup SingletonScope 32 32 @brief Definition of orxonox::ScopedSingletonManager, orxonox::ClassScopedSingletonManager, and the ManageScopedSingleton macro. 33 33 -
code/branches/doc/src/libraries/util/SharedPtr.h
r7327 r7352 29 29 /** 30 30 @defgroup SharedPtr SharedPtr<T> 31 @ingroup Util Object31 @ingroup Util 32 32 */ 33 33 34 34 /** 35 35 @file 36 @ingroup UtilSharedPtr36 @ingroup SharedPtr 37 37 @brief Definition of the SharedPtr template that is used to manage pointers. 38 38 -
code/branches/doc/src/libraries/util/Singleton.h
r7323 r7352 34 34 /** 35 35 @file 36 @ingroup UtilSingletonScope36 @ingroup SingletonScope 37 37 @brief Definition of the Singleton template that is used as base class for classes that allow only one instance. 38 38 -
code/branches/doc/src/libraries/util/SmallObjectAllocator.h
r7327 r7352 29 29 /** 30 30 @defgroup SmallObjectAllocator SmallObjectAllocator 31 @ingroup Util Object31 @ingroup Util 32 32 */ 33 33 34 34 /** 35 35 @file 36 @ingroup UtilSmallObjectAllocator36 @ingroup SmallObjectAllocator 37 37 @brief Declaration of SmallObjectAllocator 38 38 -
code/branches/doc/src/libraries/util/StringUtils.h
r7327 r7352 34 34 /** 35 35 @file 36 @ingroup UtilString36 @ingroup String 37 37 @brief Declaration of several string manipulation functions, used in many parts of the game. 38 38 */ -
code/branches/doc/src/libraries/util/SubString.cc
r7332 r7352 37 37 * Extended by Fabian 'x3n' Landau by the SL_PARENTHESES mode. 38 38 */ 39 40 /** 41 @file 42 @brief Implementation of the SubString class. 43 */ 39 44 40 45 #include "SubString.h" -
code/branches/doc/src/libraries/util/SubString.h
r7327 r7352 39 39 /** 40 40 @file 41 @ingroup UtilString42 @brief a small class to get the parts of a string separated by commas41 @ingroup String 42 @brief A helper class to split a string into several tokens. 43 43 44 44 @anchor SubStringExample -
code/branches/doc/src/libraries/util/VA_NARGS.h
r7327 r7352 31 31 @ingroup Util 32 32 @brief Declaration of the ORXONOX_VA_NARGS macro which returns the number of arguments passed to a variadic macro. 33 34 With this utility you can overload a macro for different numbers of arguments 35 (of course overloading is not possible for different types, as macros are not 36 type aware, but for different numbers of arguments is still very powerful). 37 38 Example: A macro to call functions 39 @code 40 myfunction(); // A static function 41 MyClass::myStaticFunction(); // A static class function 42 MyClass::myFunction(); // A member function 43 44 #define CallFunction(...) \ // Define a variadic macro that passes the arguments to the overloaded implementations 45 BOOST_PP_EXPAND(BOOST_PP_CAT(CallFunction, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__)) 46 47 #define CallFunction1(function) \ // Overloaded macro for 1 argument 48 function() // Calls the static function 49 50 #define CallFunction2(class, function) \ // Overloaded macro for 2 arguments 51 class::function() // Calls the static class function 52 53 #define CallFunction3(class, function, object) \ // Overloaded macro for 3 arguments 54 object->class::function() // Calls the function on the object 55 56 57 CallFunction(myFunction); // Call the macro with 1 argument 58 CallFunction(MyClass, myStaticFunction); // Call the macro with 2 arguments 59 CallFunction(MyClass, myFunction, new MyClass()); // Call the macro with 3 arguments 60 @endcode 61 62 Note that the first (variadic) macro concatenates the name "CallFunction" with 63 the number of arguments ("1" - "N"). Then all arguments are passed to the right macro. 33 64 */ 34 65
Note: See TracChangeset
for help on using the changeset viewer.