F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Fw::PolyType Class Reference

#include <Fw/Types/PolyType.hpp>

Inheritance diagram for Fw::PolyType:
Fw::Serializable

Public Types

enum  { SERIALIZED_TYPE_ID = FW_TYPEID_POLY, SERIALIZED_SIZE = sizeof(FwEnumStoreType) + sizeof(PolyVal) }
 
- Public Types inherited from Fw::Serializable
using SizeType = FwSizeType
 

Public Member Functions

 PolyType (U8 val)
 U8 constructor. More...
 
 operator U8 () const
 U8 cast operator. More...
 
void get (U8 &val) const
 U8 accessor. More...
 
bool isU8 () const
 U8 checker. More...
 
PolyTypeoperator= (U8 val)
 U8 operator=. More...
 
 PolyType (I8 val)
 I8 constructor. More...
 
 operator I8 () const
 I8 cast operator. More...
 
void get (I8 &val) const
 I8 accessor. More...
 
bool isI8 () const
 I8 checker. More...
 
PolyTypeoperator= (I8 val)
 I8 operator=. More...
 
 PolyType (F64 val)
 F64 constructor. More...
 
 operator F64 () const
 F64 cast operator. More...
 
void get (F64 &val) const
 F64 accessor. More...
 
bool isF64 () const
 F64 checker. More...
 
PolyTypeoperator= (F64 val)
 F64 operator=. More...
 
 PolyType (F32 val)
 F32 constructor. More...
 
 operator F32 () const
 F32 cast operator. More...
 
void get (F32 &val) const
 F32 accessor. More...
 
bool isF32 () const
 F32 checker. More...
 
PolyTypeoperator= (F32 val)
 F32 operator=. More...
 
 PolyType (bool val)
 bool constructor More...
 
 operator bool () const
 bool cast operator More...
 
void get (bool &val) const
 bool accessor More...
 
bool isBool () const
 bool checker More...
 
PolyTypeoperator= (bool val)
 bool operator= More...
 
 PolyType (void *val)
 void* constructor. More...
 
 operator void * () const
 void* cast operator More...
 
void get (void *&val) const
 void* accessor More...
 
bool isPtr () const
 void* checker More...
 
PolyTypeoperator= (void *val)
 void* operator= More...
 
 PolyType ()
 default constructor More...
 
 PolyType (const PolyType &original)
 copy constructor More...
 
virtual ~PolyType ()
 destructor More...
 
PolyTypeoperator= (const PolyType &src)
 PolyType operator=. More...
 
bool operator< (const PolyType &other) const
 PolyType operator<. More...
 
bool operator> (const PolyType &other) const
 PolyType operator> More...
 
bool operator>= (const PolyType &other) const
 PolyType operator>=. More...
 
bool operator<= (const PolyType &other) const
 PolyType operator<=. More...
 
bool operator== (const PolyType &other) const
 PolyType operator==. More...
 
bool operator!= (const PolyType &other) const
 PolyType operator!=. More...
 
