Click or drag to resize

CacheEntry::Value

Retrieves the value of the cache entry.

T Value() const;
Return Value

The cached value currently stored for the cache entry. The data type T is that of the CacheEntry template instance.

Example

The following example demonstrates use of the Value function.

C++
ViStatus _VI_FUNC acme4321_get_BANDWIDTH(ViSession Vi, ViConstString RepCapIdentifier, ViReal64* AttributeValue)
{
    auto status = VI_SUCCESS;

    // Retrieve the cache entry for the Bandwidth attribute
    // 
    auto& entry = GetCacheEntry<ViReal64>(Vi, ACME4321_ATTR_BANDWIDTH);

    auto value = entry.Value();

    // ...

    return status;
}

Download a complete CHM version of this documentation here.