API Reference > Classes > OdTf Classes > OdTfVariant Class
OdTfVariant Class
OdTfVariant
Syntax
C++
class OdTfVariant : public OdVariant;

TfVariant.h

A class that implements an extension of the OdVariant class that can be used as an universal storage of typified data. Corresponding C++ library: Od_Tf

 
Name 
Description 
 
Destroys the variant object. 
 
Creates an empty Tf variant object. 
 
Creates a new Tf variant object from a specified raw data stub.  
 
Creates a new Tf variant object with a specified GUID.  
 
Creates a new Tf variant object that is a copy of another Tf variant object (copy constructor).  
 
Creates a new array of Tf variant objects of a specified data type from an existing array.  
 
Creates a new tuple of Tf variant objects from an existing variant object tuple.  
 
Creates a new Tf variant object that is a copy of another variant object represented with the OdVariant class instance.  
 
Name 
Description 
 
Retrieves the current variant data as a variant array.  
 
Retrieves the current variant data as a variant tuple.  
 
Creates a new Tf variant object with an empty value. The created variant object has the OdTfVriantType::kEmpty type.  
 
Retrieves the current raw data stub associated with the variant object.  
 
Retrieves the dimension quantity for a specified data type. param type [in] A data type. returns Returns dimensions count. 
 
Retrieves the current GUID of the variant object.  
 
Retrieves the data type of an element of a multi-dimensional array defined with its data type.  
 
Retrieves the weak pointer to an OdRxObject class instance associated with the variant object.  
 
Retrieves the current array of variant values from the object.  
 
Retrieves the current tuple of variant values from the object.  
 
Retrieves whether the variant object is empty.  
 
Retrieves whether the variant object is an instance of a variant array.  
 
Dynamically generates a variant data type that represents an array of values with a specified data type.  
 
Dynamically generates a variant data type that represents a multi-dimensional array of values with a specified data type.  
 
Dynamically generates a variant data type that represents a multi-dimensional array of values with a specified data type.  
 
Dynamically generates a variant data type that represents an array of values with a specified data type.  
 
Sets a new raw data stub for the variant object.  
 
Sets a new GUID for the variant object.  
 
Sets a new weak pointer to the OdRxObject class instance associated with the variant object.  
 
Sets a new data type and variant values array for the variant object.  
 
Sets a new variant value tuple for the variant object.  
 
Creates a factory (if it was not created previously) for variant objects of a specified data type.  
 
Name 
Description 
 
= 
The assignment operator for two OdTfVariant objects.  
Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.