inkcpp
Loading...
Searching...
No Matches
ink::runtime::list_interface Class Reference

Interface for accessing a Ink list. More...

#include <list.h>

Classes

class  iterator
 iterater for flags in a list More...
 

Public Member Functions

virtual bool contains (const char *flag) const
 checks if a flag is contained in the list
 
virtual void add (const char *flag)
 add a flag to list
 
virtual void remove (const char *flag)
 removes a flag from list
 
virtual iterator begin () const
 begin iterator for contained flags in list
 
virtual iterator begin (const char *list_name) const
 returns a iterator over elements of the given list
 
virtual iterator end () const
 end iterator for contained flags in list
 

Detailed Description

Interface for accessing a Ink list.

Every function which takes a flag name can also be feed with a full flag name in the format listName.flagName

using namespace ink::runtime;
list l = globals.get<list>("list_var");
l.add("flagName");
l.add("listName.FlagName")
globals.set("list_var", l);
Interface for accessing a Ink list.
Definition list.h:43
virtual void add(const char *flag)
add a flag to list
Definition list.h:127
Pointer wrapper to an object whose lifetime is tied to a story object.
Definition story_ptr.h:85
T * get()
access value as ptr
Definition story_ptr.h:174
Contaning all modules and classes used for the inkles ink runtime.
Definition choice.h:13

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