SerializeStatus serializeTo (SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const override
 Serialize function. More...
 
SerializeStatus deserializeFrom (SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) override
 Deserialize function. More...
 
- Public Member Functions inherited from Fw::Serializable
 DEPRECATED (SerializeStatus serialize(SerialBufferBase &buffer) const, "Use serializeTo(SerialBufferBase& buffer) instead")
 
 DEPRECATED (SerializeStatus deserialize(SerialBufferBase &buffer), "Use deserializeFrom(SerialBufferBase& buffer) instead")
 

Additional Inherited Members

- Protected Member Functions inherited from Fw::Serializable
 Serializable ()
 Default constructor. More...
 
virtual ~Serializable ()
 Virtual destructor. More...
 

Detailed Description

Definition at line 11 of file PolyType.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERIALIZED_TYPE_ID 

typeid for PolyType

SERIALIZED_SIZE 

stored serialized size

Definition at line 158 of file PolyType.hpp.

Constructor & Destructor Documentation

◆ PolyType() [1/8]

Fw::PolyType::PolyType ( U8  val)

U8 constructor.

Definition at line 13 of file PolyType.cpp.

◆ PolyType() [2/8]

Fw::PolyType::PolyType ( I8  val)

I8 constructor.

Definition at line 40 of file PolyType.cpp.

◆ PolyType() [3/8]

Fw::PolyType::PolyType ( F64  val)

F64 constructor.

Definition at line 238 of file PolyType.cpp.

◆ PolyType() [4/8]

Fw::PolyType::PolyType ( F32  val)

F32 constructor.

Definition at line 263 of file PolyType.cpp.

◆ PolyType() [5/8]

Fw::PolyType::PolyType ( bool  val)

bool constructor

Definition at line 288 of file PolyType.cpp.

◆ PolyType() [6/8]

Fw::PolyType::PolyType ( void *  val)

void* constructor.

Definition at line 313 of file PolyType.cpp.

◆ PolyType() [7/8]

Fw::PolyType::PolyType ( )

default constructor

Definition at line 9 of file PolyType.cpp.

◆ PolyType() [8/8]

Fw::PolyType::PolyType ( const PolyType original)

copy constructor

Definition at line 338 of file PolyType.cpp.

◆ ~PolyType()

Fw::PolyType::~PolyType ( )
virtualdefault

destructor

Member Function Documentation

◆ deserializeFrom()

SerializeStatus Fw::PolyType::deserializeFrom ( SerialBufferBase buffer,
Fw::Endianness  mode = Fw::Endianness::BIG 
)
overridevirtual

Deserialize function.

Implements Fw::Serializable.

Definition at line 540 of file PolyType.cpp.

◆ get() [1/6]

void Fw::PolyType::get ( U8 val) const

U8 accessor.

Definition at line 23 of file PolyType.cpp.

◆ get() [2/6]

void Fw::PolyType::get ( I8 val) const

I8 accessor.

Definition at line 50 of file PolyType.cpp.

◆ get() [3/6]

void Fw::PolyType::get ( F64 val) const

F64 accessor.

Definition at line 248 of file PolyType.cpp.

◆ get() [4/6]

void Fw::PolyType::get ( F32 val) const

F32 accessor.

Definition at line 273 of file PolyType.cpp.

◆ get() [5/6]

void Fw::PolyType::get ( bool &  val) const

bool accessor

Definition at line 298 of file PolyType.cpp.

◆ get() [6/6]

void Fw::PolyType::get ( void *&  val) const

void* accessor

Definition at line 323 of file PolyType.cpp.

◆ isBool()

bool Fw::PolyType::isBool ( ) const

bool checker

Definition at line 303 of file PolyType.cpp.

◆ isF32()

bool Fw::PolyType::isF32 ( ) const

F32 checker.

Definition at line 278 of file PolyType.cpp.

◆ isF64()

bool Fw::PolyType::isF64 ( ) const

F64 checker.

Definition at line 253 of file PolyType.cpp.

◆ isI8()

bool Fw::PolyType::isI8 ( ) const

I8 checker.

Definition at line 55 of file PolyType.cpp.

◆ isPtr()

bool Fw::PolyType::isPtr ( ) const

void* checker

Definition at line 328 of file PolyType.cpp.

◆ isU8()

bool Fw::PolyType::isU8 ( ) const

U8 checker.

Definition at line 28 of file PolyType.cpp.

◆ operator bool()

Fw::PolyType::operator bool ( ) const

bool cast operator

Definition at line 293 of file PolyType.cpp.

◆ operator F32()

Fw::PolyType::operator F32 ( ) const

F32 cast operator.

Definition at line 268 of file PolyType.cpp.

◆ operator F64()

Fw::PolyType::operator F64 ( ) const

F64 cast operator.

Definition at line 243 of file PolyType.cpp.

◆ operator I8()

Fw::PolyType::operator I8 ( ) const

I8 cast operator.

Definition at line 45 of file PolyType.cpp.

◆ operator U8()

Fw::PolyType::operator U8 ( ) const

U8 cast operator.

Definition at line 18 of file PolyType.cpp.

◆ operator void *()

Fw::PolyType::operator void * ( ) const

void* cast operator

Definition at line 318 of file PolyType.cpp.

◆ operator!=()

bool Fw::PolyType::operator!= ( const PolyType other) const

PolyType operator!=.

Definition at line 349 of file PolyType.cpp.

◆ operator<()

bool Fw::PolyType::operator< ( const PolyType other) const

PolyType operator<.

Definition at line 410 of file PolyType.cpp.

◆ operator<=()

bool Fw::PolyType::operator<= ( const PolyType other) const

PolyType operator<=.

Definition at line 477 of file PolyType.cpp.

◆ operator=() [1/7]

PolyType & Fw::PolyType::operator= ( U8  val)

U8 operator=.

Definition at line 32 of file PolyType.cpp.

◆ operator=() [2/7]

PolyType & Fw::PolyType::operator= ( I8  val)

I8 operator=.

Definition at line 59 of file PolyType.cpp.

◆ operator=() [3/7]

PolyType & Fw::PolyType::operator= ( F64  val)

F64 operator=.

Definition at line 257 of file PolyType.cpp.

◆ operator=() [4/7]

PolyType & Fw::PolyType::operator= ( F32  val)

F32 operator=.

Definition at line 282 of file PolyType.cpp.

◆ operator=() [5/7]

PolyType & Fw::PolyType::operator= ( bool  val)

bool operator=

Definition at line 307 of file PolyType.cpp.

◆ operator=() [6/7]

PolyType & Fw::PolyType::operator= ( void *  val)

void* operator=

Definition at line 332 of file PolyType.cpp.

◆ operator=() [7/7]

PolyType & Fw::PolyType::operator= ( const PolyType src)

PolyType operator=.

Definition at line 343 of file PolyType.cpp.

◆ operator==()

bool Fw::PolyType::operator== ( const PolyType other) const

PolyType operator==.

Definition at line 353 of file PolyType.cpp.

◆ operator>()

bool Fw::PolyType::operator> ( const PolyType other) const

PolyType operator>

Definition at line 469 of file PolyType.cpp.

◆ operator>=()

bool Fw::PolyType::operator>= ( const PolyType other) const

PolyType operator>=.

Definition at line 473 of file PolyType.cpp.

◆ serializeTo()

SerializeStatus Fw::PolyType::serializeTo ( SerialBufferBase buffer,
Fw::Endianness  mode = Fw::Endianness::BIG 
) const
overridevirtual

Serialize function.

Implements Fw::Serializable.

Definition at line 481 of file PolyType.cpp.


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