F´ Flight Software - C/C++ Documentation  devel
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 = NATIVE_UINT_TYPE
 

Public Member Functions

 PolyType (U8 val)
 U8 constructor. More...
 
 operator U8 ()
 U8 cast operator. More...
 
void get (U8 &val)
 U8 accessor. More...
 
bool isU8 ()
 U8 checker. More...
 
PolyTypeoperator= (U8 val)
 U8 operator=. More...
 
 PolyType (I8 val)
 I8 constructor. More...
 
 operator I8 ()
 I8 cast operator. More...
 
void get (I8 &val)
 I8 accessor. More...
 
bool isI8 ()
 I8 checker. More...
 
PolyTypeoperator= (I8 val)
 I8 operator=. More...
 
 PolyType (F32 val)
 F32 constructor. More...
 
 operator F32 ()
 F32 cast operator. More...
 
void get (F32 &val)
 F32 accessor. More...
 
bool isF32 ()
 F32 checker. More...
 
PolyTypeoperator= (F32 val)
 F32 operator=. More...
 
 PolyType (bool val)
 bool constructor More...
 
 operator bool ()
 bool cast operator More...
 
void get (bool &val)
 bool accessor More...
 
bool isBool ()
 bool checker More...
 
PolyTypeoperator= (bool val)
 bool operator= More...
 
 PolyType (void *val)
 void* constructor. More...
 
 operator void * ()
 void* cast operator More...
 
void get (void *&val)
 void* accessor More...
 
bool isPtr ()
 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 serialize (SerializeBufferBase &buffer) const
 Serialize function. More...
 
SerializeStatus deserialize (SerializeBufferBase &buffer)
 Deserialize function. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Fw::Serializable
 Serializable ()
 Default constructor. More...
 
virtual ~Serializable ()
 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 160 of file PolyType.hpp.

Constructor & Destructor Documentation

◆ PolyType() [1/7]

Fw::PolyType::PolyType ( U8  val)

U8 constructor.

Definition at line 14 of file PolyType.cpp.

◆ PolyType() [2/7]

Fw::PolyType::PolyType ( I8  val)

I8 constructor.

Definition at line 41 of file PolyType.cpp.

◆ PolyType() [3/7]

Fw::PolyType::PolyType ( F32  val)

F32 constructor.

Definition at line 267 of file PolyType.cpp.

◆ PolyType() [4/7]

Fw::PolyType::PolyType ( bool  val)

bool constructor

Definition at line 292 of file PolyType.cpp.

◆ PolyType() [5/7]

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

void* constructor.

Definition at line 317 of file PolyType.cpp.

◆ PolyType() [6/7]

Fw::PolyType::PolyType ( )

default constructor

Definition at line 10 of file PolyType.cpp.

◆ PolyType() [7/7]

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

copy constructor

Definition at line 342 of file PolyType.cpp.

◆ ~PolyType()

Fw::PolyType::~PolyType ( )
virtual

destructor

Definition at line 347 of file PolyType.cpp.

Member Function Documentation

◆ deserialize()

SerializeStatus Fw::PolyType::deserialize ( SerializeBufferBase buffer)
virtual

Deserialize function.

Implements Fw::Serializable.

Definition at line 552 of file PolyType.cpp.

◆ get() [1/5]

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

bool accessor

Definition at line 302 of file PolyType.cpp.

◆ get() [2/5]

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

F32 accessor.

Definition at line 277 of file PolyType.cpp.

◆ get() [3/5]

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

I8 accessor.

Definition at line 51 of file PolyType.cpp.

◆ get() [4/5]

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

U8 accessor.

Definition at line 24 of file PolyType.cpp.

◆ get() [5/5]

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

void* accessor

Definition at line 327 of file PolyType.cpp.

◆ isBool()

bool Fw::PolyType::isBool ( )

bool checker

Definition at line 307 of file PolyType.cpp.

◆ isF32()

bool Fw::PolyType::isF32 ( )

F32 checker.

Definition at line 282 of file PolyType.cpp.

◆ isI8()

bool Fw::PolyType::isI8 ( )

I8 checker.

Definition at line 56 of file PolyType.cpp.

◆ isPtr()

bool Fw::PolyType::isPtr ( )

void* checker

Definition at line 332 of file PolyType.cpp.

◆ isU8()

bool Fw::PolyType::isU8 ( )

U8 checker.

Definition at line 29 of file PolyType.cpp.

◆ operator bool()

Fw::PolyType::operator bool ( )

bool cast operator

Definition at line 297 of file PolyType.cpp.

◆ operator F32()

Fw::PolyType::operator F32 ( )

F32 cast operator.

Definition at line 272 of file PolyType.cpp.

◆ operator I8()

Fw::PolyType::operator I8 ( )

I8 cast operator.

Definition at line 46 of file PolyType.cpp.

◆ operator U8()

Fw::PolyType::operator U8 ( )

U8 cast operator.

Definition at line 19 of file PolyType.cpp.

◆ operator void *()

Fw::PolyType::operator void * ( )

void* cast operator

Definition at line 322 of file PolyType.cpp.

◆ operator!=()

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

PolyType operator!=.

Definition at line 355 of file PolyType.cpp.

◆ operator<()

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

PolyType operator<.

Definition at line 418 of file PolyType.cpp.

◆ operator<=()

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

PolyType operator<=.

Definition at line 487 of file PolyType.cpp.

◆ operator=() [1/6]

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

bool operator=

Definition at line 311 of file PolyType.cpp.

◆ operator=() [2/6]

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

PolyType operator=.

Definition at line 349 of file PolyType.cpp.

◆ operator=() [3/6]

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

F32 operator=.

Definition at line 286 of file PolyType.cpp.

◆ operator=() [4/6]

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

I8 operator=.

Definition at line 60 of file PolyType.cpp.

◆ operator=() [5/6]

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

U8 operator=.

Definition at line 33 of file PolyType.cpp.

◆ operator=() [6/6]

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

void* operator=

Definition at line 336 of file PolyType.cpp.

◆ operator==()

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

PolyType operator==.

Definition at line 359 of file PolyType.cpp.

◆ operator>()

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

PolyType operator>

Definition at line 479 of file PolyType.cpp.

◆ operator>=()

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

PolyType operator>=.

Definition at line 483 of file PolyType.cpp.

◆ serialize()

SerializeStatus Fw::PolyType::serialize ( SerializeBufferBase buffer) const
virtual

Serialize function.

Implements Fw::Serializable.

Definition at line 491 of file PolyType.cpp.


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