Lines Matching defs:Var

21 class Var {
26 /// Default constructor. Creates a <code>Var</code> of type
28 Var();
30 /// A constructor used to create a <code>Var</code> of type <code>Null</code>.
31 Var(Null);
33 /// A constructor used to create a <code>Var</code> of type <code>Bool</code>.
36 Var(bool b);
38 /// A constructor used to create a 32 bit integer <code>Var</code>.
41 Var(int32_t i);
43 /// A constructor used to create a double value <code>Var</code>.
46 Var(double d);
48 /// A constructor used to create a UTF-8 character <code>Var</code>.
49 Var(const char* utf8_str); // Must be encoded in UTF-8.
51 /// A constructor used to create a UTF-8 character <code>Var</code>.
52 Var(const std::string& utf8_str); // Must be encoded in UTF-8.
54 /// A constructor used to create a resource <code>Var</code>.
55 explicit Var(const pp::Resource& resource);
57 /// A constructor used when you have received a <code>Var</code> as a return
62 Var(PassRef, const PP_Var& var) {
68 explicit Var(const PP_Var& var);
77 /// @param[in] var A <code>Var</code>.
78 Var(DontManage, const PP_Var& var) {
83 /// A constructor for copying a <code>Var</code>.
84 Var(const Var& other);
87 virtual ~Var();
89 /// This function assigns one <code>Var</code> to another <code>Var</code>.
91 /// @param[in] other The <code>Var</code> to be assigned.
93 /// @return A resulting <code>Var</code>.
94 virtual Var& operator=(const Var& other);
99 /// @param[in] other The <code>Var</code> to be compared to this Var.
101 /// @return true if the <code>other</code> <code>Var</code> is the same as
102 /// this <code>Var</code>, otherwise false.
103 bool operator==(const Var& other) const;
105 /// This function determines if this <code>Var</code> is an undefined value.
107 /// @return true if this <code>Var</code> is undefined, otherwise false.
110 /// This function determines if this <code>Var</code> is a null value.
112 /// @return true if this <code>Var</code> is null, otherwise false.
115 /// This function determines if this <code>Var</code> is a bool value.
117 /// @return true if this <code>Var</code> is a bool, otherwise false.
120 /// This function determines if this <code>Var</code> is a string value.
122 /// @return true if this <code>Var</code> is a string, otherwise false.
125 /// This function determines if this <code>Var</code> is an object.
127 /// @return true if this <code>Var</code> is an object, otherwise false.
130 /// This function determines if this <code>Var</code> is an array.
132 /// @return true if this <code>Var</code> is an array, otherwise false.
135 /// This function determines if this <code>Var</code> is a dictionary.
137 /// @return true if this <code>Var</code> is a dictionary, otherwise false.
140 /// This function determines if this <code>Var</code> is a resource.
142 /// @return true if this <code>Var</code> is a resource, otherwise false.
145 /// This function determines if this <code>Var</code> is an integer value.
152 /// @return true if this <code>Var</code> is an integer, otherwise false.
155 /// This function determines if this <code>Var</code> is a double value.
162 /// @return true if this <code>Var</code> is a double, otherwise false.
165 /// This function determines if this <code>Var</code> is a number.
167 /// @return true if this <code>Var</code> is an int32 or double number,
174 /// This function determines if this <code>Var</code> is an ArrayBuffer.
177 /// AsBool() converts this <code>Var</code> to a bool. Assumes the
181 /// @return A bool version of this <code>Var</code>.
184 /// AsInt() converts this <code>Var</code> to an int32_t. This function
194 /// @return An int32_t version of this <code>Var</code>.
197 /// AsDouble() converts this <code>Var</code> to a double. This function is
207 /// @return An double version of this <code>Var</code>.
210 /// AsString() converts this <code>Var</code> to a string. If this object is
213 /// @return A string version of this <code>Var</code>.
223 /// managed by this <code>Var</code> object.
244 /// DebugString() returns a short description "Var<X>" that can be used for
248 /// @return A string displaying the value of this <code>Var</code>. This
253 /// <code>Var</code> as a possible NULL exception. This class will handle
272 /// void FooBar(a, b, Var* exception = NULL) {
273 /// foo_interface->Bar(a, b, Var::OutException(exception).get());
278 OutException(Var* v)
292 *output_ = Var(PASS_REF, temp_);
302 Var* output_;
316 // a bool at Var construction. If somebody makes such a mistake, (s)he will
318 Var(void* non_scriptable_object_pointer);