What would you think of a "filter" member for collections, and more.
Say you have this:

class Permissions

class Group
{
  dbo::collection<Permission> permissions;
  ... other things ...
}

class Permission
{
  dbo::collection<Group> groups;
  std::string name;
  .. other things ...
}

Where the link between permissions and groups is many-to-many, and
consider this:

dbo:ptr<Group> g = GroupFromSomewhere();
dbo::ptr<Permission> edit_post =
g->permissions.filter<dbo::ptr<Permission> >("where name =
?").bind("edit_post");
if(edit_post) doEditPost();

And perhaps a contain member function and many others, maybe call
filter query to be consistent or whatever, etc...

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to