Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
SimpleJSON.JSONBool Class Reference
Inheritance diagram for SimpleJSON.JSONBool:
SimpleJSON.JSONNode

Public Member Functions

override Enumerator GetEnumerator ()
 
 JSONBool (bool aData)
 
 JSONBool (string aData)
 
override JSONNode Clone ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from SimpleJSON.JSONNode
virtual void Add (string aKey, JSONNode aItem)
 
virtual void Add (JSONNode aItem)
 
virtual JSONNode Remove (string aKey)
 
virtual JSONNode Remove (int aIndex)
 
virtual JSONNode Remove (JSONNode aNode)
 
virtual bool HasKey (string aKey)
 
virtual JSONNode GetValueOrDefault (string aKey, JSONNode aDefault)
 
override string ToString ()
 
virtual string ToString (int aIndent)
 
Enumerator GetEnumerator ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Properties

override JSONNodeType Tag [get]
 
override bool IsBoolean [get]
 
override string Value [get, set]
 
override bool AsBool [get, set]
 
- Properties inherited from SimpleJSON.JSONNode
JSONNodeType Tag [get]
 
virtual JSONNode this[int aIndex] [get, set]
 
virtual JSONNode this[string aKey] [get, set]
 
virtual string Value [get, set]
 
virtual int Count [get]
 
virtual bool IsNumber [get]
 
virtual bool IsString [get]
 
virtual bool IsBoolean [get]
 
virtual bool IsNull [get]
 
virtual bool IsArray [get]
 
virtual bool IsObject [get]
 
virtual bool Inline [get, set]
 
virtual IEnumerable< JSONNodeChildren [get]
 
IEnumerable< JSONNodeDeepChildren [get]
 
IEnumerable< KeyValuePair< string, JSONNode > > Linq [get]
 
KeyEnumerator Keys [get]
 
ValueEnumerator Values [get]
 
virtual double AsDouble [get, set]
 
virtual int AsInt [get, set]
 
virtual float AsFloat [get, set]
 
virtual bool AsBool [get, set]
 
virtual long AsLong [get, set]
 
virtual JSONArray AsArray [get]
 
virtual JSONObject AsObject [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from SimpleJSON.JSONNode
static implicit operator JSONNode (string s)
 
static implicit operator string (JSONNode d)
 
static implicit operator JSONNode (double n)
 
static implicit operator double (JSONNode d)
 
static implicit operator JSONNode (float n)
 
static implicit operator float (JSONNode d)
 
static implicit operator JSONNode (int n)
 
static implicit operator int (JSONNode d)
 
static implicit operator JSONNode (long n)
 
static implicit operator long (JSONNode d)
 
static implicit operator JSONNode (bool b)
 
static implicit operator bool (JSONNode d)
 
static implicit operator JSONNode (KeyValuePair< string, JSONNode > aKeyValue)
 
static bool operator== (JSONNode a, object b)
 
static bool operator!= (JSONNode a, object b)
 
static JSONNode Parse (string aJSON)
 
- Static Public Attributes inherited from SimpleJSON.JSONNode
static bool forceASCII = false
 
static bool longAsString = false
 
static bool allowLineComments = true
 

Detailed Description

Definition at line 1104 of file SimpleJSON.cs.

Constructor & Destructor Documentation

◆ JSONBool() [1/2]

SimpleJSON.JSONBool.JSONBool ( bool aData)

Definition at line 1128 of file SimpleJSON.cs.

1129 {
1130 m_Data = aData;
1131 }

Referenced by SimpleJSON.JSONBool.Clone().

◆ JSONBool() [2/2]

SimpleJSON.JSONBool.JSONBool ( string aData)

Definition at line 1133 of file SimpleJSON.cs.

1134 {
1135 Value = aData;
1136 }
override string Value

References SimpleJSON.JSONBool.Value.

Member Function Documentation

◆ Clone()

override JSONNode SimpleJSON.JSONBool.Clone ( )
virtual

Reimplemented from SimpleJSON.JSONNode.

Definition at line 1138 of file SimpleJSON.cs.

1139 {
1140 return new JSONBool(m_Data);
1141 }
JSONBool(bool aData)

References SimpleJSON.JSONBool.JSONBool().

◆ Equals()

override bool SimpleJSON.JSONBool.Equals ( object obj)

Definition at line 1147 of file SimpleJSON.cs.

1148 {
1149 if (obj == null)
1150 return false;
1151 if (obj is bool)
1152 return m_Data == (bool)obj;
1153 return false;
1154 }

◆ GetEnumerator()

override Enumerator SimpleJSON.JSONBool.GetEnumerator ( )

Definition at line 1110 of file SimpleJSON.cs.

1110{ return new Enumerator(); }

◆ GetHashCode()

override int SimpleJSON.JSONBool.GetHashCode ( )

Definition at line 1155 of file SimpleJSON.cs.

1156 {
1157 return m_Data.GetHashCode();
1158 }

Property Documentation

◆ AsBool

override bool SimpleJSON.JSONBool.AsBool
getset

Definition at line 1122 of file SimpleJSON.cs.

1123 {
1124 get { return m_Data; }
1125 set { m_Data = value; }
1126 }

◆ IsBoolean

override bool SimpleJSON.JSONBool.IsBoolean
get

Definition at line 1109 of file SimpleJSON.cs.

1109{ get { return true; } }

◆ Tag

override JSONNodeType SimpleJSON.JSONBool.Tag
get

Definition at line 1108 of file SimpleJSON.cs.

1108{ get { return JSONNodeType.Boolean; } }

◆ Value

override string SimpleJSON.JSONBool.Value
getset

Definition at line 1112 of file SimpleJSON.cs.

1113 {
1114 get { return m_Data.ToString(); }
1115 set
1116 {
1117 bool v;
1118 if (bool.TryParse(value, out v))
1119 m_Data = v;
1120 }
1121 }

Referenced by SimpleJSON.JSONBool.JSONBool().


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