Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
BaseFieldList< R, K > Class Template Reference

This class handles and array of BaseFields attributes of a single object. More...

Inheritance diagram for BaseFieldList< R, K >:
Expansions.Missions.Editor.BaseAPFieldList

Classes

class  ReflectedData
 

Public Member Functions

void Add (R element)
 
 BaseFieldList ()
 
 BaseFieldList (object host)
 
 BaseFieldList (object host, bool ignoreUIControl)
 
List< R >.Enumerator GetEnumerator ()
 
object GetValue (string fieldName)
 
GetValue< T > (string fieldName)
 
void SetOriginalValue ()
 
bool SetValue (string fieldName, object value)
 
bool SetValue< T > (string fieldName, T value)
 

Protected Member Functions

virtual void CreateList (object instance)
 

Static Protected Member Functions

static ReflectedData GetReflectedAttributes (System.Type type, bool ignoreUIControl)
 

Protected Attributes

List< R_fields
 
object host
 
bool ignoreUIControlWhenCreatingReflectedData
 

Static Protected Attributes

static KSPUtil.ObjectActivator< RObjectActivatorLambdaExpression = null
 
static Dictionary< System.Type,
ReflectedData > 
reflectedAttributeCache = new Dictionary<System.Type, ReflectedData>()
 

Properties

int Count [get]
 
System.Type ReflectedType [get]
 
R this[int index] [get, set]
 
R this[string fieldName] [get]
 

Detailed Description

This class handles and array of BaseFields attributes of a single object.

Template Parameters
RType of the BaseField to be returned
KType of the KSPField attribute to be handled
Type Constraints
R :BaseField<K> 
K :FieldAttribute 

Constructor & Destructor Documentation

BaseFieldList< R, K >.BaseFieldList ( )
inline
BaseFieldList< R, K >.BaseFieldList ( object  host)
inline
BaseFieldList< R, K >.BaseFieldList ( object  host,
bool  ignoreUIControl 
)
inline

Member Function Documentation

void BaseFieldList< R, K >.Add ( R  element)
inline
virtual void BaseFieldList< R, K >.CreateList ( object  instance)
inlineprotectedvirtual
List<R>.Enumerator BaseFieldList< R, K >.GetEnumerator ( )
inline
static ReflectedData BaseFieldList< R, K >.GetReflectedAttributes ( System.Type  type,
bool  ignoreUIControl 
)
inlinestaticprotected
object BaseFieldList< R, K >.GetValue ( string  fieldName)
inline
T BaseFieldList< R, K >.GetValue< T > ( string  fieldName)
inline
void BaseFieldList< R, K >.SetOriginalValue ( )
inline
bool BaseFieldList< R, K >.SetValue ( string  fieldName,
object  value 
)
inline
bool BaseFieldList< R, K >.SetValue< T > ( string  fieldName,
value 
)
inline

Member Data Documentation

List<R> BaseFieldList< R, K >._fields
protected
object BaseFieldList< R, K >.host
protected
bool BaseFieldList< R, K >.ignoreUIControlWhenCreatingReflectedData
protected
KSPUtil.ObjectActivator<R> BaseFieldList< R, K >.ObjectActivatorLambdaExpression = null
staticprotected
Dictionary<System.Type, ReflectedData> BaseFieldList< R, K >.reflectedAttributeCache = new Dictionary<System.Type, ReflectedData>()
staticprotected

Property Documentation

int BaseFieldList< R, K >.Count
get
System.Type BaseFieldList< R, K >.ReflectedType
get
R BaseFieldList< R, K >.this[int index]
getset
R BaseFieldList< R, K >.this[string fieldName]
get

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