Game Develop Core: gd::GroupHasTheSameName Struct Reference

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- Class List
- Class Index
- Class Hierarchy

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
Public Member Functions | List of all members
gd::GroupHasTheSameName Struct Reference

Functor to easily find an object group with a specific name. More...

`#include <ObjectGroup.h>`

Inheritance diagram for gd::GroupHasTheSameName:
[legend]

## Public Member Functions

bool | operator() (const ObjectGroup &group, const std::string &name) const

## Detailed Description

Functor to easily find an object group with a specific name.

Usage example:

vector< gd::ObjectGroup >::const_iterator myGroup = find_if(layout.GetObjectGroups().begin(), layout.GetObjectGroups().end(), bind2nd(gd::GroupHasTheSameName(), "myGroup"));
if ( myGroup != layout.GetObjectGroups().end() )
{
//...
}

See Also
  gd::ObjectGroup

The documentation for this struct was generated from the following file:

- ObjectGroup.h