Struct cse491::Property
template <typename T typename T>
Inherits the following classes: cse491::PropertyBase
Public Attributes
Type | Name |
---|---|
T | value |
Public Functions
Type | Name |
---|---|
virtual void | Deserialize_impl (std::istream &) override Override to restore the state of this object from the provided stream. |
virtual PropertyType | GetType () override const |
virtual std::string | GetTypeName () override const |
virtual std::string | GetTypeName_impl () override const Override to allow access the derived name for this type. |
Property (const T & in) |
|
Property (T && in) |
|
virtual void | Serialize_impl (std::ostream &) override const Override to store the current state of this object for later extraction. |
virtual char | ToChar () override const |
virtual double | ToDouble () override const |
virtual GridPosition | ToGridPosition () override const |
virtual int | ToInt () override const |
virtual std::string | ToString () override const |
Public Functions inherited from cse491::PropertyBase
Type | Name |
---|---|
virtual PropertyType | GetType () const = 0 |
virtual std::string | GetTypeName () const = 0 |
virtual char | ToChar () const = 0 |
virtual double | ToDouble () const = 0 |
virtual GridPosition | ToGridPosition () const = 0 |
virtual int | ToInt () const = 0 |
virtual std::string | ToString () const = 0 |
virtual | ~PropertyBase () |
Public Functions inherited from cse491::CoreObject
Type | Name |
---|---|
void | Deserialize (std::istream & is) Restore the state of this object, extracting it from the provided stream. |
bool | Deserialize (std::string filename) A version of Deserialize that accepts a filename to read this object from. |
std::string | GetTypeName () const Access the derived name for this type. |
void | Serialize (std::ostream & os) const Store the current state of this object for later extraction. |
bool | Serialize (std::string filename) const A version of Serialize that accepts a filename for saving just this object. |
auto | operator<=> (const CoreObject &) const |
virtual | ~CoreObject () |
Protected Functions inherited from cse491::CoreObject
Type | Name |
---|---|
virtual void | Deserialize_impl (std::istream &) = 0 Override to restore the state of this object from the provided stream. |
bool | EndDeserialize (std::istream & is) Set up end of the deserialization for this class (does type checking) |
void | EndSerialize (std::ostream & os) const Set up end of the serialization for this class (allows checking later) |
virtual std::string | GetTypeName_impl () const = 0 Override to allow access the derived name for this type. |
virtual void | Serialize_impl (std::ostream &) const = 0 Override to store the current state of this object for later extraction. |
bool | StartDeserialize (std::istream & is) Set up beginning of the deserialization for this class (does type checking) |
void | StartSerialize (std::ostream & os) const Set up beginning of the serialization for this class (allows checking later) |
Public Attributes Documentation
variable value
T value;
Public Functions Documentation
function Deserialize_impl
Override to restore the state of this object from the provided stream.
inline virtual void cse491::Property::Deserialize_impl (
std::istream &
) override
Parameters:
input_stream
The istream with full details about this object.
Implements cse491::CoreObject::Deserialize_impl
function GetType
inline virtual PropertyType cse491::Property::GetType () override const
Implements cse491::PropertyBase::GetType
function GetTypeName
inline virtual std::string cse491::Property::GetTypeName () override const
Implements cse491::PropertyBase::GetTypeName
function GetTypeName_impl
Override to allow access the derived name for this type.
inline virtual std::string cse491::Property::GetTypeName_impl () override const
Returns:
A unique typename, ideally the exact name for this class (with scope) This member function will be helpful for serialization and debugging. It should return a fully scoped typename, such as "cse491::WorldGrid".
Implements cse491::CoreObject::GetTypeName_impl
function Property [1/2]
inline cse491::Property::Property (
const T & in
)
function Property [2/2]
inline cse491::Property::Property (
T && in
)
function Serialize_impl
Override to store the current state of this object for later extraction.
inline virtual void cse491::Property::Serialize_impl (
std::ostream &
) override const
Parameters:
output_stream
An ostream that the required information should be stored in.
Implements cse491::CoreObject::Serialize_impl
function ToChar
inline virtual char cse491::Property::ToChar () override const
Implements cse491::PropertyBase::ToChar
function ToDouble
inline virtual double cse491::Property::ToDouble () override const
Implements cse491::PropertyBase::ToDouble
function ToGridPosition
inline virtual GridPosition cse491::Property::ToGridPosition () override const
Implements cse491::PropertyBase::ToGridPosition
function ToInt
inline virtual int cse491::Property::ToInt () override const
Implements cse491::PropertyBase::ToInt
function ToString
inline virtual std::string cse491::Property::ToString () override const
Implements cse491::PropertyBase::ToString
The documentation for this class was generated from the following file source/core/Property.hpp