42 #include "vtkSetGet.h"
52 #define vtkExtraExtendedTemplateMacro(call) \
53 vtkExtendedTemplateMacro(call); \
54 vtkTemplateMacroCase(VTK_VARIANT, vtkVariant, call)
57 #define vtkExtendedArrayIteratorTemplateMacro(call) \
58 vtkArrayIteratorTemplateMacro(call); \
59 vtkArrayIteratorTemplateMacroCase(VTK_VARIANT, vtkVariant, call);
121 #if defined(VTK_TYPE_USE___INT64)
129 #if defined(VTK_TYPE_USE_LONG_LONG)
165 bool IsValid()
const;
168 bool IsString()
const;
171 bool IsUnicodeString()
const;
174 bool IsNumeric()
const;
177 bool IsFloat()
const;
180 bool IsDouble()
const;
186 bool IsUnsignedChar()
const;
189 bool IsSignedChar()
const;
192 bool IsShort()
const;
195 bool IsUnsignedShort()
const;
201 bool IsUnsignedInt()
const;
207 bool IsUnsignedLong()
const;
210 bool Is__Int64()
const;
213 bool IsUnsigned__Int64()
const;
216 bool IsLongLong()
const;
219 bool IsUnsignedLongLong()
const;
222 bool IsVTKObject()
const;
226 bool IsArray()
const;
229 unsigned int GetType()
const;
232 const char* GetTypeAsString()
const;
247 float ToFloat(
bool *valid)
const;
249 return this->ToFloat(0); };
250 double ToDouble(
bool *valid)
const;
252 return this->ToDouble(0); };
253 char ToChar(
bool *valid)
const;
255 return this->ToChar(0); };
256 unsigned char ToUnsignedChar(
bool *valid)
const;
258 return this->ToUnsignedChar(0); };
259 signed char ToSignedChar(
bool *valid)
const;
261 return this->ToSignedChar(0); };
262 short ToShort(
bool *valid)
const;
264 return this->ToShort(0); };
265 unsigned short ToUnsignedShort(
bool *valid)
const;
267 return this->ToUnsignedShort(0); };
268 int ToInt(
bool *valid)
const;
270 return this->ToInt(0); };
271 unsigned int ToUnsignedInt(
bool *valid)
const;
273 return this->ToUnsignedInt(0); };
274 long ToLong(
bool *valid)
const;
276 return this->ToLong(0); };
277 unsigned long ToUnsignedLong(
bool *valid)
const;
279 return this->ToUnsignedLong(0); };
280 #if defined(VTK_TYPE_USE___INT64)
281 __int64 To__Int64(
bool *valid)
const;
282 __int64 To__Int64()
const {
283 return this->To__Int64(0); };
284 unsigned __int64 ToUnsigned__Int64(
bool *valid)
const;
285 unsigned __int64 ToUnsigned__Int64()
const {
286 return this->ToUnsigned__Int64(0); };
288 #if defined(VTK_TYPE_USE_LONG_LONG)
289 long long ToLongLong(
bool *valid)
const;
290 long long ToLongLong()
const {
291 return this->ToLongLong(0); };
292 unsigned long long ToUnsignedLongLong(
bool *valid)
const;
293 unsigned long long ToUnsignedLongLong()
const {
294 return this->ToUnsignedLongLong(0); };
296 vtkTypeInt64 ToTypeInt64(
bool *valid)
const;
298 return this->ToTypeInt64(0); };
299 vtkTypeUInt64 ToTypeUInt64(
bool *valid)
const;
301 return this->ToTypeUInt64(0); };
353 template <
typename T>
354 T ToNumeric(
bool *valid, T* vtkNotUsed(ignored))
const;
371 #if defined(VTK_TYPE_USE___INT64)
373 unsigned __int64 Unsigned__Int64;
375 #if defined(VTK_TYPE_USE_LONG_LONG)
377 unsigned long long UnsignedLongLong;
unsigned int ToUnsignedInt() const
Wrapper around std::string to keep symbols short.
VTKCOMMONCORE_EXPORT bool operator>=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT bool operator<=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
Abstract superclass for all arrays.
#define VTKCOMMONCORE_EXPORT
VTKCOMMONCORE_EXPORT bool operator<(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkVariant &val)
VTKCOMMONCORE_EXPORT bool operator>(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
unsigned char UnsignedChar
A atomic type representing the union of many types.
unsigned char ToUnsignedChar() const
vtkObjectBase * VTKObject
unsigned short UnsignedShort
vtkUnicodeString * UnicodeString
vtkTypeInt64 ToTypeInt64() const
unsigned long UnsignedLong
abstract base class for most VTK objects
vtkTypeUInt64 ToTypeUInt64() const
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
unsigned long ToUnsignedLong() const
unsigned short ToUnsignedShort() const
signed char ToSignedChar() const
String class that stores Unicode text.