Lines Matching defs:Var

20 class Var {
25 /// Default constructor. Creates a <code>Var</code> of type
27 Var();
29 /// A constructor used to create a <code>Var</code> of type <code>Null</code>.
30 Var(Null);
32 /// A constructor used to create a <code>Var</code> of type <code>Bool</code>.
35 Var(bool b);
37 /// A constructor used to create a 32 bit integer <code>Var</code>.
40 Var(int32_t i);
42 /// A constructor used to create a double value <code>Var</code>.
45 Var(double d);
47 /// A constructor used to create a UTF-8 character <code>Var</code>.
48 Var(const char* utf8_str); // Must be encoded in UTF-8.
50 /// A constructor used to create a UTF-8 character <code>Var</code>.
51 Var(const std::string& utf8_str); // Must be encoded in UTF-8.
53 /// A constructor used when you have received a <code>Var</code> as a return
58 Var(PassRef, const PP_Var& var) {
64 explicit Var(const PP_Var& var);
75 /// @param[in] var A <code>Var</code>.
76 Var(DontManage, const PP_Var& var) {
81 /// A constructor for copying a <code>Var</code>.
82 Var(const Var& other);
85 virtual ~Var();
87 /// This function assigns one <code>Var</code> to another <code>Var</code>.
89 /// @param[in] other The <code>Var</code> to be assigned.
91 /// @return A resulting <code>Var</code>.
92 virtual Var& operator=(const Var& other);
97 /// @param[in] other The <code>Var</code> to be compared to this Var.
99 /// @return true if the <code>other</code> <code>Var</code> is the same as
100 /// this <code>Var</code>, otherwise false.
101 bool operator==(const Var& other) const;
103 /// This function determines if this <code>Var</code> is an undefined value.
105 /// @return true if this <code>Var</code> is undefined, otherwise false.
108 /// This function determines if this <code>Var</code> is a null value.
110 /// @return true if this <code>Var</code> is null, otherwise false.
113 /// This function determines if this <code>Var</code> is a bool value.
115 /// @return true if this <code>Var</code> is a bool, otherwise false.
118 /// This function determines if this <code>Var</code> is a string value.
120 /// @return true if this <code>Var</code> is a string, otherwise false.
123 /// This function determines if this <code>Var</code> is an object.
125 /// @return true if this <code>Var</code> is an object, otherwise false.
128 /// This function determines if this <code>Var</code> is an array.
130 /// @return true if this <code>Var</code> is an array, otherwise false.
133 /// This function determines if this <code>Var</code> is a dictionary.
135 /// @return true if this <code>Var</code> is a dictionary, otherwise false.
138 /// This function determines if this <code>Var</code> is an integer value.
145 /// @return true if this <code>Var</code> is an integer, otherwise false.
148 /// This function determines if this <code>Var</code> is a double value.
155 /// @return true if this <code>Var</code> is a double, otherwise false.
158 /// This function determines if this <code>Var</code> is a number.
160 /// @return true if this <code>Var</code> is an int32 or double number,
167 /// This function determines if this <code>Var</code> is an ArrayBuffer.
170 /// AsBool() converts this <code>Var</code> to a bool. Assumes the
174 /// @return A bool version of this <code>Var</code>.
177 /// AsInt() converts this <code>Var</code> to an int32_t. This function
187 /// @return An int32_t version of this <code>Var</code>.
190 /// AsDouble() converts this <code>Var</code> to a double. This function is
200 /// @return An double version of this <code>Var</code>.
203 /// AsString() converts this <code>Var</code> to a string. If this object is
206 /// @return A string version of this <code>Var</code>.
210 /// managed by this <code>Var</code> object.
231 /// DebugString() returns a short description "Var<X>" that can be used for
235 /// @return A string displaying the value of this <code>Var</code>. This
240 /// <code>Var</code> as a possible NULL exception. This class will handle
259 /// void FooBar(a, b, Var* exception = NULL) {
260 /// foo_interface->Bar(a, b, Var::OutException(exception).get());
265 OutException(Var* v)
279 *output_ = Var(PASS_REF, temp_);
289 Var* output_;
303 // a bool at Var construction. If somebody makes such a mistake, (s)he will
305 Var(void* non_scriptable_object_pointer);