ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

func.h File Reference

#include "common/scummsys.h"
Include dependency graph for func.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Common::UnaryFunction< Arg, Result >
 Generic unary function. More...
struct  Common::BinaryFunction< Arg1, Arg2, Result >
 Generic binary function. More...
struct  Common::EqualTo< T >
 Predicate to check for equallity of two data elements. More...
struct  Common::Less< T >
 Predicate to check for x being less than y. More...
struct  Common::Greater< T >
 Predicate to check for x being greater than y. More...
class  Common::Binder1st< Op >
class  Common::Binder2nd< Op >
class  Common::PointerToUnaryFunc< Arg, Result >
class  Common::PointerToBinaryFunc< Arg1, Arg2, Result >
class  Common::MemFunc0< Result, T >
class  Common::ConstMemFunc0< Result, T >
class  Common::MemFunc1< Result, Arg, T >
class  Common::ConstMemFunc1< Result, Arg, T >
class  Common::MemFuncRef0< Result, T >
class  Common::ConstMemFuncRef0< Result, T >
class  Common::MemFuncRef1< Result, Arg, T >
class  Common::ConstMemFuncRef1< Result, Arg, T >
struct  Common::Functor0< Res >
 Generic functor object for function objects without parameters. More...
class  Common::Functor0Mem< Res, T >
 Functor object for a class member function without parameter. More...
struct  Common::Functor1< Arg, Res >
 Generic functor object for unary function objects. More...
class  Common::Functor1Mem< Arg, Res, T >
 Functor object for an unary class member function. More...
struct  Common::Functor2< Arg1, Arg2, Res >
 Generic functor object for binary function objects. More...
class  Common::Functor2Fun< Arg1, Arg2, Res >
 Functor object for a binary function. More...
class  Common::Functor2Mem< Arg1, Arg2, Res, T >
 Functor object for a binary class member function. More...

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Defines

#define GENERATE_TRIVIAL_HASH_FUNCTOR(T)

Functions

template<class Op >
Binder1st< Op > Common::bind1st (const Op &op, typename Op::FirstArgumentType t)
 Transforms a binary function object into an unary function object.
template<class Op >
Binder2nd< Op > Common::bind2nd (const Op &op, typename Op::SecondArgumentType t)
 Transforms a binary function object into an unary function object.
template<class Arg , class Result >
PointerToUnaryFunc< Arg, Result > Common::ptr_fun (Result(*func)(Arg))
 Creates an unary function object from a function pointer.
template<class Arg1 , class Arg2 , class Result >
PointerToBinaryFunc< Arg1,
Arg2, Result > 
Common::ptr_fun (Result(*func)(Arg1, Arg2))
 Creates an binary function object from a function pointer.
template<class Result , class T >
MemFunc0< Result, T > Common::mem_fun (Result(T::*f)())
 Creates a unary function object from a class member function pointer.
template<class Result , class Arg , class T >
MemFunc1< Result, Arg, T > Common::mem_fun (Result(T::*f)(Arg))
 Creates a binary function object from a class member function pointer.
template<class Result , class T >
MemFuncRef0< Result, T > Common::mem_fun_ref (Result(T::*f)())
 Creates a unary function object from a class member function pointer.
template<class Result , class T >
ConstMemFuncRef0< Result, T > Common::mem_fun_Ref (Result(T::*f)() const)
 Creates a unary function object from a class member function pointer.
template<class Result , class Arg , class T >
MemFuncRef1< Result, Arg, T > Common::mem_fun_ref (Result(T::*f)(Arg))
 Creates a binary function object from a class member function pointer.
 Common::GENERATE_TRIVIAL_HASH_FUNCTOR (bool)
 Common::GENERATE_TRIVIAL_HASH_FUNCTOR (char)
 Common::GENERATE_TRIVIAL_HASH_FUNCTOR (signed char)
 Common::GENERATE_TRIVIAL_HASH_FUNCTOR (unsigned char)
 Common::GENERATE_TRIVIAL_HASH_FUNCTOR (short)
 Common::GENERATE_TRIVIAL_HASH_FUNCTOR (int)
 Common::GENERATE_TRIVIAL_HASH_FUNCTOR (long)

Define Documentation

#define GENERATE_TRIVIAL_HASH_FUNCTOR (   T  ) 
Value:
template<> struct Hash<T> : public UnaryFunction<T, uint> { \
        uint operator()(T val) const { return (uint)val; } \
    }

Definition at line 521 of file func.h.



Generated on Sat Mar 16 2019 05:02:49 for ResidualVM by doxygen 1.7.1
curved edge   curved edge