A class which can be used to hang USERDATA off an SML::STRING or SML::SYMBOL. More...
#include <sml/userdata.h>
Public Types | |
| enum | TAG { TAG_NONE = 0, TAG_TABLE = 1, TAG_FIELD = 2, TAG_REGEXP = 3, TAG_FirstUserTag = 1000, TAG_BIGNUMBER = 0x7FFFFFF } |
Public Member Functions | |
| USERDATA (TAG tag) | |
| virtual | ~USERDATA () |
| TAG | GetTag () const |
Static Public Member Functions | |
| static TAG | AllocTag () |
A class which can be used to hang USERDATA off an SML::STRING or SML::SYMBOL.
To use, you have to derive a class from SML::USERDATA, Create your own ID in the enum below, and make your constructor call the base class constructor, passing in your id.
For MicroImages employees adding derived classes, just use the next available number in the TAG enum. If using TNTsdk, start your numbers at something high like 1024 so there's no chance of conflicting with later additions by MicroImages.
| enum SML::USERDATA::TAG |
| SML::USERDATA::USERDATA | ( | TAG | tag | ) | [inline] |
| virtual SML::USERDATA::~USERDATA | ( | ) | [inline, virtual] |
| static TAG SML::USERDATA::AllocTag | ( | ) | [static] |
Allocate a tag to use for a user-defined SML::USERDATA Note: You should allocate one and keep it allocated.
unless you need to attach multiple instances of the same type
| TAG SML::USERDATA::GetTag | ( | ) | const [inline] |
1.6.1