Devel Lib
Devel::Serializing::ICharArray< Size, IsHidden, T > Class Template Reference

A class representing a fixed-size character array for serialization. More...

#include <SerializableCharArray.h>

Inheritance diagram for Devel::Serializing::ICharArray< Size, IsHidden, T >:
Collaboration diagram for Devel::Serializing::ICharArray< Size, IsHidden, T >:

Public Member Functions

 CreateSerializeOperators (T, IsHidden)
 
- Public Member Functions inherited from Devel::Serializing::IData< CCharArray< Size >, false >
virtual ~IData ()=default
 Default destructor.
 
bool doSerialize (IO::CWriteStream &i_oStream) const
 Serializes the data to a write stream. More...
 
bool doDeserialize (IO::CReadStream &i_oStream)
 Deserializes the data from a read stream. More...
 
bool doDeserialize (const char *i_szString)
 Deserializes the data from a string. More...
 
bool doDeserialize (std::vector< std::string >::const_iterator &i_oIt, const std::vector< std::string >::const_iterator &i_oItEnd)
 Deserializes the data from a range of strings. More...
 
virtual size_t size () const
 Returns the size of the data. More...
 
virtual bool isHidden () const
 Returns whether the field is hidden. More...
 
virtual SCompareData compareData () const
 Returns the compare data for the data field. More...
 
auto begin () const
 Returns an iterator pointing to the beginning of the value. More...
 
auto end () const
 Returns an iterator pointing to the end of the value. More...
 
auto & operator[] (const size_t i_nIndex)
 Returns a reference to the value at the specified index. More...
 
const auto & operator[] (const size_t i_nIndex) const
 Returns a const reference to the value at the specified index. More...
 
 SerializerEnableIfNotArithmetic (IData< CCharArray< Size > > &) operator--()
 Pre-decrement operator. More...
 
 SerializerEnableIfNotArithmetic (IData< CCharArray< Size > > &) operator--(int)
 Post-decrement operator. More...
 
 SerializerEnableIfNotArithmetic (IData< CCharArray< Size > > &) operator++()
 Pre-increment operator. More...
 
 SerializerEnableIfNotArithmetic (IData< CCharArray< Size > > &) operator++(int)
 Post-increment operator. More...
 
- Public Member Functions inherited from Devel::Serializing::IValue< T >
template<typename ... TArgs, std::enable_if_t< std::is_constructible_v< T, TArgs... >> * = nullptr>
 IValue (TArgs... i_tArgs)
 Constructs an IValue object with the specified arguments. More...
 
const T & value () const
 Returns the value. More...
 
T & value ()
 Returns a reference to the value. More...
 

Additional Inherited Members

- Protected Attributes inherited from Devel::Serializing::IValue< T >
m_tValue
 The value.
 

Detailed Description

template<size_t Size, bool IsHidden = false, typename T = CCharArray<Size>>
class Devel::Serializing::ICharArray< Size, IsHidden, T >

A class representing a fixed-size character array for serialization.

Template Parameters
SizeThe size of the character array.
IsHiddenFlag indicating whether the field is hidden during serialization.
TThe underlying type of the character array.

The documentation for this class was generated from the following file: