Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » storing my struct in a Value
Re: storing my struct in a Value [message #808 is a reply to message #807] Fri, 03 February 2006 10:21 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Value v = RawToValue(x);

const MyType& y = ValueTo<MyType>(v);

- requires MyType to have full-copy (you can assign types with pick using RawPickToValue)

- there are two levels of Value compliance - raw types just get stored and retrieved, while "rich" value types support other operations - test for Null, equality comparison (including casts to similar types like Date<->Time, int<->double), serialization and casts to similar types.

- you can also make your type more compatible by adding operator Value and constructor from Value
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: multithread access to the same control
Next Topic: substring find
Goto Forum:
  


Current Time: Mon Aug 18 12:37:00 CEST 2025

Total time taken to generate the page: 0.06372 seconds