My Project
Public Member Functions | Properties | List of all members
NPLMono.NPLTable Class Reference

Do not use this class directly, use NPLObjectProxy instead. More...

Inheritance diagram for NPLMono.NPLTable:
NPLMono.NPLObjectBase NPLMono.NPLObjectBase

Public Member Functions

 NPLTable ()
 this is an empty table
 
override string ToString ()
 output table to serialized string. More...
 
void Clear ()
 clear the table object
 
void SetField (string sName, NPLObjectProxy obj)
 Set the field. More...
 
void SetField (int nIndex, NPLObjectProxy obj)
 
NPLObjectProxy GetField (string sName)
 get a field. More...
 
NPLObjectProxy GetField (int nIndex)
 
NPLObjectProxy CreateGetField (string sName)
 create or get a field. More...
 
NPLObjectProxy CreateGetField (int nIndex)
 
System.Collections.IEnumerator GetEnumerator ()
 
 NPLTable ()
 this is an empty table
 
override string ToString ()
 output table to serialized string. More...
 
void Clear ()
 clear the table object
 
void SetField (string sName, NPLObjectProxy obj)
 Set the field. More...
 
void SetField (int nIndex, NPLObjectProxy obj)
 
NPLObjectProxy GetField (string sName)
 get a field. More...
 
NPLObjectProxy GetField (int nIndex)
 
NPLObjectProxy CreateGetField (string sName)
 create or get a field. More...
 
NPLObjectProxy CreateGetField (int nIndex)
 
System.Collections.IEnumerator GetEnumerator ()
 
- Public Member Functions inherited from NPLMono.NPLObjectBase
NPLObjectType GetMyType ()
 
NPLObjectType GetMyType ()
 

Properties

NPLObjectProxy this[string sName] [get, set]
 this will create get field. More...
 
NPLObjectProxy this[int nIndex] [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from NPLMono.NPLObjectBase
NPLObjectType m_type
 

Detailed Description

Do not use this class directly, use NPLObjectProxy instead.

Member Function Documentation

§ CreateGetField() [1/2]

NPLObjectProxy NPLMono.NPLTable.CreateGetField ( string  sName)
inline

create or get a field.

It may return null proxy

§ CreateGetField() [2/2]

NPLObjectProxy NPLMono.NPLTable.CreateGetField ( string  sName)
inline

create or get a field.

It may return null proxy

§ GetField() [1/2]

NPLObjectProxy NPLMono.NPLTable.GetField ( string  sName)
inline

get a field.

It may return null if not found.

§ GetField() [2/2]

NPLObjectProxy NPLMono.NPLTable.GetField ( string  sName)
inline

get a field.

It may return null if not found.

§ SetField() [1/2]

void NPLMono.NPLTable.SetField ( string  sName,
NPLObjectProxy  obj 
)
inline

Set the field.

Parameters
sNamethe field name
pObjectif NULL, it will remove the field, as if nil in lua.

§ SetField() [2/2]

void NPLMono.NPLTable.SetField ( string  sName,
NPLObjectProxy  obj 
)
inline

Set the field.

Parameters
sNamethe field name
pObjectif NULL, it will remove the field, as if nil in lua.

§ ToString() [1/2]

override string NPLMono.NPLTable.ToString ( )
inline

output table to serialized string.

§ ToString() [2/2]

override string NPLMono.NPLTable.ToString ( )
inline

output table to serialized string.

Property Documentation

§ this[string sName]

NPLObjectProxy NPLMono.NPLTable.this[string sName]
getset

this will create get field.


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