v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Flag Struct Reference

Public Types

enum  FlagType {
  TYPE_BOOL, TYPE_INT, TYPE_FLOAT, TYPE_STRING,
  TYPE_ARGS
}
 

Public Member Functions

FlagType type () const
 
const char * name () const
 
const char * comment () const
 
bool * bool_variable () const
 
int * int_variable () const
 
double * float_variable () const
 
const char * string_value () const
 
void set_string_value (const char *value, bool owns_ptr)
 
JSArgumentsargs_variable () const
 
bool bool_default () const
 
int int_default () const
 
double float_default () const
 
const char * string_default () const
 
JSArguments args_default () const
 
bool IsDefault () const
 
void Reset ()
 

Data Fields

FlagType type_
 
const char * name_
 
void * valptr_
 
const void * defptr_
 
const char * cmt_
 
bool owns_ptr_
 

Detailed Description

Definition at line 54 of file flags.cc.

Member Enumeration Documentation

enum FlagType
Enumerator
TYPE_BOOL 
TYPE_INT 
TYPE_FLOAT 
TYPE_STRING 
TYPE_ARGS 

Definition at line 55 of file flags.cc.

Member Function Documentation

JSArguments args_default ( ) const
inline

Definition at line 123 of file flags.cc.

References ASSERT.

JSArguments* args_variable ( ) const
inline

Definition at line 98 of file flags.cc.

References ASSERT.

bool bool_default ( ) const
inline

Definition at line 103 of file flags.cc.

References ASSERT.

bool* bool_variable ( ) const
inline

Definition at line 70 of file flags.cc.

References ASSERT.

const char* comment ( ) const
inline

Definition at line 68 of file flags.cc.

double float_default ( ) const
inline

Definition at line 113 of file flags.cc.

References ASSERT.

double* float_variable ( ) const
inline

Definition at line 80 of file flags.cc.

References ASSERT.

int int_default ( ) const
inline

Definition at line 108 of file flags.cc.

References ASSERT.

int* int_variable ( ) const
inline

Definition at line 75 of file flags.cc.

References ASSERT.

bool IsDefault ( ) const
inline

Definition at line 129 of file flags.cc.

const char* name ( ) const
inline

Definition at line 66 of file flags.cc.

void Reset ( )
inline

Definition at line 152 of file flags.cc.

Referenced by FlagList::ResetAllFlags().

void set_string_value ( const char *  value,
bool  owns_ptr 
)
inline

Definition at line 90 of file flags.cc.

References ASSERT, v8::internal::DeleteArray(), and v8::internal::NULL.

const char* string_default ( ) const
inline

Definition at line 118 of file flags.cc.

References ASSERT.

const char* string_value ( ) const
inline

Definition at line 85 of file flags.cc.

References ASSERT.

FlagType type ( ) const
inline

Definition at line 64 of file flags.cc.

Field Documentation

const char* cmt_

Definition at line 61 of file flags.cc.

const void* defptr_

Definition at line 60 of file flags.cc.

const char* name_

Definition at line 58 of file flags.cc.

bool owns_ptr_

Definition at line 62 of file flags.cc.

FlagType type_

Definition at line 57 of file flags.cc.

void* valptr_

Definition at line 59 of file flags.cc.


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