Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
ident Struct Reference

#include <command.hpp>

Public Member Functions

 ident ()
 
 ident (int t, const char *n, int m, int x, SharedVar< int > *s, void *f=nullptr, int flags=0)
 
 ident (int t, const char *n, int m, int x, int *s, void *f=nullptr, int flags=0)
 
 ident (int t, const char *n, float m, float x, SharedVar< float > *s, void *f=nullptr, int flags=0)
 
 ident (int t, const char *n, SharedVar< char * > *s, void *f=nullptr, int flags=0)
 
 ident (int t, const char *n, char *a, int flags)
 
 ident (int t, const char *n, int a, int flags)
 
 ident (int t, const char *n, float a, int flags)
 
 ident (int t, const char *n, int flags)
 
 ident (int t, const char *n, const tagval &v, int flags)
 
 ident (int t, const char *n, const char *args, uint argmask, int numargs, void *f=nullptr, int flags=0)
 
void changed ()
 
void setval (const tagval &v)
 
void setval (const identstack &v)
 
void forcenull ()
 
float getfloat () const
 
int getint () const
 
const char * getstr () const
 
void getval (tagval &v) const
 

Public Attributes

uchar type
 
union {
uchar valtype
 
uchar numargs
 
}; 
 
ushort flags
 
int index
 
const char * name
 
union {
   struct {
      union {
         struct {
int minval
 
int maxval
 
         } 
 
         struct {
float minvalf
 
float maxvalf
 
         } 
 
      } 
 
identvalptr storage
 
identval overrideval
 
   } 
 
   struct {
uintcode
 
identval val
 
identstackstack
 
   } 
 
   struct {
const char * args
 
uint argmask
 
   } 
 
}; 
 
identfun fun
 

Constructor & Destructor Documentation

ident::ident ( )
inline
ident::ident ( int  t,
const char *  n,
int  m,
int  x,
SharedVar< int > *  s,
void f = nullptr,
int  flags = 0 
)
inline
ident::ident ( int  t,
const char *  n,
int  m,
int  x,
int *  s,
void f = nullptr,
int  flags = 0 
)
inline
ident::ident ( int  t,
const char *  n,
float  m,
float  x,
SharedVar< float > *  s,
void f = nullptr,
int  flags = 0 
)
inline
ident::ident ( int  t,
const char *  n,
SharedVar< char * > *  s,
void f = nullptr,
int  flags = 0 
)
inline
ident::ident ( int  t,
const char *  n,
char *  a,
int  flags 
)
inline
ident::ident ( int  t,
const char *  n,
int  a,
int  flags 
)
inline
ident::ident ( int  t,
const char *  n,
float  a,
int  flags 
)
inline
ident::ident ( int  t,
const char *  n,
int  flags 
)
inline
ident::ident ( int  t,
const char *  n,
const tagval v,
int  flags 
)
inline
ident::ident ( int  t,
const char *  n,
const char *  args,
uint  argmask,
int  numargs,
void f = nullptr,
int  flags = 0 
)
inline

Member Function Documentation

void ident::changed ( )
inline

References fun.

Referenced by clearoverride().

void ident::forcenull ( )
inline

References VAL_NULL, and VAL_STR.

float ident::getfloat ( ) const
inline

References getfloat().

Referenced by runcode().

int ident::getint ( ) const
inline

References getint().

Referenced by runcode().

const char * ident::getstr ( ) const
inline

References getstr().

Referenced by getalias(), and runcode().

void ident::getval ( tagval v) const
inline
void ident::setval ( const tagval v)
inline

References tagval::type.

void ident::setval ( const identstack v)
inline

Member Data Documentation

union { ... }
union { ... }
ushort ident::flags
identfun ident::fun

Referenced by callcommand(), changed(), and runcode().

int ident::index
const char* ident::name
uchar ident::type

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