History log of /haiku/src/kits/shared/Variant.cpp
Revision Date Author Comments
# 1705656e 24-May-2019 Augustin Cavalier <waddlesplash@gmail.com>

Add (void*) casts to memcpy/memset invocations to appease GCC 8.

A lot of these classes are not *technically* "trivially copyable"
for one reason or another, but in all of these cases it seems
OK to me to use memcpy/memset on them. Adding a cast to void*
tells GCC that "I know what I'm doing here" and shuts up the
warning.


# 7bf8fcfa 02-Nov-2011 Rene Gollent <anevilyak@gmail.com>

Make rect data part of union as suggested by Ingo.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43100 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 15dbca93 01-Nov-2011 Rene Gollent <anevilyak@gmail.com>

Extend BVariant to support storing BRects as well.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43080 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ea3e07b3 22-Jan-2011 Rene Gollent <anevilyak@gmail.com>

CID 10360: Remove incorrectly placed return.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40267 a95241bf-73f2-0310-859d-f6bbb57e9c96


# be350af3 05-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added methods AddToMessage() and SetFromMessage() to add the value of the
variant as a field to a message, respectively initialize the variant from
one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33901 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7dde9c1d 26-Sep-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added operators == and !=.
* Added "bool* _isSigned" parameter to IsInteger().
* Added static TypeIs{Number,Integer,Float}() operating on type codes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33308 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cdcacd7f 29-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added missing ToReferenceable().
* _SetTo(const BVariant&): Acquire a reference for the wrong object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d8c41ef3 24-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added support for containing BReferenceables of arbitrary actual type.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31744 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b5d6fc71 18-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added missing bool type support.
* Added Bytes(), returning a pointer to the "raw" data, and Size(), returning
the data size.
* Added SetToTypedData(), which initializes the object from a data buffer and a
type code.
* Added SwapEndianess() to swap the endianess of the contained data (if
possible).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b859de2 13-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added handy static method SizeOfType().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31538 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b7c5bd63 19-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Renamed Variant to BVariant and moved it to libshared.a.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31127 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7bf8fcfab4a4cc0cce805ded6f42146a003adb7c 02-Nov-2011 Rene Gollent <anevilyak@gmail.com>

Make rect data part of union as suggested by Ingo.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43100 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 15dbca93da2b19ef6372ce46a45ebe045b5430dc 01-Nov-2011 Rene Gollent <anevilyak@gmail.com>

Extend BVariant to support storing BRects as well.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43080 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ea3e07b3f1af7c80b43dd7fdfd1b3876c7ae6ded 22-Jan-2011 Rene Gollent <anevilyak@gmail.com>

CID 10360: Remove incorrectly placed return.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40267 a95241bf-73f2-0310-859d-f6bbb57e9c96


# be350af3d9a00f38d5d632e1d3200f95aaef9c49 05-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added methods AddToMessage() and SetFromMessage() to add the value of the
variant as a field to a message, respectively initialize the variant from
one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33901 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7dde9c1dabfc6e9ef4ebbab5fbc0c8dbef83674c 26-Sep-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added operators == and !=.
* Added "bool* _isSigned" parameter to IsInteger().
* Added static TypeIs{Number,Integer,Float}() operating on type codes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33308 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cdcacd7f9f6da3587cfe620e93f8764a6f1ab56c 29-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added missing ToReferenceable().
* _SetTo(const BVariant&): Acquire a reference for the wrong object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d8c41ef38f31a6d4e1f1548b5305099781447040 24-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added support for containing BReferenceables of arbitrary actual type.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31744 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b5d6fc71734c655d8eff18c509143e1ed1567d2f 18-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added missing bool type support.
* Added Bytes(), returning a pointer to the "raw" data, and Size(), returning
the data size.
* Added SetToTypedData(), which initializes the object from a data buffer and a
type code.
* Added SwapEndianess() to swap the endianess of the contained data (if
possible).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b859de22e04665e4d0ac67c78df1daf2ebfda1e 13-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added handy static method SizeOfType().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31538 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b7c5bd634b64a6f9407eeb5fa15609e582f86c34 19-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Renamed Variant to BVariant and moved it to libshared.a.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31127 a95241bf-73f2-0310-859d-f6bbb57e9c96