#include <XMLDataTypes.hpp>
Inheritance diagram for BARE2D::Attribute< T >:
Collaboration diagram for BARE2D::Attribute< T >:Public Member Functions | |
| Attribute () | |
| Attribute (std::string Name, AttributeType Type, T *data) | |
| ~Attribute () | |
| void | setData (T data) |
| Sets the actual value of the data pointer, not the address. More... | |
| void | swapDataPointer (T *newPtr) |
| Changes the old value of newPtr to that of this class' data, then changes this class' data pointer to newPtr. More... | |
| T | getData () |
| T * | getDataPointer () |
| virtual std::string | getDataString () override |
| Creates a string for XML writing of the data. More... | |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
| std::string | getDataString () |
Public Member Functions inherited from BARE2D::AttributeBase | |
| template<typename T > | |
| void | setData (T data) |
| template<typename T > | |
| T | getData () |
| template<typename T > | |
| T * | getDataPointer () |
| template<typename T > | |
| void | swapDataPointer (T *newPtr) |
| virtual | ~AttributeBase () |
Private Member Functions | |
| virtual void | setDefaultData () override |
| Sets the data to its format's equivalent to 0. More... | |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
| void | setDefaultData () |
Private Attributes | |
| T * | m_data = nullptr |
Friends | |
| class | XMLData |
Additional Inherited Members | |
Data Fields inherited from BARE2D::AttributeBase | |
| std::string | name |
| AttributeType | type |
Definition at line 54 of file XMLDataTypes.hpp.
|
inline |
Definition at line 59 of file XMLDataTypes.hpp.
| BARE2D::Attribute< T >::Attribute | ( | std::string | Name, |
| AttributeType | Type, | ||
| T * | data | ||
| ) |
|
inline |
Definition at line 62 of file XMLDataTypes.hpp.
| T BARE2D::Attribute< T >::getData | ( | ) |
Referenced by BARE2D::AttributeBase::getData().
Here is the caller graph for this function:| T* BARE2D::Attribute< T >::getDataPointer | ( | ) |
Referenced by BARE2D::AttributeBase::getDataPointer().
Here is the caller graph for this function:
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 35 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 39 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 43 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 47 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 51 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 55 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 60 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 69 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 78 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 87 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 96 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 105 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 114 of file XMLDataTypes.cpp.
|
virtual |
Implements BARE2D::AttributeBase.
Definition at line 118 of file XMLDataTypes.cpp.
|
overridevirtual |
Creates a string for XML writing of the data.
Implements BARE2D::AttributeBase.
| void BARE2D::Attribute< T >::setData | ( | T | data | ) |
Sets the actual value of the data pointer, not the address.
| data | The data to set it to. |
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 124 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 128 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 132 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 136 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 140 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 144 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 148 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 152 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 156 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 160 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 164 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 168 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 172 of file XMLDataTypes.cpp.
|
privatevirtual |
Implements BARE2D::AttributeBase.
Definition at line 176 of file XMLDataTypes.cpp.
References BARE2D::Texture::filepath.
|
overrideprivatevirtual |
Sets the data to its format's equivalent to 0.
Implements BARE2D::AttributeBase.
| void BARE2D::Attribute< T >::swapDataPointer | ( | T * | newPtr | ) |
Changes the old value of newPtr to that of this class' data, then changes this class' data pointer to newPtr.
| newPtr |
|
friend |
Definition at line 56 of file XMLDataTypes.hpp.
|
private |
Definition at line 94 of file XMLDataTypes.hpp.